1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/games/pachi/Makefile
Marcus von Appen 6506e45d69 - Update devel/sdl12 to version 1.2.14.
- Update audio/sdl_mixer to version 1.2.11.
- Update graphics/sdl_gfx to version 2.0.20.
- Update graphics/sdl_image to version 1.2.10.
- Bump portrevisions for all ports depending on audio/sdl_mixer and
  graphics/sdl_image.
- Update Mk/bsd.sdl.mk accordingly for the new shared lib versions.

PR:		ports/142147 ports/142248 ports/142249
Approved by:	miwi (mentor implicit)
2010-01-30 09:43:31 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: pachi
# Date created: 18 Sep 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= pachi
PORTVERSION= 1.0
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/dragontech/Pachi%20el%20marciano/Pachi%20el%20marciano%20${PORTVERSION}
DISTNAME= pachi_source
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= A platforms game similar to Manic Miner
USE_SDL= mixer sdl
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
WRKSRC= ${WRKDIR}/Pachi
SCOREDIR= /var/games/pachi
SCOREFILE= ${SCOREDIR}/scores.dat
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
post-install:
${CHGRP} games ${PREFIX}/bin/pachi
${CHMOD} g+s ${PREFIX}/bin/pachi
${MKDIR} ${SCOREDIR}
.if !exists(${SCOREFILE})
${INSTALL_DATA} ${WRKSRC}/data/scores.dat /var/games/pachi
.endif
${CHGRP} -R games ${SCOREDIR}
${CHMOD} g+w ${SCOREFILE}
.include <bsd.port.mk>