summaryrefslogtreecommitdiff
path: root/news/pan2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'news/pan2/Makefile')
-rw-r--r--news/pan2/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/news/pan2/Makefile b/news/pan2/Makefile
index 0f9df8ffd037..567df59f9183 100644
--- a/news/pan2/Makefile
+++ b/news/pan2/Makefile
@@ -30,4 +30,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
GTK_CONFIG="${GTK_CONFIG}" \
LIBS="-L${LOCALBASE}/lib -luu"
+post-extract:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+
.include <bsd.port.mk>