View | Details | Raw Unified | Return to bug 109587
Collapse All | Expand All

(-)wargus/Makefile (-57 / +17 lines)
Lines 6-81 Link Here
6
#
6
#
7
7
8
PORTNAME=	wargus
8
PORTNAME=	wargus
9
PORTVERSION=	2.1
9
PORTVERSION=	2.2.2
10
PORTREVISION=	3
11
CATEGORIES=	games
10
CATEGORIES=	games
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	SF
13
MASTER_SITE_SUBDIR=	${PORTNAME}
12
EXTRACT_SUFX=	-src.tar.gz
14
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
15
13
16
MAINTAINER=	tlp@liquidx.org
14
MAINTAINER=	tlp@liquidx.org
17
COMMENT=	Warcraft 2 mod that allows you to play Warcraft 2 with Stratagus
15
COMMENT=	Warcraft 2 mod that allows you to play Warcraft 2 with Stratagus
18
16
19
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
17
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
20
RUN_DEPENDS=	${LOCALBASE}/bin/stratagus:${PORTSDIR}/games/stratagus
18
RUN_DEPENDS=	stratagus:${PORTSDIR}/games/stratagus
21
19
20
NOT_FOR_ARCHS=	sparc64
22
USE_GMAKE=	yes
21
USE_GMAKE=	yes
23
24
PKGMESSAGE=	${WRKDIR}/pkg-message
25
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
22
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
26
23
27
.include <bsd.port.pre.mk>
24
SUB_FILES=	${PORTNAME} pkg-message
28
29
.if ${ARCH} == "sparc64"
30
BROKEN=		"Does not compile on sparc64"
31
.endif
32
33
post-patch:
34
	@${REINPLACE_CMD} -e 's|^\(CC\)|#\1|; \
35
		s|^\(CFLAGS =\)|\1 ${CFLAGS}|; \
36
		s|\/usr\/local\(\/cross\)|${PREFIX}\1|; \
37
		s|\(-I\)\/usr\/local|\1${LOCALBASE}|; \
38
		s|\(-L\)\/usr\/local|\1${LOCALBASE}|; \
39
		s|-static||' \
40
		${WRKSRC}/Makefile
41
25
42
do-install:
26
do-install:
43
	${MKDIR} ${DATADIR}
27
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
44
	${MKDIR} ${DATADIR}/campaigns
28
	cd ${WRKSRC} && \
45
	${MKDIR} ${DATADIR}/campaigns/human
29
		${FIND} campaigns contrib maps scripts -type d \
46
	${MKDIR} ${DATADIR}/campaigns/human-exp
30
		-exec ${MKDIR} "${DATADIR}/{}" \; && \
47
	${MKDIR} ${DATADIR}/campaigns/orc
31
		${FIND} campaigns contrib maps scripts -type f \
48
	${MKDIR} ${DATADIR}/campaigns/orc-exp
32
		-exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
49
	${MKDIR} ${DATADIR}/contrib
33
	${INSTALL_PROGRAM} ${WRKSRC}/wartool ${DATADIR}
50
	${MKDIR} ${DATADIR}/maps
34
	${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${DATADIR}
51
	${MKDIR} ${DATADIR}/maps/multi
52
	${MKDIR} ${DATADIR}/scripts
53
	${MKDIR} ${DATADIR}/scripts/ai
54
	${MKDIR} ${DATADIR}/scripts/human
55
	${MKDIR} ${DATADIR}/scripts/orc
56
	${MKDIR} ${DATADIR}/scripts/tilesets
57
	${INSTALL_DATA} ${WRKSRC}/campaigns/human/* ${DATADIR}/campaigns/human
58
	${INSTALL_DATA} ${WRKSRC}/campaigns/human-exp/* ${DATADIR}/campaigns/human-exp
59
	${INSTALL_DATA} ${WRKSRC}/campaigns/orc/* ${DATADIR}/campaigns/orc
60
	${INSTALL_DATA} ${WRKSRC}/campaigns/orc-exp/* ${DATADIR}/campaigns/orc-exp
61
	${INSTALL_DATA} ${WRKSRC}/contrib/* ${DATADIR}/contrib
62
	${INSTALL_DATA} ${WRKSRC}/maps/multi/* ${DATADIR}/maps/multi
63
	${INSTALL_DATA} ${WRKSRC}/scripts/*.lua ${DATADIR}/scripts
64
	${INSTALL_DATA} ${WRKSRC}/scripts/ai/* ${DATADIR}/scripts/ai
65
	${INSTALL_DATA} ${WRKSRC}/scripts/human/* ${DATADIR}/scripts/human
66
	${INSTALL_DATA} ${WRKSRC}/scripts/orc/* ${DATADIR}/scripts/orc
67
	${INSTALL_DATA} ${WRKSRC}/scripts/tilesets/* ${DATADIR}/scripts/tilesets
68
	${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${DATADIR}/build.sh
69
	${INSTALL_PROGRAM} ${WRKSRC}/wartool ${DATADIR}/wartool
70
	${INSTALL_SCRIPT} ${WRKDIR}/wargus ${PREFIX}/bin/wargus
71
72
post-build:
73
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
74
	@(cp ${FILESDIR}/wargus.in ${WRKDIR}/wargus)
75
	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKDIR}/wargus
76
	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
77
35
78
post-install:
36
post-install:
37
	@${ECHO_CMD}
79
	@${CAT} ${PKGMESSAGE}
38
	@${CAT} ${PKGMESSAGE}
39
	@${ECHO_CMD}
80
40
81
.include <bsd.port.post.mk>
41
.include <bsd.port.mk>
(-)wargus/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (wargus-2.1-src.tar.gz) = 571363cc79c5c532c48f31ad5c06398d
1
MD5 (wargus-2.2.2-src.tar.gz) = 7cbcfd055fbff964ea2143975c5cd87f
2
SHA256 (wargus-2.1-src.tar.gz) = cfd920660fc801eab7bc0c261447067d10a4f66b991655dcb78a41b745ddee78
2
SHA256 (wargus-2.2.2-src.tar.gz) = b451d6a46ab501e29648cac3eedf91552fd2ccdd9093f229d36d77ea84dc816b
3
SIZE (wargus-2.1-src.tar.gz) = 542211
3
SIZE (wargus-2.2.2-src.tar.gz) = 574443
(-)wargus/pkg-plist (-54 / +74 lines)
Lines 1-57 Link Here
1
bin/wargus
1
bin/wargus
2
%%DATADIR%%/build.sh
2
%%DATADIR%%/build.sh
3
%%DATADIR%%/campaigns/human-exp/levelx01h.cm
3
%%DATADIR%%/campaigns/human-exp/levelx01h_c.sms
4
%%DATADIR%%/campaigns/human-exp/levelx02h.cm
4
%%DATADIR%%/campaigns/human-exp/levelx02h_c.sms
5
%%DATADIR%%/campaigns/human-exp/levelx03h.cm
5
%%DATADIR%%/campaigns/human-exp/levelx03h_c.sms
6
%%DATADIR%%/campaigns/human-exp/levelx04h.cm
6
%%DATADIR%%/campaigns/human-exp/levelx04h_c.sms
7
%%DATADIR%%/campaigns/human-exp/levelx05h.cm
7
%%DATADIR%%/campaigns/human-exp/levelx05h_c.sms
8
%%DATADIR%%/campaigns/human-exp/levelx06h.cm
8
%%DATADIR%%/campaigns/human-exp/levelx06h_c.sms
9
%%DATADIR%%/campaigns/human-exp/levelx07h.cm
9
%%DATADIR%%/campaigns/human-exp/levelx07h_c.sms
10
%%DATADIR%%/campaigns/human-exp/levelx08h.cm
10
%%DATADIR%%/campaigns/human-exp/levelx08h_c.sms
11
%%DATADIR%%/campaigns/human-exp/levelx09h.cm
11
%%DATADIR%%/campaigns/human-exp/levelx09h_c.sms
12
%%DATADIR%%/campaigns/human-exp/levelx10h.cm
12
%%DATADIR%%/campaigns/human-exp/levelx10h_c.sms
13
%%DATADIR%%/campaigns/human-exp/levelx11h.cm
13
%%DATADIR%%/campaigns/human-exp/levelx11h_c.sms
14
%%DATADIR%%/campaigns/human-exp/levelx12h.cm
14
%%DATADIR%%/campaigns/human-exp/levelx12h_c.sms
15
%%DATADIR%%/campaigns/human/level01h.cm
15
%%DATADIR%%/campaigns/human/level01h_c.sms
16
%%DATADIR%%/campaigns/human/level02h.cm
16
%%DATADIR%%/campaigns/human/level02h_c.sms
17
%%DATADIR%%/campaigns/human/level03h.cm
17
%%DATADIR%%/campaigns/human/level03h_c.sms
18
%%DATADIR%%/campaigns/human/level04h.cm
18
%%DATADIR%%/campaigns/human/level04h_c.sms
19
%%DATADIR%%/campaigns/human/level05h.cm
19
%%DATADIR%%/campaigns/human/level05h_c.sms
20
%%DATADIR%%/campaigns/human/level06h.cm
20
%%DATADIR%%/campaigns/human/level06h_c.sms
21
%%DATADIR%%/campaigns/human/level07h.cm
21
%%DATADIR%%/campaigns/human/level07h_c.sms
22
%%DATADIR%%/campaigns/human/level08h.cm
22
%%DATADIR%%/campaigns/human/level08h_c.sms
23
%%DATADIR%%/campaigns/human/level09h.cm
23
%%DATADIR%%/campaigns/human/level09h_c.sms
24
%%DATADIR%%/campaigns/human/level10h.cm
24
%%DATADIR%%/campaigns/human/level10h_c.sms
25
%%DATADIR%%/campaigns/human/level11h.cm
25
%%DATADIR%%/campaigns/human/level11h_c.sms
26
%%DATADIR%%/campaigns/human/level12h.cm
26
%%DATADIR%%/campaigns/human/level12h_c.sms
27
%%DATADIR%%/campaigns/human/level13h.cm
27
%%DATADIR%%/campaigns/human/level13h_c.sms
28
%%DATADIR%%/campaigns/human/level14h.cm
28
%%DATADIR%%/campaigns/human/level14h_c.sms
29
%%DATADIR%%/campaigns/orc-exp/levelx01o.cm
29
%%DATADIR%%/campaigns/orc-exp/levelx01o_c.sms
30
%%DATADIR%%/campaigns/orc-exp/levelx02o.cm
30
%%DATADIR%%/campaigns/orc-exp/levelx02o_c.sms
31
%%DATADIR%%/campaigns/orc-exp/levelx03o.cm
31
%%DATADIR%%/campaigns/orc-exp/levelx03o_c.sms
32
%%DATADIR%%/campaigns/orc-exp/levelx04o.cm
32
%%DATADIR%%/campaigns/orc-exp/levelx04o_c.sms
33
%%DATADIR%%/campaigns/orc-exp/levelx05o.cm
33
%%DATADIR%%/campaigns/orc-exp/levelx05o_c.sms
34
%%DATADIR%%/campaigns/orc-exp/levelx06o.cm
34
%%DATADIR%%/campaigns/orc-exp/levelx06o_c.sms
35
%%DATADIR%%/campaigns/orc-exp/levelx07o.cm
35
%%DATADIR%%/campaigns/orc-exp/levelx07o_c.sms
36
%%DATADIR%%/campaigns/orc-exp/levelx08o.cm
36
%%DATADIR%%/campaigns/orc-exp/levelx08o_c.sms
37
%%DATADIR%%/campaigns/orc-exp/levelx09o.cm
37
%%DATADIR%%/campaigns/orc-exp/levelx09o_c.sms
38
%%DATADIR%%/campaigns/orc-exp/levelx10o.cm
38
%%DATADIR%%/campaigns/orc-exp/levelx10o_c.sms
39
%%DATADIR%%/campaigns/orc-exp/levelx11o.cm
39
%%DATADIR%%/campaigns/orc-exp/levelx11o_c.sms
40
%%DATADIR%%/campaigns/orc-exp/levelx12o.cm
40
%%DATADIR%%/campaigns/orc-exp/levelx12o_c.sms
41
%%DATADIR%%/campaigns/orc/level01o.cm
41
%%DATADIR%%/campaigns/orc/level01o_c.sms
42
%%DATADIR%%/campaigns/orc/level02o.cm
42
%%DATADIR%%/campaigns/orc/level02o_c.sms
43
%%DATADIR%%/campaigns/orc/level03o.cm
43
%%DATADIR%%/campaigns/orc/level03o_c.sms
44
%%DATADIR%%/campaigns/orc/level04o.cm
44
%%DATADIR%%/campaigns/orc/level04o_c.sms
45
%%DATADIR%%/campaigns/orc/level05o.cm
45
%%DATADIR%%/campaigns/orc/level05o_c.sms
46
%%DATADIR%%/campaigns/orc/level06o.cm
46
%%DATADIR%%/campaigns/orc/level06o_c.sms
47
%%DATADIR%%/campaigns/orc/level07o.cm
47
%%DATADIR%%/campaigns/orc/level07o_c.sms
48
%%DATADIR%%/campaigns/orc/level08o.cm
48
%%DATADIR%%/campaigns/orc/level08o_c.sms
49
%%DATADIR%%/campaigns/orc/level09o.cm
49
%%DATADIR%%/campaigns/orc/level09o_c.sms
50
%%DATADIR%%/campaigns/orc/level10o.cm
50
%%DATADIR%%/campaigns/orc/level10o_c.sms
51
%%DATADIR%%/campaigns/orc/level11o.cm
51
%%DATADIR%%/campaigns/orc/level11o_c.sms
52
%%DATADIR%%/campaigns/orc/level12o.cm
52
%%DATADIR%%/campaigns/orc/level12o_c.sms
53
%%DATADIR%%/campaigns/orc/level13o.cm
53
%%DATADIR%%/campaigns/orc/level13o_c.sms
54
%%DATADIR%%/campaigns/orc/level14o.cm
54
%%DATADIR%%/campaigns/orc/level14o_c.sms
55
%%DATADIR%%/contrib/cross.png
55
%%DATADIR%%/contrib/cross.png
56
%%DATADIR%%/contrib/food.png
56
%%DATADIR%%/contrib/food.png
57
%%DATADIR%%/contrib/health.png
57
%%DATADIR%%/contrib/health.png
Lines 63-68 Link Here
63
%%DATADIR%%/contrib/score.png
63
%%DATADIR%%/contrib/score.png
64
%%DATADIR%%/contrib/stratagus.png
64
%%DATADIR%%/contrib/stratagus.png
65
%%DATADIR%%/contrib/toccata.mod.gz
65
%%DATADIR%%/contrib/toccata.mod.gz
66
%%DATADIR%%/contrib/wargus.ico
67
%%DATADIR%%/contrib/wargus.png
66
%%DATADIR%%/maps/multi/(3)little-ambush.pud.gz
68
%%DATADIR%%/maps/multi/(3)little-ambush.pud.gz
67
%%DATADIR%%/maps/multi/(3)little-ambush.txt
69
%%DATADIR%%/maps/multi/(3)little-ambush.txt
68
%%DATADIR%%/maps/multi/(4)4-corners.pud.gz
70
%%DATADIR%%/maps/multi/(4)4-corners.pud.gz
Lines 71-77 Link Here
71
%%DATADIR%%/maps/multi/(4)4-isl.txt
73
%%DATADIR%%/maps/multi/(4)4-isl.txt
72
%%DATADIR%%/maps/multi/(4)chop-the-trees.pud.gz
74
%%DATADIR%%/maps/multi/(4)chop-the-trees.pud.gz
73
%%DATADIR%%/maps/multi/(4)chop-the-trees.txt
75
%%DATADIR%%/maps/multi/(4)chop-the-trees.txt
74
%%DATADIR%%/maps/multi/(4)civ-decadente-v17.pud.gz
75
%%DATADIR%%/maps/multi/(4)criss_cross.pud.gz
76
%%DATADIR%%/maps/multi/(4)criss_cross.pud.gz
76
%%DATADIR%%/maps/multi/(4)criss_cross2.pud.gz
77
%%DATADIR%%/maps/multi/(4)criss_cross2.pud.gz
77
%%DATADIR%%/maps/multi/(4)criss_cross2.txt
78
%%DATADIR%%/maps/multi/(4)criss_cross2.txt
Lines 97-109 Link Here
97
%%DATADIR%%/scripts/ai/sea_attack.lua
98
%%DATADIR%%/scripts/ai/sea_attack.lua
98
%%DATADIR%%/scripts/anim.lua
99
%%DATADIR%%/scripts/anim.lua
99
%%DATADIR%%/scripts/buttons.lua
100
%%DATADIR%%/scripts/buttons.lua
100
%%DATADIR%%/scripts/campaigns.lua
101
%%DATADIR%%/scripts/cheats.lua
101
%%DATADIR%%/scripts/cheats.lua
102
%%DATADIR%%/scripts/commands.lua
102
%%DATADIR%%/scripts/constructions.lua
103
%%DATADIR%%/scripts/constructions.lua
103
%%DATADIR%%/scripts/credits.lua
104
%%DATADIR%%/scripts/credits.lua
104
%%DATADIR%%/scripts/editor.lua
105
%%DATADIR%%/scripts/editor.lua
105
%%DATADIR%%/scripts/fonts.lua
106
%%DATADIR%%/scripts/fonts.lua
107
%%DATADIR%%/scripts/guichan.lua
106
%%DATADIR%%/scripts/helpers.lua
108
%%DATADIR%%/scripts/helpers.lua
109
%%DATADIR%%/scripts/human/anim.lua
107
%%DATADIR%%/scripts/human/buttons.lua
110
%%DATADIR%%/scripts/human/buttons.lua
108
%%DATADIR%%/scripts/human/campaign1.lua
111
%%DATADIR%%/scripts/human/campaign1.lua
109
%%DATADIR%%/scripts/human/campaign2.lua
112
%%DATADIR%%/scripts/human/campaign2.lua
Lines 114-120 Link Here
114
%%DATADIR%%/scripts/icons.lua
117
%%DATADIR%%/scripts/icons.lua
115
%%DATADIR%%/scripts/keystrokes.lua
118
%%DATADIR%%/scripts/keystrokes.lua
116
%%DATADIR%%/scripts/menus.lua
119
%%DATADIR%%/scripts/menus.lua
120
%%DATADIR%%/scripts/menus/campaign.lua
121
%%DATADIR%%/scripts/menus/credits.lua
122
%%DATADIR%%/scripts/menus/diplomacy.lua
123
%%DATADIR%%/scripts/menus/endscenario.lua
124
%%DATADIR%%/scripts/menus/game.lua
125
%%DATADIR%%/scripts/menus/help.lua
126
%%DATADIR%%/scripts/menus/load.lua
127
%%DATADIR%%/scripts/menus/network.lua
128
%%DATADIR%%/scripts/menus/objectives.lua
129
%%DATADIR%%/scripts/menus/options.lua
130
%%DATADIR%%/scripts/menus/replay.lua
131
%%DATADIR%%/scripts/menus/results.lua
132
%%DATADIR%%/scripts/menus/save.lua
117
%%DATADIR%%/scripts/missiles.lua
133
%%DATADIR%%/scripts/missiles.lua
134
%%DATADIR%%/scripts/orc/anim.lua
118
%%DATADIR%%/scripts/orc/buttons.lua
135
%%DATADIR%%/scripts/orc/buttons.lua
119
%%DATADIR%%/scripts/orc/campaign1.lua
136
%%DATADIR%%/scripts/orc/campaign1.lua
120
%%DATADIR%%/scripts/orc/campaign2.lua
137
%%DATADIR%%/scripts/orc/campaign2.lua
Lines 123-128 Link Here
123
%%DATADIR%%/scripts/orc/units.lua
140
%%DATADIR%%/scripts/orc/units.lua
124
%%DATADIR%%/scripts/orc/upgrade.lua
141
%%DATADIR%%/scripts/orc/upgrade.lua
125
%%DATADIR%%/scripts/ranks.lua
142
%%DATADIR%%/scripts/ranks.lua
143
%%DATADIR%%/scripts/scripts.lua
126
%%DATADIR%%/scripts/sound.lua
144
%%DATADIR%%/scripts/sound.lua
127
%%DATADIR%%/scripts/spells.lua
145
%%DATADIR%%/scripts/spells.lua
128
%%DATADIR%%/scripts/stratagus.lua
146
%%DATADIR%%/scripts/stratagus.lua
Lines 136-144 Link Here
136
%%DATADIR%%/scripts/units.lua
154
%%DATADIR%%/scripts/units.lua
137
%%DATADIR%%/scripts/upgrade.lua
155
%%DATADIR%%/scripts/upgrade.lua
138
%%DATADIR%%/scripts/wc2.lua
156
%%DATADIR%%/scripts/wc2.lua
157
%%DATADIR%%/scripts/widgets.lua
139
%%DATADIR%%/wartool
158
%%DATADIR%%/wartool
140
@dirrm %%DATADIR%%/scripts/tilesets
159
@dirrm %%DATADIR%%/scripts/tilesets
141
@dirrm %%DATADIR%%/scripts/orc
160
@dirrm %%DATADIR%%/scripts/orc
161
@dirrm %%DATADIR%%/scripts/menus
142
@dirrm %%DATADIR%%/scripts/human
162
@dirrm %%DATADIR%%/scripts/human
143
@dirrm %%DATADIR%%/scripts/ai
163
@dirrm %%DATADIR%%/scripts/ai
144
@dirrm %%DATADIR%%/scripts
164
@dirrm %%DATADIR%%/scripts
(-)wargus/files/patch-Makefile (+22 lines)
Added Link Here
1
--- ./Makefile.orig	Sun Jan 14 21:40:52 2007
2
+++ ./Makefile	Mon Feb 26 14:31:39 2007
3
@@ -1,11 +1,11 @@
4
 
5
-CC = gcc
6
+CC ?= gcc
7
 
8
 CROSSDIR = /usr/local/cross
9
 STRATAGUSPATH = ../stratagus/
10
 
11
-CFLAGS = -I/usr/local/include -Wall -Wsign-compare
12
-LDFLAGS = -lz -lpng -lm -L/usr/local/lib
13
+CFLAGS += -I$(LOCALBASE)/include -Wall -Wsign-compare
14
+LDFLAGS += -lz -lpng -lm -L$(LOCALBASE)/lib
15
 
16
 all: wartool pudconvert
17
 
18
@@ -47,3 +47,4 @@
19
 	for i in `cat .list`; do echo $$i; done | cpio -pdml --quiet wargus-$(ver);\
20
 	tar -zcf wargus-$(ver)-linux.tar.gz wargus-$(ver); \
21
 	rm -rf wargus-$(ver) .list stratagus;
22
+
(-)wargus/files/pkg-message.in (-10 / +12 lines)
Lines 1-7 Link Here
1
-------------------------------------------------------------------------------
1
------------------------------------------------------------------------------
2
The Wargus tool has been installed to %%PREFIX%%/share/wargus/
3
2
4
You can now use this tool to extract Warcraft 2 data for use with the 
3
The Wargus tool has been installed to "%%DATADIR%%".
4
5
You can now use this tool to extract Warcraft 2 data for use with the
5
Stratagus engine from the following CDs:
6
Stratagus engine from the following CDs:
6
7
7
* US Expansion (both MAC/DOS)
8
* US Expansion (both MAC/DOS)
Lines 12-24 Link Here
12
* German Expansion
13
* German Expansion
13
* Spanish Original
14
* Spanish Original
14
15
15
If you have one of the above CDs mounted on /cdrom, su to root and change to 
16
If you have one of the above CDs mounted on /cdrom, 'su' to root, change to
16
the %%PREFIX%%/share/wargus/ directory and try executing: 
17
the "%%DATADIR%%" directory and try executing:
18
19
$ ./build.sh -p /cdrom
17
20
18
./build.sh -p /cdrom
21
After your Warcraft 2 data has been successfully extracted, run 'wargus' as
22
the user you intend to play the game with.
19
23
20
After your Warcraft 2 data has been successfully extracted, run 'wargus' as the
24
For more information, please visit: http://wargus.sourceforge.net/
21
user you intend to play the game with.
22
25
23
For more information, please visit: http://wargus.sourceforge.net
26
------------------------------------------------------------------------------
24
-------------------------------------------------------------------------------
(-)wargus/files/wargus.in (-38 / +9 lines)
Lines 6-51 Link Here
6
#
6
#
7
# 2004 Travis Poppe <tlp@LiquidX.org>
7
# 2004 Travis Poppe <tlp@LiquidX.org>
8
8
9
DATADIR=%%PREFIX%%/share/wargus/data.wc2
9
DATADIR="%%DATADIR%%/data.wc2"
10
11
if [ ! -d $DATADIR ]; then
12
	echo "Warcraft 2 data not found in $DATADIR/"
13
	echo ""
14
	echo "Did you run build.sh yet?"
15
	echo ""
16
	echo "Giving you instructions in 5 seconds..."
17
	sleep 5
18
	echo ""
19
	echo "The Wargus tool has been installed to %%PREFIX%%/share/wargus/"
20
	echo ""
21
	echo "You can now use this tool to extract Warcraft 2 data for use with the"
22
	echo "Stratagus engine from the following CDs:"
23
	echo ""
24
	echo "* US Expansion (both MAC/DOS)"
25
	echo "* US Original (both MAC/DOS)"
26
	echo "* UK/Australian Original"
27
	echo "* UK/Australian Expansion"
28
	echo "* German Original"
29
	echo "* German Expansion"
30
	echo "* Spanish Original"
31
	echo ""
32
	echo "If you have one of the above CDs mounted on /cdrom, su to root and change to"
33
	echo "the %%PREFIX%%/share/wargus/ directory and try executing:"
34
	echo ""
35
	echo "./build.sh -p /cdrom"
36
 	echo ""
37
	echo "After your Warcraft 2 data has been successfully extracted, run 'wargus' as the"
38
	echo "user you intend to play the game with."
39
 	echo ""
40
	echo "For more information, please visit: http://wargus.sourceforge.net"
41
	exit
42
fi
43
10
44
if [ -d $DATADIR ]; then
11
if [ -d $DATADIR ]; then
45
	echo "Warcraft 2 data found in $DATADIR/"
12
	echo "Running Stratagus with Warcraft 2 data found in \"$DATADIR\"."
13
	echo ""
14
	exec stratagus -d $DATADIR "$@"
15
else
16
	echo "ERROR: Warcraft 2 data not found in \"$DATADIR\"."
46
	echo ""
17
	echo ""
47
	echo "Attempting to run Stratagus with Warcraft 2 data"
18
	echo "Please follow the instructions from the installation message:"
48
	echo ""
19
	echo ""
49
	stratagus -d $DATADIR $*
20
	pkg_info -D "wargus-[0-9]*"
50
	exit
21
	exit 1
51
fi
22
fi

Return to bug 109587