freebsd-ports/games/gemdropx/Makefile
Rusmir Dusko cfdcc46aa1 - Bump PORTREVISION
- Change master sites, change icon
- USES gmake instead of USE_GMAKE
- Use pkg-plist instead of PLIST_FILES and PLIST_DIRS
- Add DOCS Option
- Add Desktop entry file
- Support STAGEDIR
- Disable all warnings with -w
- Remove unnecessary .xvpics
- Simplify Makefile

Approved by:	pawel / wg (mentors, implicit)
2013-12-27 12:22:58 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= gemdropx
PORTVERSION= 0.9
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/ \
ftp://ftp.billsgames.com/unix/x/gemdropx/src/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Interesting one-player puzzle game for X (SDL)
LICENSE= GPLv2
USES= gmake
USE_SDL= image mixer sdl
ALL_TARGET= ${PORTNAME}
PORTDOCS= AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Gem Drop X" "" "${PORTNAME}" \
"${PORTNAME}" "Game;LogicGame;" ""
post-patch:
@${REINPLACE_CMD} \
-e 's|sdl-config|$(SDL_CONFIG)| ; \
s|CC=gcc|CC?=${CC}| ; \
s|CXX=gcc|CXX?=${CC}| ; \
s|CFLAGS=-Wall $(SDL_CFLAGS)|CFLAGS+=-w $(SDL_CFLAGS)|' \
${WRKSRC}/Makefile
@${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -rf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images sounds" \
${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>