42428df5a0
rather than PKG_FAIL_REASON, so that they provide useful error messages in build logs, and so that they continue to work on platforms where they aren't broken.
55 lines
1.8 KiB
Makefile
55 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2006/01/04 04:29:08 schmonz Exp $
|
|
|
|
DISTNAME= advi-1.6.0
|
|
CATEGORIES= print
|
|
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/advi/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= tech-pkg@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
|
|
|
|
post-extract:
|
|
@${CP} ${WRKSRC}/tex/*.eps ${WRKSRC}/doc
|
|
@${CP} ${WRKSRC}/doc/eng.htm ${WRKSRC}/doc/index.html
|
|
@${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 \
|
|
${PREFIX}/share/doc/advi
|
|
cd ${WRKSRC}/doc.orig && ${INSTALL_DATA} *.dvi \
|
|
${PREFIX}/share/doc/advi
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/advi
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.css *.jpg *.gif \
|
|
${PREFIX}/share/doc/html/advi
|
|
cd ${PREFIX}/share/doc/html/advi && ${LN} -sf ../../advi/manual.* .
|
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../graphics/camlimages/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
|
.include "../../graphics/libungif/buildlink3.mk"
|
|
.include "../../graphics/gdk-pixbuf/buildlink3.mk"
|
|
.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"
|