aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/fltk
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2011-11-28 12:59:50 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2011-11-28 12:59:50 +0000
commit5572c356641848ca7416bb27d51504bf55e2e6fc (patch)
tree57f9b3b16b259719fcffc3fe863242abc2e53cf6 /x11-toolkits/fltk
parent261e2c7479a8c5be6247e3c3c804993fc9d8d875 (diff)
downloadports-5572c356641848ca7416bb27d51504bf55e2e6fc.tar.gz
ports-5572c356641848ca7416bb27d51504bf55e2e6fc.zip
Notes
Diffstat (limited to 'x11-toolkits/fltk')
-rw-r--r--x11-toolkits/fltk/Makefile3
-rw-r--r--x11-toolkits/fltk/pkg-plist2
2 files changed, 5 insertions, 0 deletions
diff --git a/x11-toolkits/fltk/Makefile b/x11-toolkits/fltk/Makefile
index 46396a901392..afa45fba8240 100644
--- a/x11-toolkits/fltk/Makefile
+++ b/x11-toolkits/fltk/Makefile
@@ -35,6 +35,9 @@ MAN3= fltk.3
post-patch:
${REINPLACE_CMD} -e '30s/test //' ${WRKSRC}/Makefile
+ prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \
+ ${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \
+ ${WRKSRC}/src/Fl_Preferences.cxx
.if !defined(NOPORTDOCS)
PORTDOCS= *
diff --git a/x11-toolkits/fltk/pkg-plist b/x11-toolkits/fltk/pkg-plist
index 88266fa9dd9f..ec181b8ddde4 100644
--- a/x11-toolkits/fltk/pkg-plist
+++ b/x11-toolkits/fltk/pkg-plist
@@ -159,3 +159,5 @@ lib/libfltk_images.so
lib/libfltk_images.so.1
lib/libfltk_images.so.1.3
@dirrm include/FL
+@dirrmtry etc/fltk/fltk.org
+@dirrmtry etc/fltk