diff options
author | makc <makc@FreeBSD.org> | 2012-05-14 05:26:48 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2012-05-14 05:26:48 +0800 |
commit | a7facb8b28c458967d5391047557f08bd7ca81cf (patch) | |
tree | 08ef39219dfe662788dceef2556ce12c6c4bf5b1 /graphics/libjpeg-turbo | |
parent | 3a1a77062b6808f715324aca9eef49d3036806f6 (diff) | |
download | freebsd-ports-gnome-a7facb8b28c458967d5391047557f08bd7ca81cf.tar.gz freebsd-ports-gnome-a7facb8b28c458967d5391047557f08bd7ca81cf.tar.zst freebsd-ports-gnome-a7facb8b28c458967d5391047557f08bd7ca81cf.zip |
Fix docsdir/exampledir
Respect PORTDOCS/PORTEXAMPLES
Reported by: poyopoyo@puripuri.plala.or.jp
Diffstat (limited to 'graphics/libjpeg-turbo')
-rw-r--r-- | graphics/libjpeg-turbo/Makefile | 19 | ||||
-rw-r--r-- | graphics/libjpeg-turbo/pkg-plist | 7 |
2 files changed, 19 insertions, 7 deletions
diff --git a/graphics/libjpeg-turbo/Makefile b/graphics/libjpeg-turbo/Makefile index 3d5073607562..f91d387fecce 100644 --- a/graphics/libjpeg-turbo/Makefile +++ b/graphics/libjpeg-turbo/Makefile @@ -26,6 +26,8 @@ ALL_TARGET= test MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 PLIST_SUB= SOVERSION=${SOVERSION} +PORTDOCS= * +PORTEXAMPLES= * # chase graphics/jpeg SOVERSION= 11 @@ -38,4 +40,21 @@ OPTIONS+= PIC "Static library with PIC (required for VirtualGL)" off CONFIGURE_ARGS+=--with-pic .endif +post-patch: +.if defined(NOPORTDOCS) + ${REINPLACE_CMD} -e '/^install-data-am/s,install-dist_docDATA,,' \ + ${WRKSRC}/Makefile.in +.else + ${REINPLACE_CMD} -e '/^docdir/s,=.*,= ${DOCSDIR},' \ + ${WRKSRC}/Makefile.in +.endif + +.if defined(NOPORTEXAMPLES) + ${REINPLACE_CMD} -e '/^install-data-am/s,install-dist_exampleDATA,,' \ + ${WRKSRC}/Makefile.in +.else + ${REINPLACE_CMD} -e '/^exampledir/s,=.*,= ${EXAMPLESDIR},' \ + ${WRKSRC}/Makefile.in +.endif + .include <bsd.port.mk> diff --git a/graphics/libjpeg-turbo/pkg-plist b/graphics/libjpeg-turbo/pkg-plist index 4c882d0e2250..538bc4a749af 100644 --- a/graphics/libjpeg-turbo/pkg-plist +++ b/graphics/libjpeg-turbo/pkg-plist @@ -16,10 +16,3 @@ lib/libjpeg.so.%%SOVERSION%% lib/libturbojpeg.a lib/libturbojpeg.la lib/libturbojpeg.so -share/doc/README -share/doc/README-turbo.txt -share/doc/example.c -share/doc/libjpeg.txt -share/doc/structure.txt -share/doc/usage.txt -share/doc/wizard.txt |