pkgsrc/devel/jdebp-redo/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

2022-01-06 09:56:15 +01:00
# $NetBSD: Makefile,v 1.5 2022/01/06 08:56:15 schmonz Exp $
DISTNAME= redo-1.4
PKGNAME= jdebp-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel
2022-01-06 09:56:15 +01:00
MASTER_SITES= http://jdebp.info/Repository/freebsd/
MAINTAINER= schmonz@NetBSD.org
2022-01-06 09:56:15 +01:00
HOMEPAGE= http://jdebp.info/Softwares/redo/
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'
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}/
for i in bin ${PKGMANDIR}/man1; do cd ${DESTDIR}${PREFIX}/$${i}; \
for j in *; do mv $${j} jdebp-$${j}; done; \
done
.include "../../mk/bsd.pkg.mk"