|
|
@@ -31,8 +31,8 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EXP]
|
|
|
Group: Games
|
|
|
License: GPL
|
|
|
-Version: 0.54.1
|
|
|
-Release: 2
|
|
|
+Version: 0.55.2
|
|
|
+Release: 0
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://x.mame.net/download/xmame-%{version}.tar.bz2
|
|
|
@@ -41,7 +41,7 @@ Source1: http://www.mame.net/zips/hsdat7.zip
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 0.9-33, gcc, make
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 0.9-33, gcc, make, zlib
|
|
|
PreReq: OpenPKG, openpkg >= 0.9-33
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
@@ -57,21 +57,25 @@ AutoReqProv: no
|
|
|
%build
|
|
|
os=""
|
|
|
cpu=""
|
|
|
+ x11=""
|
|
|
case "%{l_target}" in
|
|
|
*-freebsd* ) os="freebsd"; cpu="i386"; x11="X11R6" ;;
|
|
|
- *-linux* ) os="linux"; cpu="i386"; x11="X11R6" ;;
|
|
|
+ *-linux* ) os="linux"; cpu="i386"; x11="X11R6" ;;
|
|
|
*-solaris* ) os="solaris"; cpu="risc"; x11="openwin" ;;
|
|
|
esac
|
|
|
%{l_make} %{l_mflags -O} \
|
|
|
-f makefile.unix \
|
|
|
CC="%{l_cc}" \
|
|
|
- CFLAGS="-pipe -O2 -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math" \
|
|
|
+ CFLAGS="-I%{l_prefix}/include -I/usr/$x11/include -pipe -O2 -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math" \
|
|
|
+ LDFLAGS="-L%{l_prefix}/lib -L/usr/$x11/lib" \
|
|
|
PREFIX="%{l_prefix}" \
|
|
|
XMAMEROOT="%{l_prefix}/etc/xmame" \
|
|
|
ARCH="$os" \
|
|
|
MY_CPU="$cpu" \
|
|
|
X11INC="-I/usr/$x11/include" \
|
|
|
- X11LIB="-L/usr/$x11/lib"
|
|
|
+ X11LIB="-L/usr/$x11/lib" \
|
|
|
+ LIBS="-L%{l_prefix}/lib" \
|
|
|
+ INCLUDE="-I%{l_prefix}/include"
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|