blob: 85c6dd64feb9ec3f4d9971b43a0dc22c1a88cc9f (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# New ports collection makefile for: xblast
# Date created: Sat Nov 08 09:47:12 CET 1997
# Whom: se
#
# $FreeBSD$
#
PORTNAME= xblast
PORTVERSION= 2.10.4
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Sources/${PORTVERSION} \
SF/${PORTNAME}/Images/${IMAGES_DATE}:images \
SF/${PORTNAME}/Levels/${LEVELS_DATE}:levels \
SF/${PORTNAME}/Models/${MODELS_DATE}:models
.if !defined(WITHOUT_SOUND)
MASTER_SITES+= SF/${PORTNAME}/Musics/${MUSICS_DATE}:musics \
SF/${PORTNAME}/Sounds/${SOUNDS_DATE}:sounds
.else
PKGNAMESUFFIX= -nosound
.endif
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
images-${IMAGES_DATE}${EXTRACT_SUFX}:images \
levels-${LEVELS_DATE}${EXTRACT_SUFX}:levels \
models-${MODELS_DATE}${EXTRACT_SUFX}:models
.if !defined(WITHOUT_SOUND)
DISTFILES+= musics-${MUSICS_DATE}${EXTRACT_SUFX}:musics \
sounds${EXTRACT_SUFX}:sounds
.endif
DIST_SUBDIR= xblast
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-player real-time strategy game for X11
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
.if defined(WITHOUT_SOUND)
WITHOUT_SDL= yes
.endif
.if !defined(WITHOUT_SDL)
WANT_SDL= yes
.endif
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-admin
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
AUTOMAKE="${TRUE}"
MAKE_JOBS_SAFE= yes
MAN6= xblast.6
DATADIR= ${PREFIX}/share/XBlast-TNT
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
FONTSDIR= ${LOCALBASE}/lib/X11/fonts/bitstream-vera
IMAGES_DATE= 2005-01-06
LEVELS_DATE= 2005-01-06
MODELS_DATE= 2005-01-06
MUSICS_DATE= 2005-01-06
SOUNDS_DATE= 2004-04-29
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if defined(WITHOUT_SDL)
USE_XORG= ice x11
CONFIGURE_ARGS+= --disable-sdl
PLIST_SUB+= NOSDL=""
.else
RUN_DEPENDS+= ${FONTSDIR}/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera
USE_SDL+= gfx image mixer net ttf sdl
CONFIGURE_ARGS+= --enable-sdl
PLIST_SUB+= NOSDL="@comment "
.endif
.if defined(WITHOUT_SOUND)
CONFIGURE_ARGS+= --disable-sound
PLIST_SUB+= SOUND="@comment "
.else
CONFIGURE_ARGS+= --enable-sound
PLIST_SUB+= SOUND=""
.endif
.if defined(WITH_SMPF)
CONFIGURE_ARGS+= --enable-SMPF
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/games/|/|g ; \
/-ggdb/d' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|$$(game_datadir)/locale|$$(prefix)/share/locale|g ; \
s|^xblast_LDADD =.*$$|xblast_LDADD = $$(LIBINTL)|g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|"Vera.ttf"|"${FONTSDIR}/Vera.ttf"|g' ${WRKSRC}/sdl_text.c
-@${MV} ${WRKDIR}/levels-${LEVELS_DATE}/reconstruct?on2.xal ${WRKDIR}/levels-${LEVELS_DATE}/reconstruction2.xal
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} xblast ${PREFIX}/bin/xblast
.if defined(WITHOUT_SDL) && !defined(WITHOUT_SOUND)
cd ${WRKSRC} && ${INSTALL_PROGRAM} xbsndsrv ${PREFIX}/bin/xbsndsrv
.endif
cd ${WRKSRC} && ${INSTALL_MAN} xblast.man ${MAN6PREFIX}/man/man6/xblast.6
.if !defined(WITHOUT_NLS)
.for lang in de fr
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
cd ${WRKSRC}/po && ${INSTALL_DATA} ${lang}.gmo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/xblast.mo
.endfor
.endif
@${MKDIR} ${DATADIR}/image
@(${TAR} -C ${WRKDIR}/images-${IMAGES_DATE} --exclude "Imakefile" \
-cf - . | ${TAR} -C ${DATADIR}/image --unlink -xf -)
@${MKDIR} ${DATADIR}/level
@(${TAR} -C ${WRKDIR}/levels-${LEVELS_DATE} --exclude "Imakefile" \
-cf - . | ${TAR} -C ${DATADIR}/level --unlink -xf -)
@${MKDIR} ${DATADIR}/image/sprite
@(${TAR} -C ${WRKDIR}/models-${MODELS_DATE} --exclude "Imakefile" \
-cf - . | ${TAR} -C ${DATADIR}/image/sprite --unlink -xf -)
.if !defined(WITHOUT_SOUND)
@${MKDIR} ${DATADIR}/sounds
@(${TAR} -C ${WRKDIR}/musics-${MUSICS_DATE} --exclude "Imakefile" \
-cf - . | ${TAR} -C ${DATADIR}/sounds --unlink -xf -)
@(${TAR} -C ${WRKDIR}/sounds --exclude "Imakefile" \
-cf - . | ${TAR} -C ${DATADIR}/sounds --unlink -xf -)
.endif
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
@${FIND} ${DATADIR} -type d -exec ${CHMOD} 755 {} \;
@${FIND} ${DATADIR} -type f -exec ${CHMOD} ${SHAREMODE} {} \;
.include <bsd.port.mk>
|