diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2012-08-03 03:44:20 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2012-08-03 03:44:20 +0000 |
commit | 8337e56bc374ee46b21f2caf52ecb7003307172c (patch) | |
tree | 12e41b4845bf869f7cef0d3d7e947f972b9bf9e2 /lang/nhc98 | |
parent | - Update to 0.90.0.3 (diff) |
- Use the new options framework
Obtained from: FreeBSD Haskell
Notes
Notes:
svn path=/head/; revision=301932
Diffstat (limited to 'lang/nhc98')
-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 |