aboutsummaryrefslogtreecommitdiff
path: root/graphics/libjpeg-turbo
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2012-05-13 21:26:48 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2012-05-13 21:26:48 +0000
commitdfe87a48e0c45c0c20cdf199cc59fa0b253a7c51 (patch)
treed54bd485a0c1667468fb693a0c68ee068c9cfa67 /graphics/libjpeg-turbo
parent87fc406789482adc0e9bf09c6ad853530a49d145 (diff)
downloadports-dfe87a48e0c45c0c20cdf199cc59fa0b253a7c51.tar.gz
ports-dfe87a48e0c45c0c20cdf199cc59fa0b253a7c51.zip
Notes
Diffstat (limited to 'graphics/libjpeg-turbo')
-rw-r--r--graphics/libjpeg-turbo/Makefile19
-rw-r--r--graphics/libjpeg-turbo/pkg-plist7
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