diff options
author | tonio <tonio@pkgsrc.org> | 2006-04-19 13:13:05 +0000 |
---|---|---|
committer | tonio <tonio@pkgsrc.org> | 2006-04-19 13:13:05 +0000 |
commit | 5f7659977a79ae1dd5a9c8654d6d4c9fef08abde (patch) | |
tree | 0fa64bd30b391e7ea612c42f2bbf820583b90ee3 /print/advi/Makefile | |
parent | 4264402f733d21960be88a3cc0508a21c2176c48 (diff) | |
download | pkgsrc-5f7659977a79ae1dd5a9c8654d6d4c9fef08abde.tar.gz |
let advi compile and run happily with ocaml-3.09
Use the teTeX/module.mk and honor PKG_LOCALTEXMFPREFIX
make sure advi's makefile do not run texhash by itself (rely on module.mk for that)
Many patches removing warnings (from advi's cvs)
bump PKGREVISION, and remove broken-in
Diffstat (limited to 'print/advi/Makefile')
-rw-r--r-- | print/advi/Makefile | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/print/advi/Makefile b/print/advi/Makefile index 534ad4044d1..602fe68e11b 100644 --- a/print/advi/Makefile +++ b/print/advi/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.21 2006/04/17 13:46:45 wiz Exp $ +# $NetBSD: Makefile,v 1.22 2006/04/19 13:13:05 tonio Exp $ DISTNAME= advi-1.6.0 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= print MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/advi/ EXTRACT_SUFX= .tgz @@ -10,14 +10,31 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://pauillac.inria.fr/advi/ COMMENT= Active-DVI Presenter -BROKEN_IN= pkgsrc-2005Q4 - BUILD_DEPENDS+= ocaml>=3.04:../../lang/ocaml TEX_ACCEPTED= teTeX1 teTeX2 teTeX3 USE_PKGLOCALEDIR= yes GNU_CONFIGURE= yes USE_TOOLS+= gmake gs:run +CONFIGURE_ARGS+= --libdir=${PKG_LOCALTEXMFPREFIX:Q} + +# subst.mk ignores the files it thinks are not text files +_SUBST_IS_TEXT_FILE= true + +SUBST_CLASSES+= gspath +SUBST_MESSAGE.gspath= Fixing gs pathname in binary. +SUBST_STAGE.gspath= pre-configure +SUBST_FILES.gspath= config.ml.in +SUBST_SED.gspath= -e "s,@PATH_GS@,${PREFIX}/bin/gs,g" + +SUBST_CLASSES+= conf +SUBST_MESSAGE.paths= Fixing config file path +SUBST_STAGE.paths= post-configure +SUBST_FILES.paths= userfile.ml +SUBST_SED.paths= -e "s:/etc/advirc:${PKG_SYSCONFDIR}/advirc:g" + +USE_DIRS+= texmf-1.0 +.include "../../print/teTeX/module.mk" post-extract: @${CP} ${WRKSRC}/tex/*.eps ${WRKSRC}/doc @@ -25,12 +42,6 @@ post-extract: @${MKDIR} ${WRKSRC}/doc.orig @${CP} ${WRKSRC}/doc/*.dvi ${WRKSRC}/doc.orig -post-configure: - @for f in ${WRKSRC}/userfile.ml; do \ - ${SED} -e 's:/etc/advirc:${PKG_SYSCONFDIR}/advirc:g' \ - $$f >> $$f.tmp && ${MV} $$f.tmp $$f; \ - done - post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/advi cd ${WRKSRC}/doc && ${INSTALL_DATA} *.ps *.pdf \ @@ -52,5 +63,4 @@ post-install: .include "../../graphics/freetype2/buildlink3.mk" .include "../../x11/lablgtk/buildlink3.mk" .include "../../x11/ocaml-graphics/buildlink3.mk" -.include "../../mk/tex.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |