# Whom: Stanislav Sedov # $MBSDlabs$ # $FreeBSD$ PORTNAME= advi PORTVERSION= 1.9 PORTREVISION= 1 CATEGORIES= print MASTER_SITES= http://gallium.inria.fr/${PORTNAME}/ \ http://caml.inria.fr/distrib/bazar-ocaml/${PORTNAME}/ MAINTAINER= ports@FreeBSD.org COMMENT= Active-DVI viewer DEPRECATED= No more public distfiles EXPIRATION_DATE= 2012-10-20 BUILD_DEPENDS= ${CI_DEPEND}:${PORTSDIR}/graphics/ocaml-images \ kpsewhich:${PORTSDIR}/print/teTeX-base LIB_DEPENDS= gif.5:${PORTSDIR}/graphics/giflib \ png15:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff RUN_DEPENDS= kpsewhich:${PORTSDIR}/print/teTeX-base USE_OCAML= yes USE_OCAML_FINDLIB= yes NO_OCAML_RUNDEPENDS=yes GNU_CONFIGURE=yes USE_XORG= xpm USE_FREETYPE= yes GNU_CONFIGURE= yes USE_GMAKE= yes CONFIGURE_ARGS= --disable-bytecode-program OPTIONS_DEFINE= GS OPTIONS_DEFAULT= GS GS_DESC= Enable Ghostscript support CI_DEPEND= ${LOCALBASE}/${OCAML_LIBDIR}/site-lib/camlimages/camlimages.a MAN1= advi.1 .include .if ${PORT_OPTIONS:MDOCS} PORTDOCS= * .endif .if ${PORT_OPTIONS:MGS} USE_GHOSTSCRIPT= yes CONFIGURE_ARGS+= --with-GS=maybe .else CONFIGURE_ARGS+= --with-GS=no .endif pre-everything:: @${ECHO} "************************************************************" @${ECHO} "ATTENTION! This port required ocaml-images to be built with" @${ECHO} "Ghostscript support enabled. If you build graphics/ocaml-images" @${ECHO} "without GS support, please rebuild it before building this port" @${ECHO} "************************************************************" @${ECHO} post-patch: .if !${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -E \ -e 's,(SUBDIRS[[:space:]]*=[[:space:]]*src[[:space:]]+tex[[:space:]]+)doc,\1,g' \ ${WRKSRC}/Makefile.in .endif post-install: .if !${PORT_OPTIONS:MDOCS} # Install manpage by hand ${INSTALL_MAN} ${WRKSRC}/doc/advi.1 ${MANPREFIX}/man/man1/ .endif .include