Commit | Line | Data |
---|---|---|
86a41d5f JB |
1 | # Description: Pure Doom port with the highest compatibility to the major Doom versions |
2 | # URL: http://prboom.sourceforge.net/ | |
7c849019 | 3 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
86a41d5f JB |
4 | # Depends on: sdl_net |
5 | ||
6 | ||
7 | name=prboom | |
8 | version=2.5.0 | |
fb58db0d | 9 | release=2 |
86a41d5f JB |
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|" \ | |
fb58db0d VM |
38 | -e "s|-I/usr|-I$CLFS/usr|" \ |
39 | -e "s|-L/usr|-L$CLFS/usr|" \; | |
86a41d5f JB |
40 | |
41 | make | |
42 | make DESTDIR=$PKG install | |
43 | ||
44 | mv $PKG/usr/{games,bin} | |
45 | rm -rf $PKG/usr/share/doc | |
46 | } |