1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/games/pachi/Makefile
Dmitry Marakasov 195842c3b5 - Remove unneeded -pthread
- Modernize plist
2015-04-01 17:15:58 +00:00

49 lines
1.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= pachi
PORTVERSION= 1.0
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/dragontech/Pachi%20el%20marciano/Pachi%20el%20marciano%20${PORTVERSION}
DISTNAME= pachi_source
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Platform game similar to Manic Miner
USE_SDL= mixer sdl
USES= gmake tar:tgz
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
WRKSRC= ${WRKDIR}/Pachi
SCOREDIR= /var/games/${PORTNAME}
SCOREFILE= ${SCOREDIR}/scores.dat
SUB_FILES= pkg-deinstall pkg-install
SUB_LIST= SCOREDIR="${SCOREDIR}" SCOREFILE="${SCOREFILE}"
PORTDATA= *
DESKTOP_ENTRIES="Pachi el marciano" \
"${COMMENT}" \
"${DATADIR}/Tgfx/icon.bmp" \
"${PORTNAME}" \
"Game;ActionGame;" \
""
post-patch:
@${REINPLACE_CMD} -e 's|/var/lib/games/$$PACKAGE|${SCOREDIR}|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|SCOREDIR[^,]*|"${SCOREFILE}"|' \
${WRKSRC}/src/file.c
@${REINPLACE_CMD} -e 's|:\ install-docDATA|:|' \
${WRKSRC}/docs/Makefile.in
@${REINPLACE_CMD} -e 's|install-scoreDATA\ install-data-local||' \
${WRKSRC}/data/Makefile.in
.include <bsd.port.mk>