aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-09-03 20:57:12 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-09-03 20:57:12 +0800
commit747257bc2a1200daef65164afd581135771922e1 (patch)
tree5ee0bba90cf58f9dc8e2646227d906be2717e19c /security
parent42e2f7454b3beaa4bb64b07eef227c5ed0306102 (diff)
downloadfreebsd-ports-gnome-747257bc2a1200daef65164afd581135771922e1.tar.gz
freebsd-ports-gnome-747257bc2a1200daef65164afd581135771922e1.tar.zst
freebsd-ports-gnome-747257bc2a1200daef65164afd581135771922e1.zip
- Switch to options helpers
- Make EXAMPLES option actually do some job Approved by: portmgr blanket
Diffstat (limited to 'security')
-rw-r--r--security/libp11/Makefile8
-rw-r--r--security/libp11/pkg-plist10
2 files changed, 7 insertions, 11 deletions
diff --git a/security/libp11/Makefile b/security/libp11/Makefile
index 546c7f1a3f0b..9eeb0ce918f3 100644
--- a/security/libp11/Makefile
+++ b/security/libp11/Makefile
@@ -28,11 +28,7 @@ CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \
PORTDOCS= *
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-CONFIGURE_ARGS+=--enable-doc
-.endif
+DOCS_CONFIGURE_ON= --enable-doc
post-patch:
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
@@ -40,7 +36,7 @@ post-patch:
@${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \
${WRKSRC}/doc/Makefile.in
-post-install:
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
diff --git a/security/libp11/pkg-plist b/security/libp11/pkg-plist
index 7fb0bbdda630..70ba9339652e 100644
--- a/security/libp11/pkg-plist
+++ b/security/libp11/pkg-plist
@@ -4,8 +4,8 @@ lib/libp11.so
lib/libp11.so.2
lib/libp11.so.2.2.0
libdata/pkgconfig/libp11.pc
-%%EXAMPLESDIR%%/Makefile
-%%EXAMPLESDIR%%/README
-%%EXAMPLESDIR%%/auth.c
-%%EXAMPLESDIR%%/decrypt.c
-%%EXAMPLESDIR%%/getrandom.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/auth.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/decrypt.c
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/getrandom.c