1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/games/gemdropx/Makefile
Steve Wills f7538634e7 - Add second MASTER_SITES entry
- Avoid pkg-plist due to short plist
- Convert to OptionsNG
- Give maintainership to submitter

PR:		ports/171270
Submitted by:	nemysis <nemysis@gmx.ch>
2012-09-10 19:52:36 +00:00

62 lines
1.3 KiB
Makefile

# New ports collection makefile for: gemdropx
# Date created: 9 March 1998
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
PORTNAME= gemdropx
PORTVERSION= 0.9
PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/ \
ftp://ftp.billsgames.com/unix/x/gemdropx/src/
MAINTAINER= nemysis@gmx.ch
COMMENT= Interesting one-player puzzle game for X (SDL)
LICENSE= GPLv2
ALL_TARGET= ${PORTNAME}
USE_SDL= image mixer sdl
USE_GMAKE= yes
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:
# 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>