blob: f633eac8d5e6c247cb13e46b5f8141d27e4ef145 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: pachi
# Date created: 18 Sep 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= pachi
PORTVERSION= 1.0
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dragontech
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
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" CXX="${CXX}"
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>
|