summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/ppracer/Makefile13
-rw-r--r--games/ppracer/pkg-plist4
2 files changed, 13 insertions, 4 deletions
diff --git a/games/ppracer/Makefile b/games/ppracer/Makefile
index 3c13805c57fc..a7a71352bd16 100644
--- a/games/ppracer/Makefile
+++ b/games/ppracer/Makefile
@@ -8,7 +8,8 @@
PORTNAME= ppracer
DISTVERSION= 0.5alpha
CATEGORIES= games
-MASTER_SITES= http://download.berlios.de/ppracer/
+MASTER_SITES= ${MASTER_SITE_BERLIOS}
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= adamw@FreeBSD.org
COMMENT= 3D Downhill racing game... kindof like TuxRacer Improved
@@ -23,4 +24,12 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${ARCH}-portbld-freebsd${OSREL}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${ECHO_MSG} "===> Converting DOS text files to UNIX text files"
+ @${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.c" -or -name "*.h" \
+ -type f -print0 | \
+ ${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's/ $$//'
+
+.include <bsd.port.post.mk>
diff --git a/games/ppracer/pkg-plist b/games/ppracer/pkg-plist
index afe6d236e2ee..8d1b7f84d414 100644
--- a/games/ppracer/pkg-plist
+++ b/games/ppracer/pkg-plist
@@ -315,8 +315,8 @@ share/pixmaps/ppracer.png
%%DATADIR%%/translations/ru_RU.nut
%%DATADIR%%/translations/sv_SE.nut
%%DATADIR%%/translations/uk_UA.nut
-@dirrm share/pixmaps
-@dirrm share/applications
+@dirrmtry share/pixmaps
+@dirrmtry share/applications
@dirrm %%DATADIR%%/translations
@dirrm %%DATADIR%%/themes/terrains/snow
@dirrm %%DATADIR%%/themes/terrains/sand