diff options
Diffstat (limited to 'print/lgrind/Makefile')
-rw-r--r-- | print/lgrind/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/print/lgrind/Makefile b/print/lgrind/Makefile index 31c5ad94038..93fb7dbcee7 100644 --- a/print/lgrind/Makefile +++ b/print/lgrind/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.26 2006/02/05 23:10:38 joerg Exp $ +# $NetBSD: Makefile,v 1.27 2006/04/07 03:01:36 minskim Exp $ DISTNAME= lgrind PKGNAME= lgrind-3.5 -PKGREVISION= 6 +PKGREVISION= 7 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_LOCAL} EXTRACT_SUFX= .tar.bz2 @@ -13,11 +13,13 @@ COMMENT= Source pretty printer for LaTeX WRKSRC= ${WRKDIR}/lgrind/source NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL NO_CONFIGURE= yes +USE_DIRS+= texmf-1.0 TEX_ACCEPTED= teTeX1 teTeX2 teTeX3 .include "../../mk/x11.buildlink3.mk" +.include "../../print/teTeX/module.mk" -MAKE_ENV+= PKG_TEXMFPREFIX=${PKG_TEXMFPREFIX:Q} +MAKE_ENV+= PKG_LOCALTEXMFPREFIX=${PKG_LOCALTEXMFPREFIX:Q} pre-patch: ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile-prepatch @@ -28,16 +30,16 @@ pre-build: (cd ${WRKSRC}/.. ; ${PREFIX}/bin/latex lgrind.dtx) ${MV} ${WRKSRC}/lgrind.1 ${WRKSRC}/lgrind.1.bak ${MV} ${WRKSRC}/lgrindef.5 ${WRKSRC}/lgrindef.5.bak - ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${WRKSRC}/lgrind.1.bak > ${WRKSRC}/lgrind.1 - ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${WRKSRC}/lgrindef.5.bak > ${WRKSRC}/lgrindef.5 + ${SED} -e 's,@PREFIX@,${PREFIX},g' \ + -e 's,@LOCALTEXMFPREFIX@,${PKG_LOCALTEXMFPREFIX},g' \ + < ${WRKSRC}/lgrind.1.bak > ${WRKSRC}/lgrind.1 + ${SED} -e 's,@LOCALTEXMFPREFIX@,${PKG_LOCALTEXMFPREFIX},g' \ + < ${WRKSRC}/lgrindef.5.bak > ${WRKSRC}/lgrindef.5 pre-install: -mkdir ${PKG_LOCALTEXMFPREFIX}/tex/latex/lgrind -mkdir ${PKG_LOCALTEXMFPREFIX}/doc/latex/lgrind -post-install: - ${PREFIX}/bin/texconfig rehash - # The sources assume <malloc.h> exists. Create a fake one for platforms # that don't have it. post-wrapper: @@ -46,5 +48,4 @@ post-wrapper: > ${BUILDLINK_DIR}/include/malloc.h; \ fi -.include "../../mk/tex.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |