Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= odamex |
8 |
PORTNAME= odamex |
9 |
PORTVERSION= 0.5.6 |
9 |
PORTVERSION= 0.6.1 |
10 |
CATEGORIES= games |
10 |
CATEGORIES= games |
11 |
MASTER_SITES= SF/${PORTNAME}/Odamex/${PORTVERSION} |
11 |
MASTER_SITES= SF/${PORTNAME}/Odamex/${PORTVERSION} |
12 |
DISTNAME= odamex-src-${PORTVERSION} |
12 |
DISTNAME= odamex-src-${PORTVERSION} |
Lines 15-40
Link Here
|
15 |
COMMENT= The Standard in Online Multiplayer Doom |
15 |
COMMENT= The Standard in Online Multiplayer Doom |
16 |
|
16 |
|
17 |
USE_BZIP2= yes |
17 |
USE_BZIP2= yes |
18 |
USE_GMAKE= yes |
|
|
19 |
USE_SDL= sdl mixer |
18 |
USE_SDL= sdl mixer |
|
|
19 |
USE_CMAKE= yes |
20 |
USE_DOS2UNIX= CMakeLists.txt odalaunch/CMakeLists.txt |
20 |
|
21 |
|
21 |
OPTIONS_DEFINE= LAUNCHER MIDI |
22 |
OPTIONS_DEFINE= LAUNCHER |
22 |
|
23 |
|
23 |
LAUNCHER_DESC= Enable GUI launcher program |
24 |
LAUNCHER_DESC= Enable GUI launcher program |
24 |
MIDI_DESC= Enable MIDI support (timidity) |
|
|
25 |
|
25 |
|
26 |
.include <bsd.port.options.mk> |
26 |
.include <bsd.port.options.mk> |
27 |
|
27 |
|
28 |
.if ${PORT_OPTIONS:MLAUNCHER} |
28 |
.if ${PORT_OPTIONS:MLAUNCHER} |
29 |
USE_WX= 2.6+ |
29 |
USE_WX= 2.6+ |
30 |
MAKE_ENV+= WXRC_CMD="${WXRC_CMD}" WITH_LAUNCHER=yes |
30 |
CMAKE_ARGS+= -DODALAUNCH_TARGET=on -DNO_AG-ODALAUNCH_TARGET=off |
31 |
PLIST_SUB+= LAUNCHER="" |
31 |
PLIST_SUB+= LAUNCHER="" |
32 |
.else |
32 |
.else |
33 |
PLIST_SUB+= LAUNCHER="@comment " |
33 |
PLIST_SUB+= LAUNCHER="@comment " |
34 |
.endif |
34 |
CMAKE_ARGS+= -DODALAUNCH_TARGET=off |
35 |
|
|
|
36 |
.if ${PORT_OPTIONS:MMIDI} |
37 |
RUN_DEPENDS+= timidity:${PORTSDIR}/audio/timidity |
38 |
.endif |
35 |
.endif |
39 |
|
36 |
|
40 |
post-patch: |
37 |
post-patch: |
Lines 42-65
Link Here
|
42 |
s|%%DATADIR%%|${DATADIR}|' \ |
39 |
s|%%DATADIR%%|${DATADIR}|' \ |
43 |
${WRKSRC}/client/src/d_main.cpp \ |
40 |
${WRKSRC}/client/src/d_main.cpp \ |
44 |
${WRKSRC}/server/src/d_main.cpp |
41 |
${WRKSRC}/server/src/d_main.cpp |
45 |
|
42 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \ |
46 |
.if ${PORT_OPTIONS:MLAUNCHER} |
43 |
-e 's|%%WX_VER%%|${WX_VERSION}|' \ |
47 |
@${REINPLACE_CMD} -e 's|\./odamex|odamex|' \ |
44 |
${WRKSRC}/odalaunch/CMakeLists.txt \ |
48 |
${WRKSRC}/odalaunch/src/misc.cpp |
45 |
${WRKSRC}/odalaunch/src/dlg_main.cpp |
49 |
.endif |
46 |
@${REINPLACE_CMD} -e 's|-waddir /usr/share/doom||' \ |
|
|
47 |
${WRKSRC}/installer/arch/odamex.desktop |
50 |
|
48 |
|
51 |
do-install: |
49 |
do-install: |
52 |
.for f in odamex odasrv |
50 |
# Binary |
53 |
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin |
51 |
${INSTALL_PROGRAM} ${WRKSRC}/client/odamex ${PREFIX}/bin |
54 |
.endfor |
52 |
${INSTALL_PROGRAM} ${WRKSRC}/server/odasrv ${PREFIX}/bin |
55 |
.if ${PORT_OPTIONS:MLAUNCHER} |
53 |
.if ${PORT_OPTIONS:MLAUNCHER} |
56 |
${INSTALL_PROGRAM} ${WRKSRC}/odalaunch/odalaunch ${PREFIX}/bin |
54 |
${INSTALL_PROGRAM} ${WRKSRC}/odalaunch/odalaunch ${PREFIX}/bin |
57 |
.endif |
55 |
.endif |
|
|
56 |
# Wad |
58 |
${MKDIR} ${DATADIR} |
57 |
${MKDIR} ${DATADIR} |
59 |
${INSTALL_DATA} ${WRKSRC}/odamex.wad ${DATADIR} |
58 |
${INSTALL_DATA} ${WRKSRC}/odamex.wad ${DATADIR} |
|
|
59 |
# Docs |
60 |
.if ${PORT_OPTIONS:MDOCS} |
60 |
.if ${PORT_OPTIONS:MDOCS} |
61 |
${MKDIR} ${DOCSDIR} |
61 |
${MKDIR} ${DOCSDIR} |
62 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
62 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
|
|
63 |
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} |
64 |
.endif |
65 |
# Icons |
66 |
.for f in odamex odasrv |
67 |
${INSTALL_DATA} ${WRKSRC}/media/icon_${f}_*.png ${LOCALBASE}/share/pixmaps |
68 |
.endfor |
69 |
.if ${PORT_OPTIONS:MLAUNCHER} |
70 |
${INSTALL_DATA} ${WRKSRC}/media/icon_odalaunch_*.png ${LOCALBASE}/share/pixmaps |
71 |
.endif |
72 |
# Desktop |
73 |
.for f in odamex odasrv |
74 |
${INSTALL_DATA} ${WRKSRC}/installer/arch/${f}.desktop ${LOCALBASE}/share/applications |
75 |
.endfor |
76 |
.if ${PORT_OPTIONS:MLAUNCHER} |
77 |
${INSTALL_DATA} ${WRKSRC}/installer/arch/odalaunch.desktop ${LOCALBASE}/share/applications |
63 |
.endif |
78 |
.endif |
64 |
|
79 |
|
65 |
.include "${.CURDIR}/../doom-data/Makefile.include" |
80 |
.include "${.CURDIR}/../doom-data/Makefile.include" |