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@crux-arm.nu
10 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
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"
18 echo "ac_cv_type_uid_t=yes" > config.cache
20 ./configure --build=$CHOST \
24 --with-waddir=/usr/share/$name \
29 --x-libraries=/usr/lib \
30 --with-sdl-prefix=$CLFS/usr \
32 --cache-file=config.cache
34 find . -type f -name Makefile -exec \
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|" \;
42 make DESTDIR=$PKG install
44 mv $PKG/usr/{games,bin}
45 rm -rf $PKG/usr/share/doc