Package list lwjgl / ad084d3
added debian/ Gabriele Giacone 11 years ago
16 changed file(s) with 464 addition(s) and 85 deletion(s). Raw diff Collapse all Expand all
0 Information about lwjgl
1 -----------------------
2
3 REPACKAGING
4
5 To comply with DFSG, the following files have been removed from
6 upstream tarball:
7
8 # binary
9 - platform_build/Pack200Task.jar
10 - platform_build/JLzma.jar
11
12 Also files generated during build process have been removed:
13
14 - src/generated/*
15 - src/native/generated/*
16
0 lwjgl (2.4.2+dfsg-1) unstable; urgency=low
1
2 * Initial release. (Closes: #575321)
3
4 -- Gabriele Giacone <1o5g4r8o@gmail.com> Sat, 29 May 2010 02:10:20 +0200
0 Source: lwjgl
1 Section: java
2 Priority: optional
3 Maintainer: Gabriele Giacone <1o5g4r8o@gmail.com>
4 Build-Depends: debhelper (>= 7.0.50~), javahelper, ant, ant-optional,
5 default-jdk, quilt (>= 0.46-7~), libjinput-java, libxrandr-dev, libxxf86vm-dev,
6 libxcursor-dev, libxt-dev
7 Standards-Version: 3.8.4
8 Vcs-Git: git://git.debian.org/pkg-java/lwjgl.git
9 Vcs-Browser: http://git.debian.org/?p=pkg-java/lwjgl.git
10 Homepage: http://lwjgl.org/
11
12 Package: liblwjgl-java
13 Architecture: all
14 Depends: ${misc:Depends}, default-jre, libjinput-java, liblwjgl-java-jni
15 (>= ${source:Version})
16 Description: Lightweight Java Game Library
17 The Lightweight Java Game Library (LWJGL) is a solution aimed directly at
18 professional and amateur Java programmers alike to enable commercial quality
19 games to be written in Java. LWJGL provides developers access to high
20 performance crossplatform libraries such as OpenGL (Open Graphics Library)
21 and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D
22 sound. Additionally LWJGL provides access to controllers such as Gamepads,
23 Steering wheel and Joysticks. All in a simple and straight forward API.
24
25 Package: liblwjgl-java-jni
26 Architecture: any
27 Depends: ${shlibs:Depends}, ${misc:Depends}
28 Description: Lightweight Java Game Library (jni)
29 The Lightweight Java Game Library (LWJGL) is a solution aimed directly at
30 professional and amateur Java programmers alike to enable commercial quality
31 games to be written in Java. LWJGL provides developers access to high
32 performance crossplatform libraries such as OpenGL (Open Graphics Library)
33 and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D
34 sound. Additionally LWJGL provides access to controllers such as Gamepads,
35 Steering wheel and Joysticks. All in a simple and straight forward API.
36 .
37 This package contains the java jni library.
38
39 Package: liblwjgl-java-doc
40 Architecture: all
41 Section: doc
42 Depends: ${misc:Depends}
43 Suggests: liblwjgl-java
44 Description: Lightweight Java Game Library (javadoc)
45 The Lightweight Java Game Library (LWJGL) is a solution aimed directly at
46 professional and amateur Java programmers alike to enable commercial quality
47 games to be written in Java. LWJGL provides developers access to high
48 performance crossplatform libraries such as OpenGL (Open Graphics Library)
49 and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D
50 sound. Additionally LWJGL provides access to controllers such as Gamepads,
51 Steering wheel and Joysticks. All in a simple and straight forward API.
52 .
53 This package contains the API documentation for lwjgl.
0 Format-Specification: http://dep.debian.net/deps/dep5/
1 Name: lwjgl - Lightweight Java Game Library
2 Maintainer: LWJGL developers <info@lwjgl.org>
3 Source: http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/
4
5 Copyright: 2002-2010, Lightweight Java Game Library Project
6 License: BSD
7 On Debian GNU/Linux system you can find the complete text of the
8 BSD license in '/usr/share/common-licenses/BSD'
9
10 Files: ./src/native/common/extgl.c, ./src/native/windows/extgl_wgl.c
11 Copyright: 2001-2002, Lev Povalahev <levp@gmx.net>
12 License: BSD
13 On Debian GNU/Linux system you can find the complete text of the
14 BSD license in '/usr/share/common-licenses/BSD'
15
16 Files: debian/*
17 Copyright: 2010, Gabriele Giacone <1o5g4r8o@gmail.com>
18 License: BSD
19 On Debian GNU/Linux system you can find the complete text of the
20 BSD license in '/usr/share/common-licenses/BSD'
0 Document: liblwjgl-java-doc
1 Title: API JavaDoc for liblwjgl-java-doc
2 Author:
3 Abstract: This the API JavaDoc for liblwjgl-java-doc
4 Section: Programming
5
6 Format: HTML
7 Index: /usr/share/doc/liblwjgl-java-doc/api
8 Files: /usr/share/doc/liblwjgl-java-doc/api/*.html
0 libs/linux/liblwjgl.so usr/lib/jni
0 libs/lwjgl_test.jar usr/share/java
1 libs/lwjgl_util.jar usr/share/java
2 libs/lwjgl_util_applet.jar usr/share/java
3 libs/lwjgl.jar usr/share/java
0 Description: Removes references to macosx-related classes.
1 Author: Gabriele Giacone <1o5g4r8o@gmail.com>
2
3 --- a/build.xml
4 +++ b/build.xml
5 @@ -234,7 +234,7 @@
6 <class name="org.lwjgl.opengl.WindowsContextImplementation" />
7
8 </javah>
9
10
11
12 - <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
13
14 +<!-- <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes">
15
16 <class name="org.lwjgl.MacOSXSysImplementation" />
17
18 <class name="org.lwjgl.opengl.MacOSXMouseEventQueue" />
19
20 <class name="org.lwjgl.opengl.MacOSXCanvasPeerInfo" />
21
22 @@ -242,7 +242,7 @@
23 <class name="org.lwjgl.opengl.MacOSXPbufferPeerInfo" />
24
25 <class name="org.lwjgl.opengl.MacOSXDisplay" />
26
27 <class name="org.lwjgl.opengl.MacOSXContextImplementation" />
28
29 - </javah>
30
31 + </javah> -->
32
33
34
35 <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}" force="yes">
36
37 <class name="org.lwjgl.opengl.AWTSurfaceLock" />
38
39 @@ -298,13 +298,13 @@
40 </tokenfilter>
41
42 </filterchain>
43
44 </loadfile>
45
46 - <loadfile srcfile="${lwjgl.src.native}/macosx/org_lwjgl_MacOSXSysImplementation.h" property="lwjgl.native.macosx.version">
47
48 +<!-- <loadfile srcfile="${lwjgl.src.native}/macosx/org_lwjgl_MacOSXSysImplementation.h" property="lwjgl.native.macosx.version">
49
50 <filterchain>
51
52 <tokenfilter>
53
54 <containsstring contains="#define org_lwjgl_MacOSXSysImplementation_JNI_VERSION"/>
55
56 </tokenfilter>
57
58 </filterchain>
59
60 - </loadfile>
61
62 + </loadfile> -->
63
64 <echo>
65
66 lwjgl.java.windows.version = ${lwjgl.java.windows.version}
67
68 lwjgl.native.windows.version = ${lwjgl.native.windows.version}
69
70 --- a/platform_build/build-applet.xml
71
72 +++ b/platform_build/build-applet.xml
73
74 @@ -1,7 +1,7 @@
75 <project name="applet">
76
77
78
79 <!-- Create our packer task -->
80
81 - <taskdef name="pack200" classname="com.sun.tools.apache.ant.pack200.Pack200Task" classpath="platform_build/Pack200Task.jar"/>
82
83 +<!-- <taskdef name="pack200" classname="com.sun.tools.apache.ant.pack200.Pack200Task" classpath="platform_build/Pack200Task.jar"/> -->
84
85
86
87 <target name="applet" depends="all">
88
89 <antcall target="-applet">
90
91 --- a/src/java/org/lwjgl/MacOSXSysImplementation.java
92
93 +++ b/src/java/org/lwjgl/MacOSXSysImplementation.java
94
95 @@ -33,7 +33,7 @@ package org.lwjgl;
96
97
98 import java.awt.Toolkit;
99
100
101
102 -import com.apple.eio.FileManager;
103
104 +//import com.apple.eio.FileManager;
105
106
107
108 /**
109
110 *
111
112 @@ -55,7 +55,7 @@ final class MacOSXSysImplementation extends J2SESysImplementation {
113
114
115 public boolean openURL(String url) {
116
117 try {
118
119 - FileManager.openURL(url);
120
121 +// FileManager.openURL(url);
122
123 return true;
124
125 } catch (Exception e) {
126
127 LWJGLUtil.log("Exception occurred while trying to invoke browser: " + e);
128
129 --- a/src/java/org/lwjgl/opengl/MacOSXDisplay.java
130
131 +++ b/src/java/org/lwjgl/opengl/MacOSXDisplay.java
132
133 @@ -54,9 +54,9 @@ import org.lwjgl.BufferUtils;
134 import org.lwjgl.LWJGLException;
135
136 import org.lwjgl.LWJGLUtil;
137
138
139
140 -import com.apple.eawt.Application;
141
142 -import com.apple.eawt.ApplicationAdapter;
143
144 -import com.apple.eawt.ApplicationEvent;
145
146 +//import com.apple.eawt.Application;
147
148 +//import com.apple.eawt.ApplicationAdapter;
149
150 +//import com.apple.eawt.ApplicationEvent;
151
152
153
154 final class MacOSXDisplay implements DisplayImplementation {
155
156 private static final int PBUFFER_HANDLE_SIZE = 24;
157
158 @@ -77,11 +77,11 @@ final class MacOSXDisplay implements DisplayImplementation {
159 try {
160
161 AccessController.doPrivileged(new PrivilegedExceptionAction() {
162
163 public Object run() throws Exception {
164
165 - Application.getApplication().addApplicationListener(new ApplicationAdapter() {
166
167 +/* Application.getApplication().addApplicationListener(new ApplicationAdapter() {
168
169 public final void handleQuit(ApplicationEvent event) {
170
171 doHandleQuit();
172
173 }
174
175 - });
176
177 + }); */
178
179 return null;
180
181 }
182
183 });
184
0 Description: To build on all archs
1 Author: Gabriele Giacone <1o5g4r8o@gmail.com>
2
3 --- a/platform_build/linux_ant/build.xml
4 +++ b/platform_build/linux_ant/build.xml
5 @@ -1,17 +1,22 @@
6 <?xml version="1.0"?>
7
8 <project name="lwjgl native code, linux" basedir="../../bin/lwjgl" default="compile">
9 + <exec executable="/usr/bin/dpkg-architecture" outputproperty="arch">
10 + <arg value="-qDEB_BUILD_ARCH"/>
11 + </exec>
12 <property name="native" location="../../src/native"/>
13 <property name="libname32" value="liblwjgl.so"/>
14 <property name="libname64" value="liblwjgl64.so"/>
15 <property name="libs32" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXext -lXcursor -lXrandr -lpthread -L${java.home}/lib/i386 -ljawt" />
16 <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" />
17 + <property name="libs" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/${arch} -ljawt" />
18 <property name="cflags32" value="-O2 -Wall -c -fPIC -std=c99 -Wunused"/>
19
20 <target name="clean">
21 <delete>
22 <fileset dir="x32"/>
23 <fileset dir="x64"/>
24 + <fileset dir="deb"/>
25 <fileset dir="." includes="*.o"/>
26 <fileset dir="." includes="*.so"/>
27 </delete>
28 @@ -41,6 +46,7 @@
29
30 <property name="linker_flags32" value="${version_script_flags32} -shared -O2 -Wall -o ${libname32} ${libs32} ${xf86vm_lib}"/>
31 <property name="linker_flags64" value="${version_script_flags64} -shared -O2 -Wall -o ${libname64} ${libs64} ${xf86vm_lib}"/>
32 + <property name="linker_flagsdeb" value="${version_script_flags32} -shared -O2 -Wall -o ${libname32} ${libs} ${xf86vm_lib}"/>
33
34 <condition property="build.32bit.only">
35 <not>
36 @@ -58,9 +64,12 @@
37 <equals arg1="${hwplatform}" arg2="x86_64"/>
38 </and>
39 </condition>
40 +
41 + <condition property="build.debian">
42 + <os name="Linux"/>
43 + </condition>
44
45 - <antcall target="compile32"/>
46 - <antcall target="compile64"/>
47 + <antcall target="compiledeb"/>
48 </target>
49
50 <target name="compile32" unless="build.64bit.only">
51 @@ -114,4 +123,30 @@
52 <fileset file="${libname64}"/>
53 </apply>
54 </target>
55 +
56 + <target name="compiledeb">
57 + <mkdir dir="deb"/>
58 + <apply dir="deb" executable="gcc" skipemptyfilesets="true" failonerror="true">
59 + <arg line="${cflags32} ${cflags_pthread}"/>
60 + <arg value="-I${java.home}/include"/>
61 + <arg value="-I${java.home}/include/linux"/>
62 + <arg value="-I${java.home}/../include"/>
63 + <arg value="-I${java.home}/../include/linux"/>
64 + <arg value="-I${java.home}/../include/solaris"/>
65 + <arg value="-I${native}/common"/>
66 + <arg value="-I${native}/linux"/>
67 + <mapper type="glob" from="*.c" to="*.o"/>
68 + <fileset dir="${native}/linux" includes="*.c"/>
69 + <fileset dir="${native}/generated" includes="*.c"/>
70 + <fileset dir="${native}/common" includes="*.c"/>
71 + </apply>
72 + <apply dir="." parallel="true" executable="gcc" failonerror="true">
73 + <srcfile/>
74 + <arg line="${linker_flagsdeb}"/>
75 + <fileset dir="deb" includes="*.o"/>
76 + </apply>
77 + <apply dir="." parallel="true" executable="strip" failonerror="true">
78 + <fileset file="${libname32}"/>
79 + </apply>
80 + </target>
81 </project>
0 Description: To find system jinput libraries
1 Author: Gabriele Giacone <1o5g4r8o@gmail.com>
2
3 --- a/build.xml
4 +++ b/build.xml
5 @@ -340,7 +340,7 @@
6
7
8 <!-- Compiles the Java source code -->
9
10 <target name="compile" description="Compiles the java source code" depends="-initialize">
11
12 - <javac debug="yes" destdir="${lwjgl.bin}" source="1.4" target="1.4" classpath="${lwjgl.lib}/jinput.jar:${lwjgl.lib}/AppleJavaExtensions.jar" taskname="core">
13
14 + <javac debug="yes" destdir="${lwjgl.bin}" source="1.4" target="1.4" classpath="/usr/share/java/jinput.jar:/usr/share/java/jutils.jar:${lwjgl.lib}/AppleJavaExtensions.jar" taskname="core">
15
16 <src path="${lwjgl.src}/java/"/>
17
18 <src path="${lwjgl.src}/generated/"/>
19
20 <include name="org/lwjgl/*.java"/>
21
22 @@ -481,7 +481,7 @@
23 <os name="Mac OS X" />
24
25 </condition>
26
27 <property name="native_path_expanded" location="${native_path}"/>
28
29 - <java classname="${test.mainclass}" classpath="res:${lwjgl.lib}/lwjgl.jar:${lwjgl.lib}/lwjgl_util.jar:${lwjgl.lib}/lwjgl_test.jar:${lwjgl.lib}/jinput.jar" fork="true">
30
31 + <java classname="${test.mainclass}" classpath="res:${lwjgl.lib}/lwjgl.jar:${lwjgl.lib}/lwjgl_util.jar:${lwjgl.lib}/lwjgl_test.jar:/usr/share/java/jinput.jar:/usr/share/java/jutils.jar" fork="true">
32
33 <sysproperty key="org.lwjgl.util.Debug" value="true"/>
34
35 <sysproperty key="java.library.path" value="${native_path_expanded}"/>
36
37 <arg line="${args}"/>
38
0 00nomacosx
1 01allarchs
2 02systemjinput
0 #!/usr/bin/make -f
1
2 NAME := $(shell dpkg-parsechangelog| sed -n '/^Source/{s/Source: \(.*\)/\1/p}')
3 VERSION := $(shell dpkg-parsechangelog| sed -n '/^Version/{s/Version: \(.*\)-[0-9]*$$/\1/;s/+dfsg//p}')
4 TMPDIR := $(NAME)-$(VERSION)
5 TAR := ../$(NAME)_$(VERSION).orig.tar.gz
6 TARDFSG := ../$(NAME)_$(VERSION)+dfsg.orig.tar.gz
7
8 export JAVA_HOME=/usr/lib/jvm/default-java
9
10 %:
11 dh $@
12
13 override_dh_auto_build:
14 ant jars
15 ant compile_native
16 ant javadoc
17
18 override_dh_auto_install:
19 jh_installjavadoc -plib$(NAME)-java-doc doc/javadoc
20
21 override_dh_auto_clean:
22 find src/native/ -name '*org_lwjgl_*.h' -delete
23 dh_quilt_patch && ant clean && dh_quilt_unpatch
24 rm -f libs/*.jar libs/linux/*
25
26 get-orig-source:
27 rm -f $(TAR)
28 uscan --verbose --download-version $(VERSION) \
29 --force-download --repack --no-symlink --rename
30 mkdir $(TMPDIR) && tar -C $(TMPDIR) -zxf $(TAR) && rm $(TAR)
31 echo "The following files will not be included in Debian tarball:"
32 cd $(TMPDIR) && find . \( -name '*.class' -o -name '*.jar' \
33 -o -path './src/generated/*' -o -path './src/native/generated/*' \) \
34 -print -delete
35 ZIP=--best tar --exclude-vcs --exclude src/generated \
36 --exclude src/native/generated -zcf $(TARDFSG) $(TMPDIR)
37 rm -rf $(TMPDIR)
38
0 3.0 (quilt)
0 version=3
1 opts="dversionmangle=s/\+dfsg//" \
2 http://sf.net/java-game-lib/lwjgl-source-(.*).zip
+0
-85
platform_build/build-webstart.xml.bak less more
0 <project name="webstart">
1 <target name="webstart_demo" depends="jars">
2 <antcall target="-webstart_demo">
3 <param name="keystore" value="applet/lwjglkeystore"/>
4 <param name="alias" value="lwjgl"/>
5 <param name="password" value="123456"/>
6 </antcall>
7 </target>
8
9 <target name="webstart_demo-release">
10 <input message="Please type the password for the keystore" addproperty="sign.pwd"/>
11
12 <antcall target="-webstart_demo">
13 <param name="keystore" value="signing/matzon_java_code_signing.keystore"/>
14 <param name="alias" value="oddlabs_java_code_signing"/>
15 <param name="password" value="${sign.pwd}"/>
16 </antcall>
17 </target>
18
19 <!-- -->
20 <target name="-webstart_demo" description="Using released files, creates the necessary files used for jnlp demos">
21
22 <!-- delete existing temp -->
23 <delete dir="${lwjgl.temp}"/>
24
25 <!-- unzip common files -->
26 <unzip src="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip" dest="${lwjgl.temp}/jnlp/temp" overwrite="true"/>
27
28 <!-- move files to unified structure -->
29 <move todir="${lwjgl.temp}/jnlp/temp">
30 <fileset dir="${lwjgl.temp}/jnlp/temp/lwjgl-${lwjgl.version}/">
31 <include name="**"/>
32 </fileset>
33 </move>
34
35 <!-- move relevant files to root -->
36 <move todir="${lwjgl.temp}/jnlp/" flatten="true">
37 <fileset dir="${lwjgl.temp}/jnlp/temp">
38 <include name="**/**.jar"/>
39 </fileset>
40 </move>
41
42 <!-- create native jars -->
43 <jar destfile="${lwjgl.temp}/jnlp/native_windows.jar" basedir="${lwjgl.temp}/jnlp/temp/native/windows"/>
44 <jar destfile="${lwjgl.temp}/jnlp/native_linux.jar" basedir="${lwjgl.temp}/jnlp/temp/native/linux"/>
45 <jar destfile="${lwjgl.temp}/jnlp/native_macosx.jar" basedir="${lwjgl.temp}/jnlp/temp/native/macosx"/>
46 <jar destfile="${lwjgl.temp}/jnlp/native_solaris.jar" basedir="${lwjgl.temp}/jnlp/temp/native/solaris"/>
47
48 <!-- add media and trusted info -->
49 <jar destfile="${lwjgl.temp}/jnlp/lwjgl_test.jar" update="true">
50 <manifest>
51 <attribute name="Sealed" value="true"/>
52 <attribute name="Trusted-Only" value="true"/>
53 </manifest>
54 </jar>
55
56 <jar destfile="${lwjgl.temp}/jnlp/lwjgl_util.jar" update="true">
57 <fileset dir="${lwjgl.res}"/>
58 <manifest>
59 <attribute name="Sealed" value="true"/>
60 <attribute name="Trusted-Library" value="true"/>
61 </manifest>
62 </jar>
63
64 <jar destfile="${lwjgl.temp}/jnlp/jinput.jar" update="true">
65 <manifest>
66 <attribute name="Sealed" value="true"/>
67 <attribute name="Trusted-Library" value="true"/>
68 </manifest>
69 </jar>
70
71 <!-- sign 'em -->
72 <signjar jar="${lwjgl.temp}/jnlp/lwjgl.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
73 <signjar jar="${lwjgl.temp}/jnlp/lwjgl_util.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
74 <signjar jar="${lwjgl.temp}/jnlp/jinput.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
75
76 <signjar jar="${lwjgl.temp}/jnlp/native_solaris.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
77 <signjar jar="${lwjgl.temp}/jnlp/native_linux.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
78 <signjar jar="${lwjgl.temp}/jnlp/native_macosx.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
79 <signjar jar="${lwjgl.temp}/jnlp/native_windows.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
80
81 <signjar jar="${lwjgl.temp}/jnlp/lwjgl_test.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
82
83 </target>
84 </project>