CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
nethack: cleaned some pushd/popd calls.
[attic/ports/games-cross.git] / prboom / Pkgfile
1 # Description: Pure Doom port with the highest compatibility to the major Doom versions
2 # URL: http://prboom.sourceforge.net/
3 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
4 # Depends on: sdl_net
5
6
7 name=prboom
8 version=2.5.0
9 release=2
10 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 export SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
16 export SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net"
17
18 echo "ac_cv_type_uid_t=yes" > config.cache
19
20 ./configure --build=$CHOST \
21 --host=$CTARGET \
22 --prefix=/usr \
23 --mandir=/usr/man \
24 --with-waddir=/usr/share/$name \
25 --disable-debugger \
26 --disable-i386-asm \
27 --disable-gl \
28 --disable-sdltest \
29 --x-libraries=/usr/lib \
30 --with-sdl-prefix=$CLFS/usr \
31 --without-mixer \
32 --cache-file=config.cache
33
34 find . -type f -name Makefile -exec \
35 sed -i {} \
36 -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
37 -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
38 -e "s|-I/usr|-I$CLFS/usr|" \
39 -e "s|-L/usr|-L$CLFS/usr|" \;
40
41 make
42 make DESTDIR=$PKG install
43
44 mv $PKG/usr/{games,bin}
45 rm -rf $PKG/usr/share/doc
46 }