Commit | Line | Data |
---|---|---|
298060bb VM |
1 | # Description: real-time, multi-player space warfare game |
2 | # URL: http://www.radscan.com/conquest.html | |
3 | # Maintainer: Victor Martinez, pitillo at ono dot com | |
4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
5 | # Depends on: libsdl | |
6 | ||
7 | name=conquest | |
8 | version=8.5 | |
9 | release=1 | |
10 | source=(http://dl.sourceforge.net/conq/$name-$version.src.tar.gz) | |
11 | ||
12 | build() { | |
13 | cd $name-$version | |
14 | ||
15 | cat > config.cache <<EOF | |
16 | ac_cv_func_setpgrp_void=yes | |
17 | EOF | |
18 | ||
19 | export CFLAGS="$CFLAGS -DHAVE_MMAP" | |
20 | ||
21 | ./configure --build=$CHOST \ | |
22 | --host=$CTARGET \ | |
23 | --prefix=/usr \ | |
24 | --disable-sdltest \ | |
25 | --with-sdl-prefix=$CLFS/usr \ | |
26 | --disable-gl \ | |
27 | --mandir=/usr/man \ | |
28 | --cache-file=config.cache | |
29 | ||
30 | find . -type f -name Makefile -exec \ | |
31 | sed -i {} \ | |
32 | -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \ | |
33 | -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \ | |
34 | -e "s|-I/usr|-I$CLFS/usr|" \ | |
35 | -e "s|-L/usr|-L$CLFS/usr|" \; | |
36 | ||
37 | make | |
38 | make DESTDIR=$PKG CONQDATADIR="/usr/share/$name" CONQGROUP=root libexecdir="/usr/bin/" install | |
39 | rm -r $PKG/usr/share/$name/doc/ | |
40 | } |