diff options
author | bsiegert <bsiegert> | 2013-12-08 16:18:35 +0000 |
---|---|---|
committer | bsiegert <bsiegert> | 2013-12-08 16:18:35 +0000 |
commit | 848c08a520c2b3cc17cd5b7850aceea0e3c6c6b5 (patch) | |
tree | 2859cd3487adcc98294f868f2f150730f6d4bcc0 /devel | |
parent | c52d2540121c8dc5a7c3eeebceae9ee47dda99e2 (diff) | |
download | pkgsrc-848c08a520c2b3cc17cd5b7850aceea0e3c6c6b5.tar.gz |
Modernize the Makefile a bit. USE_TOOLS for groff, use SUBST instead of
doing the equivalent thing by hand.
This happens to unbreak the MirBSD build, where there is no groff installed
by default.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libmemmgr/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/devel/libmemmgr/Makefile b/devel/libmemmgr/Makefile index f536fefd65b..fa7f97ce159 100644 --- a/devel/libmemmgr/Makefile +++ b/devel/libmemmgr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2012/10/31 11:17:17 asau Exp $ +# $NetBSD: Makefile,v 1.18 2013/12/08 16:18:35 bsiegert Exp $ # DISTNAME= MemMgr-1.04 @@ -12,17 +12,19 @@ COMMENT= Simple memory manager library WRKSRC= ${WRKDIR}/memmgr-1.04 INSTALLATION_DIRS= include lib +USE_TOOLS+= groff -post-patch: - ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.bak - ${SED} <${WRKSRC}/Makefile.bak >${WRKSRC}/Makefile \ - -e 's|/usr/local|${PREFIX}|' +SUBST_CLASSES+= prefix +SUBST_STAGE.prefix= post-patch +SUBST_MESSAGE.prefix= Fixing absolute paths. +SUBST_FILES.prefix= Makefile +SUBST_SED.prefix= -e 's|/usr/local|${PREFIX}|' do-install: ${INSTALL_DATA} ${WRKSRC}/libmemmgr.a ${DESTDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/memmgr.h ${DESTDIR}${PREFIX}/include ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/libmemmgr - groff -Tascii -ms ${WRKSRC}/memmgr.ms \ + ${TOOLS_PATH.groff} -Tascii -ms ${WRKSRC}/memmgr.ms \ >${DESTDIR}${PREFIX}/share/doc/libmemmgr/memmgr.txt .include "../../devel/libetm/buildlink3.mk" |