[lwjgl] 12/35: Refresh allarchs.patch.

Markus Koschany apo at moszumanska.debian.org
Sat Apr 9 20:38:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository lwjgl.

commit 22a1c8554509a2eaaf86f00930389e4f498629fe
Author: Markus Koschany <apo at debian.org>
Date:   Sat Apr 9 19:08:04 2016 +0200

    Refresh allarchs.patch.
---
 debian/patches/allarchs.patch | 78 +++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 2 files changed, 79 insertions(+)

diff --git a/debian/patches/allarchs.patch b/debian/patches/allarchs.patch
new file mode 100644
index 0000000..10fa42e
--- /dev/null
+++ b/debian/patches/allarchs.patch
@@ -0,0 +1,78 @@
+From: Markus Koschany <apo at debian.org>
+Date: Sat, 9 Apr 2016 19:07:56 +0200
+Subject: allarchs
+
+---
+ platform_build/linux_ant/build.xml | 34 ++++++++++++++++++++++++++++++++--
+ 1 file changed, 32 insertions(+), 2 deletions(-)
+
+diff --git a/platform_build/linux_ant/build.xml b/platform_build/linux_ant/build.xml
+index e5ce8d1..db62711 100644
+--- a/platform_build/linux_ant/build.xml
++++ b/platform_build/linux_ant/build.xml
+@@ -6,12 +6,14 @@
+ 	<property name="libname64" value="liblwjgl64.so"/>
+ 	<property name="libs32" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/i386 -ljawt" />
+ 	<property name="libs64" value="-L/usr/X11R6/lib64 -L/usr/X11/lib64 -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/amd64 -ljawt" />
++	<property name="libs" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXcursor -lXrandr -lXxf86vm -L${java.home}/lib/${os.arch}" />
+ 	<property name="cflags32" value="-O2 -Wall -c -fPIC -std=c99 -Wunused"/>
+ 
+ 	<target name="clean">
+ 		<delete>
+ 			<fileset dir="x32"/>
+ 			<fileset dir="x64"/>
++			<fileset dir="deb"/>
+ 			<fileset dir="." includes="*.o"/>
+ 			<fileset dir="." includes="*.so"/>
+ 		</delete>
+@@ -38,6 +40,7 @@
+ 
+ 		<property name="linker_flags32" value="${version_script_flags32} -shared -O2 -Wall -o ${libname32} ${libs32}"/>
+ 		<property name="linker_flags64" value="${version_script_flags64} -shared -O2 -Wall -o ${libname64} ${libs64}"/>
++		<property name="linker_flagsdeb" value="${version_script_flags32} -shared -O2 -Wall -o ${libname32} ${libs} ${xf86vm_lib}"/>
+ 
+     	<condition property="build.32bit.only">
+     		<not>
+@@ -56,8 +59,10 @@
+     		</and>
+     	</condition>
+ 
+-    	<antcall target="compile32"/>
+-    	<antcall target="compile64"/>
++		<condition property="build.debian"><condition property="build.debian">
++				<os name="Linux" />
++		</condition>
++		<antcall target="compiledeb" />
+     </target>
+ 
+     <target name="compile32" unless="build.64bit.only">
+@@ -123,4 +128,29 @@
+ 			<fileset file="${libname64}"/>
+ 		</apply>
+     </target>
++<target name="compiledeb">    	
++    	<mkdir dir="deb"/>
++    	<apply dir="deb" executable="gcc" skipemptyfilesets="true" failonerror="true">
++			<arg line="${cflags32} ${cflags_pthread} ${cflags_ppc64le}"/>
++			<arg value="-I${java.home}/include"/>
++			<arg value="-I${java.home}/include/linux"/>
++			<arg value="-I${java.home}/../include"/>
++			<arg value="-I${java.home}/../include/linux"/>
++			<arg value="-I${java.home}/../include/solaris"/>
++			<arg value="-I${native}/common"/>
++			<arg value="-I${native}/linux"/>
++			<mapper type="glob" from="*.c" to="*.o"/>
++			<fileset dir="${native}/linux" includes="*.c"/>
++			<fileset dir="${native}/generated" includes="*.c"/>
++			<fileset dir="${native}/common" includes="*.c"/>
++		</apply>
++		<apply dir="." parallel="true" executable="gcc" failonerror="true">
++			<srcfile/>
++			<arg line="${linker_flagsdeb}"/>
++			<fileset dir="deb" includes="*.o"/>
++		</apply>
++		<apply dir="." parallel="true" executable="strip" failonerror="true">
++			<fileset file="${libname32}"/>
++		</apply>
++    </target>
+ </project>
diff --git a/debian/patches/series b/debian/patches/series
index 3e565b8..7d3a546 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 javadoc.patch
 nomacosx.patch
+allarchs.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/lwjgl.git



More information about the pkg-java-commits mailing list