# Description: Pure Doom port with the highest compatibility to the major Doom versions # URL: http://prboom.sourceforge.net/ # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Depends on: sdl_net name=prboom version=2.5.0 release=2 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz) build() { cd $name-$version export SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" export SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net" echo "ac_cv_type_uid_t=yes" > config.cache ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --mandir=/usr/man \ --with-waddir=/usr/share/$name \ --disable-debugger \ --disable-i386-asm \ --disable-gl \ --disable-sdltest \ --x-libraries=/usr/lib \ --with-sdl-prefix=$CLFS/usr \ --without-mixer \ --cache-file=config.cache find . -type f -name Makefile -exec \ sed -i {} \ -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \ -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \ -e "s|-I/usr|-I$CLFS/usr|" \ -e "s|-L/usr|-L$CLFS/usr|" \; make make DESTDIR=$PKG install mv $PKG/usr/{games,bin} rm -rf $PKG/usr/share/doc }