blob: b3a34a458350b9a1d74fba494fc595381ace6c3a (
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
55
56
57
58
59
|
# New ports collection makefile for: TecnoballZ
# Date created: 19 Jan 2005
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= tecnoballz
PORTVERSION= 0.91
CATEGORIES= games
MASTER_SITES= http://linux.tlk.fr/games/TecnoballZ/download/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A brick breaker (Arkanoid-like game)
LIB_DEPENDS= mikmod:${PORTSDIR}/audio/libmikmod
BUILD_WRKSRC= ${WRKSRC}/src
USE_X_PREFIX= yes
USE_SDL= sdl mixer
USE_GMAKE= yes
MAKE_ARGS+= -j`${SYSCTL} -n hw.ncpu`
MAN6= tecnoballz.6
MAKE_ENV+= LIBMIKMOD_CONFIG=${LOCALBASE}/bin/libmikmod-config
post-patch:
@${FIND} ${WRKSRC}/include -name '*.h' | ${XARGS} ${REINPLACE_CMD} \
-e 's|SDL/||'
@${REINPLACE_CMD} -e \
's|/var/lib/games|/var/games|; \
s|TecnoballZ/|${DATADIR}/|' \
${WRKSRC}/src/ressources.cc
@${REINPLACE_CMD} -e 's|escapeMenu::||' \
${WRKSRC}/include/escapeMenu.h
@${REINPLACE_CMD} -e 's|zexplosion\*|class &|' \
${WRKSRC}/include/zeGigaBlit.h
do-install:
@${MKDIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/tecnoballz ${PREFIX}/bin
${CHGRP} games ${PREFIX}/bin/tecnoballz
${CHMOD} g+s ${PREFIX}/bin/tecnoballz
@${MKDIR} ${DATADIR}
${CP} -R ${WRKSRC}/src/TecnoballZ/* ${DATADIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
${CHMOD} 0644 ${DATADIR}/textures/*
@${MKDIR} ${MAN6PREFIX}/man/man6
${INSTALL_MAN} ${WRKSRC}/man/tecnoballz.1 ${MAN6PREFIX}/man/man6/tecnoballz.6
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|