aboutsummaryrefslogtreecommitdiffstats
path: root/games/gemdropx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/gemdropx/Makefile')
-rw-r--r--games/gemdropx/Makefile57
1 files changed, 43 insertions, 14 deletions
diff --git a/games/gemdropx/Makefile b/games/gemdropx/Makefile
index 2ef4a367db70..86b5c2840bac 100644
--- a/games/gemdropx/Makefile
+++ b/games/gemdropx/Makefile
@@ -7,26 +7,55 @@
PORTNAME= gemdropx
PORTVERSION= 0.9
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= games
-MASTER_SITES= ftp://ftp.billsgames.com/unix/x/gemdropx/src/
+MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/ \
+ ftp://ftp.billsgames.com/unix/x/gemdropx/src/
-MAINTAINER= ports@FreeBSD.org
-COMMENT= An interesting one-player puzzle game for X
+MAINTAINER= nemysis@gmx.ch
+COMMENT= Interesting one-player puzzle game for X (SDL)
+
+LICENSE= GPLv2
+
+ALL_TARGET= ${PORTNAME}
+USE_SDL= image mixer sdl
-USE_SDL= mixer
USE_GMAKE= yes
-MAKE_ENV= JOY=NO
+
+PLIST_FILES= bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.xmp
+
+PORTDATA= *
+PORTDOCS= AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
+
+.include <bsd.port.options.mk>
+
+post-patch:
+# Fix SDL, CFLAGS
+ @${REINPLACE_CMD} \
+ -e 's|sdl-config|$(SDL_CONFIG)|' \
+ -e 's|CC=gcc|CC?=g++|' \
+ -e 's|CXX=gcc|CXX?=g++|' \
+ -e 's|CFLAGS=-Wall $(SDL_CFLAGS)|CFLAGS+=$(SDL_CFLAGS)|' \
+ ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gemdropx ${PREFIX}/bin
- @${MKDIR} ${DATADIR}/images
- ${INSTALL_DATA} ${WRKSRC}/data/images/* ${DATADIR}/images
- @${MKDIR} ${DATADIR}/sounds
- ${INSTALL_DATA} ${WRKSRC}/data/sounds/* ${DATADIR}/sounds
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+# Executable
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+
+# Data
+ ${MKDIR} ${DATADIR}
+ @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images sounds" ${DATADIR})
+
+# Pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/data/images/gemdropx-icon.xpm ${PREFIX}/share/pixmaps/${PORTNAME}.xmp
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+. for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+. endfor
.endif
.include <bsd.port.mk>