summaryrefslogtreecommitdiff
path: root/games/pioneers/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/pioneers/Makefile')
-rw-r--r--games/pioneers/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/games/pioneers/Makefile b/games/pioneers/Makefile
index 376ed1c8b007..6453457c3e3c 100644
--- a/games/pioneers/Makefile
+++ b/games/pioneers/Makefile
@@ -28,4 +28,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
GTK_CONFIG="${GTK_CONFIG}" \
LIBS="-L${LOCALBASE}/lib"
+pre-patch:
+ @${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>