diff options
author | pgj <pgj@FreeBSD.org> | 2012-08-03 11:44:20 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2012-08-03 11:44:20 +0800 |
commit | d1bde116e58c44a0b74a2f0c17178491c60be9cc (patch) | |
tree | 12e41b4845bf869f7cef0d3d7e947f972b9bf9e2 /lang | |
parent | d3d41dfe05656a82ad3005b707a98a08b66808dd (diff) | |
download | freebsd-ports-gnome-d1bde116e58c44a0b74a2f0c17178491c60be9cc.tar.gz freebsd-ports-gnome-d1bde116e58c44a0b74a2f0c17178491c60be9cc.tar.zst freebsd-ports-gnome-d1bde116e58c44a0b74a2f0c17178491c60be9cc.zip |
- Use the new options framework
Obtained from: FreeBSD Haskell
Diffstat (limited to 'lang')
-rw-r--r-- | lang/nhc98/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lang/nhc98/Makefile b/lang/nhc98/Makefile index 2a904851bbac..712d7ee38a00 100644 --- a/lang/nhc98/Makefile +++ b/lang/nhc98/Makefile @@ -6,7 +6,7 @@ PORTNAME= nhc98 PORTVERSION= 1.18 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang haskell MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/ DISTFILES= ${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX} ${PORTNAME}-${PORTVERSION}-library-interfaces${EXTRACT_SUFX} @@ -25,8 +25,15 @@ USE_GMAKE= yes HAS_CONFIGURE= yes CONFIGURE_ARGS+=--prefix=${PREFIX} --buildwith=gcc -.if !defined(NOPORTDOCS) +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT= DOCS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} CONFIGURE_ARGS+= --docdir=${DOCSDIR} +docs +.else +CONFIGURE_ARGS+= -docs .endif MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1 hi.1 @@ -46,7 +53,7 @@ post-install: < ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix ${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1 ${RM} ${WRKSRC}/man/nhc98.1.fix -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} .for directory in . bugs examples hmake implementation-notes libs ${RM} -r ${DOCSDIR}/${directory}/CVS .endfor |