From 747257bc2a1200daef65164afd581135771922e1 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Thu, 3 Sep 2015 12:57:12 +0000 Subject: - Switch to options helpers - Make EXAMPLES option actually do some job Approved by: portmgr blanket --- security/libp11/Makefile | 8 ++------ security/libp11/pkg-plist | 10 +++++----- 2 files changed, 7 insertions(+), 11 deletions(-) (limited to 'security') 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 - -.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 -- cgit