diff options
author | Armin Pirkovitsch <sperber@FreeBSD.org> | 2012-07-19 17:40:38 +0000 |
---|---|---|
committer | Armin Pirkovitsch <sperber@FreeBSD.org> | 2012-07-19 17:40:38 +0000 |
commit | fc08561b09d9d0c735972f1af8218271f73f12a6 (patch) | |
tree | 8830cc2dbaaddfaeffde9a5808f419b662a2e457 /lang/nickle/Makefile | |
parent | 91ff003b69ffe07e915e52dec5edcbe9498b6412 (diff) | |
download | ports-fc08561b09d9d0c735972f1af8218271f73f12a6.tar.gz ports-fc08561b09d9d0c735972f1af8218271f73f12a6.zip |
Notes
Diffstat (limited to 'lang/nickle/Makefile')
-rw-r--r-- | lang/nickle/Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lang/nickle/Makefile b/lang/nickle/Makefile index 71000c7c7180..ba7c001a5291 100644 --- a/lang/nickle/Makefile +++ b/lang/nickle/Makefile @@ -6,7 +6,7 @@ # PORTNAME= nickle -PORTVERSION= 2.75 +PORTVERSION= 2.76 CATEGORIES= lang MASTER_SITES= http://www.nickle.org/release/ @@ -15,6 +15,9 @@ COMMENT= A numeric oriented programming language LICENSE= MIT +PORT_OPTIONS= EXAMPLES + +USE_NCURSES= yes USE_GMAKE= yes GNU_CONFIGURE= yes MAKE_JOBS_SAFE= yes @@ -25,19 +28,19 @@ LDFLAGS+= ${PTHREAD_LIBS} MAN1= nickle.1 +.include <bsd.port.options.mk> + post-patch: -# Do not descend into "examples" subdirectory to prevent them being installed -# under DATADIR (instead, we manually install them later in post-install into -# EXAMPLESDIR); also remove extra -O2 since we provide our own CFLAGS. - @${REINPLACE_CMD} -e '/^SUBDIRS/s|examples|| ; s| -O2||' \ - ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e \ + '/^SUBDIRS/s|examples|| ; \ + s| -O2||' ${WRKSRC}/Makefile.in post-install: -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} @(cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \ - -name "*.sgml" \) | ${CPIO} -pdm -LR ${SHAREOWN}:${SHAREGRP} \ - ${EXAMPLESDIR}) + -name "*.sgml" \) | ${CPIO} -pdm -L \ + -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}) @${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} .endif |