diff options
author | gahr <gahr@FreeBSD.org> | 2011-11-28 20:59:50 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2011-11-28 20:59:50 +0800 |
commit | 81e8a40aef09df7becc326c1fbcfa36d0f0f163e (patch) | |
tree | 1e7b97b8ac0ee114ce639940d8f0c3a1ab6c808a /x11-toolkits/fltk | |
parent | d285e1943759ac12588190a08f9189a77ea56ea5 (diff) | |
download | freebsd-ports-gnome-81e8a40aef09df7becc326c1fbcfa36d0f0f163e.tar.gz freebsd-ports-gnome-81e8a40aef09df7becc326c1fbcfa36d0f0f163e.tar.zst freebsd-ports-gnome-81e8a40aef09df7becc326c1fbcfa36d0f0f163e.zip |
- use ${PREFIX}/etc instead of /etc for system-wide preferences
PR: 162023
Submitted by: bf
Feature safe: yes
Diffstat (limited to 'x11-toolkits/fltk')
-rw-r--r-- | x11-toolkits/fltk/Makefile | 3 | ||||
-rw-r--r-- | x11-toolkits/fltk/pkg-plist | 2 |
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 |