- And the dejavu-fonts fontfile names changed back again (what fun)
- The gcj bug causing us to not compile has been fixed, use gcj again and
drop ExclusiveArch
- There is no reason for us to run ldconfig!
- Sigh we must now define __arch__ ourself as the newer swig doesn't
This commit is contained in:
parent
dc50b2511c
commit
a02bccbd6b
2 changed files with 30 additions and 27 deletions
51
sdljava.spec
51
sdljava.spec
|
|
@ -67,6 +67,29 @@ sed -i "s#@GCC_INCLUDE_PATH@#$GCC_PATH/include#g" \
|
|||
etc/build/gljava/linux/Makefile \
|
||||
etc/build/gljava/linux/ftgl/Makefile
|
||||
|
||||
# add arch defines for swig <-> SDL_config.h wrapper happiness
|
||||
# special case ppc as the define is powerpc not ppc and both ppc and ppc64
|
||||
# must be set for ppc64
|
||||
%ifarch ppc
|
||||
ARCHDEFS="-D__powerpc__"
|
||||
%endif
|
||||
%ifarch ppc64
|
||||
ARCHDEFS="-D__powerpc__ -D__powerpc64__"
|
||||
%endif
|
||||
# special case ix86 as all of ix86 should define __i386__
|
||||
%ifarch %{ix86}
|
||||
ARCHDEFS="-D__i386__"
|
||||
%endif
|
||||
# All other archs
|
||||
if [ -z "$ARCHDEFS" ]; then
|
||||
ARCHDEFS="-D__%{_arch}__"
|
||||
fi
|
||||
# And actually patch the defines into the makefiles
|
||||
sed -i "s/@ARCH_DEFINES@/$ARCHDEFS/g" \
|
||||
etc/build/linux/Makefile \
|
||||
etc/build/gljava/linux/Makefile \
|
||||
etc/build/gljava/linux/ftgl/Makefile
|
||||
|
||||
# adjust testdata path in demos
|
||||
find ./testsrc -name '*.java' | xargs sed -i \
|
||||
-e 's|testdata|%{_datadir}/%{name}/testdata|g'
|
||||
|
|
@ -89,37 +112,17 @@ rm src/org/gljava/opengl/native/glew_wrap.c
|
|||
|
||||
|
||||
%build
|
||||
|
||||
# special case ppc as the define is powerpc not ppc and both ppc and ppc64
|
||||
# must be set for ppc64
|
||||
%ifarch ppc
|
||||
CFLAGS="$RPM_OPT_FLAGS -D__powerpc__ -fno-strict-aliasing -fPIC"
|
||||
%endif
|
||||
%ifarch ppc64
|
||||
CFLAGS="$RPM_OPT_FLAGS -D__powerpc__ -D__powerpc64__ -fno-strict-aliasing -fPIC"
|
||||
%endif
|
||||
|
||||
# special case ix86 as all of ix86 should define __i386__
|
||||
%ifarch %{ix86}
|
||||
CFLAGS="$RPM_OPT_FLAGS -D__i386__ -fno-strict-aliasing -fPIC"
|
||||
%endif
|
||||
|
||||
# All other archs
|
||||
if [ -z "$CFLAGS" ]; then
|
||||
CFLAGS="$RPM_OPT_FLAGS -D__%{_arch}__ -fno-strict-aliasing -fPIC"
|
||||
fi
|
||||
|
||||
pushd src/sdljava/native
|
||||
make CFLAGS="$CFLAGS"
|
||||
make libsdljava_gfx.so CFLAGS="$CFLAGS"
|
||||
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
|
||||
make libsdljava_gfx.so CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
|
||||
popd
|
||||
|
||||
pushd src/org/gljava/opengl/native
|
||||
make CFLAGS="$CFLAGS"
|
||||
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
|
||||
popd
|
||||
|
||||
pushd src/org/gljava/opengl/native/ftgl
|
||||
make CFLAGS="$CFLAGS"
|
||||
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC"
|
||||
popd
|
||||
|
||||
ant jar javadoc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue