Respect NOPORTEXAMPLES.

PR:		166693
Submitted by:	scheidell, crees
This commit is contained in:
Roman Bogorodskiy 2012-04-10 11:06:28 +00:00
parent 71cc8837ce
commit 92e600045d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294512
2 changed files with 5 additions and 25 deletions

View file

@ -64,14 +64,15 @@ USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= AUTHORS NEWS README THANKS
.endif
EXAMPLES= doc/examples/*.c
PORTEXAMPLES= *.c
post-install:
.if !defined (NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \
${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}

View file

@ -48,26 +48,6 @@ lib/libgnutls.so
lib/libgnutls.so.47
libdata/pkgconfig/gnutls-extra.pc
libdata/pkgconfig/gnutls.pc
%%EXAMPLESDIR%%/ex-alert.c
%%EXAMPLESDIR%%/ex-cert-select-pkcs11.c
%%EXAMPLESDIR%%/ex-cert-select.c
%%EXAMPLESDIR%%/ex-client-psk.c
%%EXAMPLESDIR%%/ex-client-resume.c
%%EXAMPLESDIR%%/ex-client-srp.c
%%EXAMPLESDIR%%/ex-client1.c
%%EXAMPLESDIR%%/ex-client2.c
%%EXAMPLESDIR%%/ex-crq.c
%%EXAMPLESDIR%%/ex-pkcs12.c
%%EXAMPLESDIR%%/ex-rfc2818.c
%%EXAMPLESDIR%%/ex-serv-anon.c
%%EXAMPLESDIR%%/ex-serv-pgp.c
%%EXAMPLESDIR%%/ex-serv-psk.c
%%EXAMPLESDIR%%/ex-serv-srp.c
%%EXAMPLESDIR%%/ex-serv1.c
%%EXAMPLESDIR%%/ex-session-info.c
%%EXAMPLESDIR%%/ex-verify.c
%%EXAMPLESDIR%%/ex-x509-info.c
%%EXAMPLESDIR%%/tcp.c
%%NLS%%share/locale/cs/LC_MESSAGES/libgnutls.mo
%%NLS%%share/locale/de/LC_MESSAGES/libgnutls.mo
%%NLS%%share/locale/en@boldquot/LC_MESSAGES/libgnutls.mo
@ -80,5 +60,4 @@ libdata/pkgconfig/gnutls.pc
%%NLS%%share/locale/sv/LC_MESSAGES/libgnutls.mo
%%NLS%%share/locale/vi/LC_MESSAGES/libgnutls.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/libgnutls.mo
@dirrm %%EXAMPLESDIR%%
@dirrm include/gnutls