diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-12 17:17:03 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-12 17:17:03 +0800 |
commit | b67ba60a7d0b5167d89ba666bdb676db02c386e2 (patch) | |
tree | 04c579b603f0b42fdce1b378ded7e40d5fd46081 /devel/elfio | |
parent | 3bcf5fedc5e27b6566c20a0863f490c35386e192 (diff) | |
download | freebsd-ports-gnome-b67ba60a7d0b5167d89ba666bdb676db02c386e2.tar.gz freebsd-ports-gnome-b67ba60a7d0b5167d89ba666bdb676db02c386e2.tar.zst freebsd-ports-gnome-b67ba60a7d0b5167d89ba666bdb676db02c386e2.zip |
Convert to new options framework
Diffstat (limited to 'devel/elfio')
-rw-r--r-- | devel/elfio/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/elfio/Makefile b/devel/elfio/Makefile index d432dd7df891..b368e730a738 100644 --- a/devel/elfio/Makefile +++ b/devel/elfio/Makefile @@ -24,13 +24,13 @@ USE_AUTOTOOLS= aclocal automake autoconf libtool AUTOMAKE_ARGS= -c -a ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal -OPTIONS= EXAMPLES "Install sample programms" on +OPTIONE_DEFINE= EXAMPLES DOCS PORTDOCS= * -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} PLIST_SUB+= EXAMPLES="" .else PLIST_SUB+= EXAMPLES="@comment " @@ -45,7 +45,7 @@ pre-configure: ${LIBTOOLIZE} --force --copy --automake) post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for file in AUTHORS ChangeLog README ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} @@ -54,10 +54,10 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} .endfor .endif -.if !defined(WITHOUT_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} @${FIND} ${WRKSRC}/Examples/ -name "*.cpp" -exec ${INSTALL_DATA} {} \ ${EXAMPLESDIR}/ \; .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |