Lines 2-66
Link Here
|
2 |
# $FreeBSD: head/games/uhexen2/Makefile 343630 2014-02-10 13:27:09Z bapt $ |
2 |
# $FreeBSD: head/games/uhexen2/Makefile 343630 2014-02-10 13:27:09Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= uhexen2 |
4 |
PORTNAME= uhexen2 |
5 |
PORTVERSION= 1.5.1 |
5 |
PORTVERSION= 1.5.6 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= games |
6 |
CATEGORIES= games |
8 |
MASTER_SITES= SF/${PORTNAME}/Hammer%20of%20Thyrion/${PORTVERSION}/Source |
7 |
MASTER_SITES= SF/${PORTNAME}/Hammer%20of%20Thyrion/${PORTVERSION}/Source \ |
|
|
8 |
SF/${PORTNAME}/Hexen2%20GameData/gamedata-1.28:data |
9 |
DISTNAME= hexen2source-${PORTVERSION} |
9 |
DISTNAME= hexen2source-${PORTVERSION} |
10 |
EXTRACT_SUFX= .tgz |
10 |
EXTRACT_SUFX= .tgz |
11 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
11 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
|
|
12 |
gamedata-all-1.28${EXTRACT_SUFX}:data |
12 |
DIST_SUBDIR= ${PORTNAME} |
13 |
DIST_SUBDIR= ${PORTNAME} |
13 |
|
14 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Hexen II source port supporting Linux/FreeBSD/Unix/Windows |
16 |
COMMENT= Hexen II source port supporting Linux/FreeBSD/Unix/Windows |
16 |
|
17 |
|
17 |
DEPRECATED= No more public distfiles |
18 |
LICENSE= GPLv2 # (or later) |
18 |
EXPIRATION_DATE= 2014-03-10 |
|
|
19 |
|
19 |
|
20 |
LIB_DEPENDS= mad.2:${PORTSDIR}/audio/libmad |
20 |
LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad \ |
21 |
|
21 |
libvorbis.so:${PORTSDIR}/audio/libvorbis |
22 |
LICENSE_= GPLv2 GPLv3 |
|
|
23 |
LICENSE_COMB= dual |
24 |
|
25 |
USE_GMAKE= yes |
26 |
USE_GL= yes |
27 |
USE_SDL= sdl mixer |
28 |
WANT_GNOME= yes |
29 |
MAKE_JOBS_UNSAFE= yes |
30 |
|
22 |
|
31 |
OPTIONS_MULTI= BIN |
23 |
OPTIONS_MULTI= BIN |
32 |
OPTIONS_MULTI_BIN= HEXEN2 HW |
24 |
OPTIONS_MULTI_BIN= HEXEN2 HW |
33 |
OPTIONS_DEFINE= DEMO LAUNCHER_GTK1 LAUNCHER_GTK2 X86_ASM DOCS |
25 |
OPTIONS_DEFINE= LAUNCHER_GTK1 LAUNCHER_GTK2 LAUNCHER_GTK3 DOCS |
34 |
OPTIONS_DEFAULT= HEXEN2 HW LAUNCHER_GTK1 X86_ASM |
26 |
OPTIONS_DEFAULT= HEXEN2 HW LAUNCHER_GTK2 |
35 |
DEMO_DESC= Install demo version of the game data |
27 |
OPTIONS_DEFINE_i386= ASM |
36 |
HEXEN2_DESC= Build Hexen II clients and servers |
28 |
OPTIONS_DEFAULT_i386= ASM |
37 |
HW_DESC= Build HexenWorld clients and servers |
29 |
|
|
|
30 |
HEXEN2_DESC= Build Hexen II clients and servers |
31 |
HW_DESC= Build HexenWorld clients and servers |
38 |
LAUNCHER_GTK1_DESC= Build graphical (GTK1) game launcher |
32 |
LAUNCHER_GTK1_DESC= Build graphical (GTK1) game launcher |
39 |
LAUNCHER_GTK2_DESC= Build graphical (GTK2) game launcher |
33 |
LAUNCHER_GTK2_DESC= Build graphical (GTK2) game launcher |
40 |
X86_ASM_DESC= Enable use of optimized x86 assembly code |
34 |
LAUNCHER_GTK3_DESC= Build graphical (GTK3) game launcher |
41 |
|
35 |
|
42 |
PORTSCOUT= skipb:yes |
36 |
USES= gmake pkgconfig |
|
|
37 |
USE_SDL= sdl |
38 |
USE_GL= gl |
39 |
MAKE_ENV= X11BASE="${LOCALBASE}" |
40 |
MAKE_JOBS_UNSAFE=yes |
43 |
|
41 |
|
44 |
NO_STAGE= yes |
42 |
SUB_FILES= pkg-message |
45 |
.include <bsd.port.pre.mk> |
|
|
46 |
|
43 |
|
47 |
.if ${PORT_OPTIONS:MDEMO} |
44 |
PORTSCOUT= skipb:yes |
48 |
MASTER_SITES+= SF/${PORTNAME}/Hammer%20of%20Thyrion/${PORTVERSION}/Linux-demo-version:demo |
45 |
|
49 |
DISTFILES+= hexen2demo-${PORTVERSION}-linux-i586${EXTRACT_SUFX}:demo |
46 |
.include <bsd.port.options.mk> |
50 |
MAKE_ENV+= DEMO=yes |
|
|
51 |
PLIST_SUB+= DEMO="" \ |
52 |
FULL="@comment " |
53 |
UH2_DATA= default.cfg hexen.rc pak0.pak progs.dat |
54 |
UH2_DATADIR= ${WRKDIR}/hexen2demo-${PORTVERSION} |
55 |
.else |
56 |
MASTER_SITES+= SF/${PORTNAME}/Hexen2%20GameData/gamedata-1.20:data |
57 |
DISTFILES+= gamedata-all-1.20${EXTRACT_SUFX}:data |
58 |
PLIST_SUB+= DEMO="@comment " \ |
59 |
FULL="" |
60 |
SUB_FILES+= pkg-message |
61 |
UH2_DATA= default.cfg hexen.rc progs.dat progs2.dat strings.txt |
62 |
UH2_DATADIR= ${WRKDIR} |
63 |
.endif |
64 |
|
47 |
|
65 |
.if ${PORT_OPTIONS:MHEXEN2} |
48 |
.if ${PORT_OPTIONS:MHEXEN2} |
66 |
MAKE_ENV+= BUILD_HEXEN2=yes |
49 |
MAKE_ENV+= BUILD_HEXEN2=yes |
Lines 72-86
Link Here
|
72 |
.endif |
55 |
.endif |
73 |
|
56 |
|
74 |
.if ${PORT_OPTIONS:MHW} |
57 |
.if ${PORT_OPTIONS:MHW} |
75 |
. if empty(PORT_OPTIONS:MDEMO) |
|
|
76 |
MASTER_SITES+= SF/${PORTNAME}/Hexen2%20GameData/hexenworld-pakfiles:hw |
58 |
MASTER_SITES+= SF/${PORTNAME}/Hexen2%20GameData/hexenworld-pakfiles:hw |
77 |
DISTFILES+= hexenworld-pakfiles-0.15${EXTRACT_SUFX}:hw |
59 |
DISTFILES+= hexenworld-pakfiles-0.15${EXTRACT_SUFX}:hw |
78 |
. endif |
|
|
79 |
MAKE_ENV+= BUILD_HW=yes |
60 |
MAKE_ENV+= BUILD_HW=yes |
80 |
PLIST_SUB+= HW="" |
61 |
PLIST_SUB+= HW="" |
81 |
UH2_BIN+= engine/hexenworld/client/glhwcl \ |
62 |
UH2_BIN+= engine/hexenworld/client/glhwcl \ |
|
|
63 |
engine/hexenworld/client/hwcl \ |
82 |
engine/hexenworld/server/hwsv \ |
64 |
engine/hexenworld/server/hwsv \ |
83 |
engine/hexenworld/client/hwcl |
65 |
hw_utils/hwmaster/hwmaster |
84 |
.else |
66 |
.else |
85 |
PLIST_SUB+= HW="@comment " |
67 |
PLIST_SUB+= HW="@comment " |
86 |
.endif |
68 |
.endif |
Lines 101-146
Link Here
|
101 |
PLIST_SUB+= LAUNCHER_GTK2="@comment " |
83 |
PLIST_SUB+= LAUNCHER_GTK2="@comment " |
102 |
.endif |
84 |
.endif |
103 |
|
85 |
|
104 |
.if ${PORT_OPTIONS:MX86_ASM} && ${ARCH} == "i386" |
86 |
.if ${PORT_OPTIONS:MLAUNCHER_GTK3} |
|
|
87 |
USE_GNOME+= gtk30 |
88 |
MAKE_ENV+= BUILD_LAUNCHER_GTK3=yes |
89 |
PLIST_SUB+= LAUNCHER_GTK3="" |
90 |
.else |
91 |
PLIST_SUB+= LAUNCHER_GTK3="@comment " |
92 |
.endif |
93 |
|
94 |
.if ${PORT_OPTIONS:MASM} |
105 |
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm |
95 |
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm |
106 |
MAKE_ENV+= USE_X86_ASM=yes |
96 |
MAKE_ENV+= USE_X86_ASM=yes |
|
|
97 |
.else |
98 |
MAKE_ENV+= USE_X86_ASM=no |
107 |
.endif |
99 |
.endif |
108 |
|
100 |
|
109 |
post-extract: |
101 |
post-extract: |
110 |
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC} |
102 |
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC} |
111 |
|
103 |
|
|
|
104 |
post-patch: |
105 |
.for f in engine/hexen2/Makefile engine/hexenworld/client/Makefile \ |
106 |
engine/hexenworld/server/Makefile hw_utils/hwmaster/Makefile \ |
107 |
launcher/Makefile libs/timidity/Makefile |
108 |
@${REINPLACE_CMD} -e \ |
109 |
'/^USE_X86_ASM/s|^|#| ; \ |
110 |
/^CPU_X86/s|^|#| ; \ |
111 |
/^CFLAGS/s| -g | | ; \ |
112 |
/^CFLAGS/s| -O2 | | ; \ |
113 |
/^PTHREAD_LIBS/s|-lpthread|-pthread|' ${WRKSRC}/${f} |
114 |
.endfor |
115 |
.for f in engine/h2shared/cd_bsd.c |
116 |
@${REINPLACE_CMD} -e \ |
117 |
's|"acd0"|"cd0"|' ${WRKSRC}/${f} |
118 |
.endfor |
119 |
.for f in engine/hexen2/sys_unix.c engine/hexenworld/client/sys_unix.c |
120 |
@${REINPLACE_CMD} -e \ |
121 |
'/parms.basedir/s|= cwd;|= "${DATADIR}";|' ${WRKSRC}/${f} |
122 |
.endfor |
123 |
|
112 |
do-install: |
124 |
do-install: |
113 |
.for f in ${UH2_BIN} |
125 |
.for f in ${UH2_BIN} |
114 |
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin |
126 |
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin |
115 |
.endfor |
127 |
.endfor |
116 |
${MKDIR} ${DATADIR}/data1 |
128 |
${MKDIR} ${STAGEDIR}${DATADIR}/data1 |
117 |
.for f in ${UH2_DATA} |
129 |
.for f in default.cfg hexen.rc progs.dat progs2.dat strings.txt |
118 |
${INSTALL_DATA} ${UH2_DATADIR}/data1/${f} ${DATADIR}/data1 |
130 |
${INSTALL_DATA} ${WRKDIR}/data1/${f} ${STAGEDIR}${DATADIR}/data1 |
119 |
.endfor |
131 |
.endfor |
120 |
.if empty(PORT_OPTIONS:MDEMO) |
132 |
${INSTALL_DATA} ${WRKDIR}/patchdat/data1/* ${STAGEDIR}${DATADIR}/data1 |
121 |
${INSTALL_DATA} ${WRKDIR}/patchdat/data1/* ${DATADIR}/data1 |
133 |
@(cd ${WRKDIR} && ${COPYTREE_SHARE} portals ${STAGEDIR}${DATADIR}) |
122 |
${CP} -R ${WRKDIR}/portals ${DATADIR} |
|
|
123 |
.endif |
124 |
.if ${PORT_OPTIONS:MHW} |
134 |
.if ${PORT_OPTIONS:MHW} |
125 |
${MKDIR} ${DATADIR}/hw |
135 |
${MKDIR} ${STAGEDIR}${DATADIR}/hw |
126 |
${INSTALL_DATA} ${UH2_DATADIR}/hw/* ${DATADIR}/hw |
136 |
${INSTALL_DATA} ${WRKDIR}/hw/* ${STAGEDIR}${DATADIR}/hw |
127 |
.endif |
137 |
.endif |
128 |
.if ${PORT_OPTIONS:MLAUNCHER_GTK1} |
138 |
.if ${PORT_OPTIONS:MLAUNCHER_GTK1} |
129 |
${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk1 ${PREFIX}/bin |
139 |
${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk1 \ |
|
|
140 |
${STAGEDIR}${PREFIX}/bin |
130 |
.endif |
141 |
.endif |
131 |
.if ${PORT_OPTIONS:MLAUNCHER_GTK2} |
142 |
.if ${PORT_OPTIONS:MLAUNCHER_GTK2} |
132 |
${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk2 ${PREFIX}/bin |
143 |
${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk2 \ |
|
|
144 |
${STAGEDIR}${PREFIX}/bin |
133 |
.endif |
145 |
.endif |
134 |
.if ${PORT_OPTIONS:MDOCS} |
146 |
.if ${PORT_OPTIONS:MLAUNCHER_GTK3} |
135 |
${MKDIR} ${DOCSDIR} |
147 |
${INSTALL_PROGRAM} ${WRKSRC}/launcher/h2launcher.gtk3 \ |
136 |
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR} |
148 |
${STAGEDIR}${PREFIX}/bin |
137 |
.endif |
|
|
138 |
|
139 |
.if empty(PORT_OPTIONS:MDEMO) |
140 |
post-install: |
141 |
@${ECHO_CMD} |
142 |
@${CAT} ${PKGMESSAGE} |
143 |
@${ECHO_CMD} |
144 |
.endif |
149 |
.endif |
|
|
150 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
151 |
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} |
145 |
|
152 |
|
146 |
.include <bsd.port.post.mk> |
153 |
.include <bsd.port.mk> |