2022-01-06 09:56:15 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2022/01/06 08:56:15 schmonz Exp $
|
2019-07-20 23:18:59 +02:00
|
|
|
|
|
|
|
DISTNAME= redo-1.4
|
|
|
|
PKGNAME= jdebp-${DISTNAME}
|
2020-07-06 17:16:49 +02:00
|
|
|
PKGREVISION= 1
|
2019-07-20 23:18:59 +02:00
|
|
|
CATEGORIES= devel
|
2022-01-06 09:56:15 +01:00
|
|
|
MASTER_SITES= http://jdebp.info/Repository/freebsd/
|
2019-07-20 23:18:59 +02:00
|
|
|
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
2022-01-06 09:56:15 +01:00
|
|
|
HOMEPAGE= http://jdebp.info/Softwares/redo/
|
2019-07-20 23:18:59 +02:00
|
|
|
COMMENT= C++ implementation of DJB's redo build tool
|
|
|
|
LICENSE= isc OR 2-clause-bsd
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
USE_LANGUAGES= c++
|
|
|
|
USE_TOOLS+= pod2man
|
|
|
|
|
2019-08-02 23:54:56 +02:00
|
|
|
SUBST_CLASSES+= pkgmandir
|
|
|
|
SUBST_STAGE.pkgmandir= do-configure
|
|
|
|
SUBST_FILES.pkgmandir= package/export
|
|
|
|
SUBST_SED.pkgmandir= -e 's|"man/man1|${PKGMANDIR}"/man1|g'
|
|
|
|
|
2019-07-20 23:18:59 +02:00
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && ./package/prepare
|
|
|
|
${ECHO} ${CXX:Q} > ${WRKSRC}/build/cxx
|
|
|
|
${ECHO} ${CPPFLAGS:Q} > ${WRKSRC}/build/cppflags
|
|
|
|
${ECHO} ${CXXFLAGS:Q} > ${WRKSRC}/build/cxxflags
|
|
|
|
${ECHO} ${LDFLAGS:Q} > ${WRKSRC}/build/ldflags
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./package/make
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ./package/makeinstall
|
|
|
|
cd ${WRKSRC} && ./package/export ${DESTDIR}${PREFIX}/
|
2020-11-04 21:27:24 +01:00
|
|
|
for i in bin ${PKGMANDIR}/man1; do cd ${DESTDIR}${PREFIX}/$${i}; \
|
2020-07-06 17:16:49 +02:00
|
|
|
for j in *; do mv $${j} jdebp-$${j}; done; \
|
|
|
|
done
|
2019-07-20 23:18:59 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|