aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-10-06 15:24:48 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-10-06 15:24:48 +0000
commitab18d7790909640d3b72ace40c70d52a2ceef2e1 (patch)
treec5a1a3979d176c050c3ea7242e5e2f5d071d5301 /print
parentf173e3eb0c36fe7a689162b583dddddd5748557d (diff)
downloadports-ab18d7790909640d3b72ace40c70d52a2ceef2e1.tar.gz
ports-ab18d7790909640d3b72ace40c70d52a2ceef2e1.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/advi/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/print/advi/Makefile b/print/advi/Makefile
index 062678423548..121a0da23367 100644
--- a/print/advi/Makefile
+++ b/print/advi/Makefile
@@ -1,10 +1,6 @@
-# New ports collection makefile for: advi
-# Date created: 2006-08-13
-# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
-#
+# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $MBSDlabs$
# $FreeBSD$
-#
PORTNAME= advi
PORTVERSION= 1.9
@@ -37,18 +33,20 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --disable-bytecode-program
-OPTIONS= GS "Enable Ghostscript support" on
+OPTIONS_DEFINE= GS
+OPTIONS_DEFAULT= GS
+GS_DESC= Enable Ghostscript support
CI_DEPEND= ${LOCALBASE}/${OCAML_LIBDIR}/site-lib/camlimages/camlimages.a
MAN1= advi.1
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
.endif
-.include <bsd.port.options.mk>
-
-.if !defined(WITHOUT_GS)
+.if ${PORT_OPTIONS:MGS}
USE_GHOSTSCRIPT= yes
CONFIGURE_ARGS+= --with-GS=maybe
.else
@@ -64,17 +62,15 @@ pre-everything::
@${ECHO}
post-patch:
-.if defined(NOPORTDOCS)
+.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:
-#
-# Install manpage by hand
-#
-.if defined(NOPORTDOCS)
+.if !${PORT_OPTIONS:MDOCS}
+# Install manpage by hand
${INSTALL_MAN} ${WRKSRC}/doc/advi.1 ${MANPREFIX}/man/man1/
.endif