aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2015-03-14 01:36:33 +0800
committeradamw <adamw@FreeBSD.org>2015-03-14 01:36:33 +0800
commitfa2997d3fbcc3620031f4aa3b04259067124292c (patch)
tree1915456db39d534693927137c33cacd88c56c738 /graphics
parent396b3d8b21587d6617b6ba91b2ae7d1396b7b52f (diff)
downloadfreebsd-ports-gnome-fa2997d3fbcc3620031f4aa3b04259067124292c.tar.gz
freebsd-ports-gnome-fa2997d3fbcc3620031f4aa3b04259067124292c.tar.zst
freebsd-ports-gnome-fa2997d3fbcc3620031f4aa3b04259067124292c.zip
Control examples with PORTEXAMPLES.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/p5-Image-Caa/Makefile2
-rw-r--r--graphics/p5-Image-Caa/pkg-plist16
2 files changed, 10 insertions, 8 deletions
diff --git a/graphics/p5-Image-Caa/Makefile b/graphics/p5-Image-Caa/Makefile
index e084d66c109d..11c8edd959a0 100644
--- a/graphics/p5-Image-Caa/Makefile
+++ b/graphics/p5-Image-Caa/Makefile
@@ -17,6 +17,8 @@ BUILD_DEPENDS:= ${RUN_DEPENDS}
USES= perl5
USE_PERL5= configure
+OPTIONS_DEFINE= EXAMPLES
+
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demos/* ${STAGEDIR}${EXAMPLESDIR}
diff --git a/graphics/p5-Image-Caa/pkg-plist b/graphics/p5-Image-Caa/pkg-plist
index 6f0b9ec65aee..611709495ca1 100644
--- a/graphics/p5-Image-Caa/pkg-plist
+++ b/graphics/p5-Image-Caa/pkg-plist
@@ -1,4 +1,3 @@
-%%PERL5_MAN3%%/Image::Caa.3.gz
%%SITE_PERL%%/Image/Caa.pm
%%SITE_PERL%%/Image/Caa/DitherNone.pm
%%SITE_PERL%%/Image/Caa/DitherOrdered2.pm
@@ -8,10 +7,11 @@
%%SITE_PERL%%/Image/Caa/DriverANSI.pm
%%SITE_PERL%%/Image/Caa/DriverCurses.pm
%%SITE_PERL%%/Image/Caa/DriverTest.pm
-%%EXAMPLESDIR%%/curses.pl
-%%EXAMPLESDIR%%/kitten.jpg
-%%EXAMPLESDIR%%/kitten.pl
-%%EXAMPLESDIR%%/portrait.jpg
-%%EXAMPLESDIR%%/portrait.pl
-%%EXAMPLESDIR%%/sunset.jpg
-%%EXAMPLESDIR%%/sunset.pl
+%%PERL5_MAN3%%/Image::Caa.3.gz
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/curses.pl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/kitten.jpg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/kitten.pl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/portrait.jpg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/portrait.pl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sunset.jpg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sunset.pl