diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..8d63caa --- /dev/null +++ b/debian/README.source @@ -0,0 +1,17 @@ +Information about lwjgl +----------------------- + + REPACKAGING + + To comply with DFSG, the following files have been removed from + upstream tarball: + + # binary + - platform_build/Pack200Task.jar + - platform_build/JLzma.jar + + Also files generated during build process have been removed: + + - src/generated/* + - src/native/generated/* + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3270060 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +lwjgl (2.4.2+dfsg-1) unstable; urgency=low + + * Initial release. (Closes: #575321) + + -- Gabriele Giacone <1o5g4r8o@gmail.com> Sat, 29 May 2010 02:10:20 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..6bbc213 --- /dev/null +++ b/debian/control @@ -0,0 +1,54 @@ +Source: lwjgl +Section: java +Priority: optional +Maintainer: Gabriele Giacone <1o5g4r8o@gmail.com> +Build-Depends: debhelper (>= 7.0.50~), javahelper, ant, ant-optional, + default-jdk, quilt (>= 0.46-7~), libjinput-java, libxrandr-dev, libxxf86vm-dev, + libxcursor-dev, libxt-dev +Standards-Version: 3.8.4 +Vcs-Git: git://git.debian.org/pkg-java/lwjgl.git +Vcs-Browser: http://git.debian.org/?p=pkg-java/lwjgl.git +Homepage: http://lwjgl.org/ + +Package: liblwjgl-java +Architecture: all +Depends: ${misc:Depends}, default-jre, libjinput-java, liblwjgl-java-jni + (>= ${source:Version}) +Description: Lightweight Java Game Library + The Lightweight Java Game Library (LWJGL) is a solution aimed directly at + professional and amateur Java programmers alike to enable commercial quality + games to be written in Java. LWJGL provides developers access to high + performance crossplatform libraries such as OpenGL (Open Graphics Library) + and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D + sound. Additionally LWJGL provides access to controllers such as Gamepads, + Steering wheel and Joysticks. All in a simple and straight forward API. + +Package: liblwjgl-java-jni +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Lightweight Java Game Library (jni) + The Lightweight Java Game Library (LWJGL) is a solution aimed directly at + professional and amateur Java programmers alike to enable commercial quality + games to be written in Java. LWJGL provides developers access to high + performance crossplatform libraries such as OpenGL (Open Graphics Library) + and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D + sound. Additionally LWJGL provides access to controllers such as Gamepads, + Steering wheel and Joysticks. All in a simple and straight forward API. + . + This package contains the java jni library. + +Package: liblwjgl-java-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Suggests: liblwjgl-java +Description: Lightweight Java Game Library (javadoc) + The Lightweight Java Game Library (LWJGL) is a solution aimed directly at + professional and amateur Java programmers alike to enable commercial quality + games to be written in Java. LWJGL provides developers access to high + performance crossplatform libraries such as OpenGL (Open Graphics Library) + and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D + sound. Additionally LWJGL provides access to controllers such as Gamepads, + Steering wheel and Joysticks. All in a simple and straight forward API. + . + This package contains the API documentation for lwjgl. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..293e7c3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format-Specification: http://dep.debian.net/deps/dep5/ +Name: lwjgl - Lightweight Java Game Library +Maintainer: LWJGL developers +Source: http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/ + +Copyright: 2002-2010, Lightweight Java Game Library Project +License: BSD + On Debian GNU/Linux system you can find the complete text of the + BSD license in '/usr/share/common-licenses/BSD' + +Files: ./src/native/common/extgl.c, ./src/native/windows/extgl_wgl.c +Copyright: 2001-2002, Lev Povalahev +License: BSD + On Debian GNU/Linux system you can find the complete text of the + BSD license in '/usr/share/common-licenses/BSD' + +Files: debian/* +Copyright: 2010, Gabriele Giacone <1o5g4r8o@gmail.com> +License: BSD + On Debian GNU/Linux system you can find the complete text of the + BSD license in '/usr/share/common-licenses/BSD' diff --git a/debian/liblwjgl-java-doc.doc-base.javadoc b/debian/liblwjgl-java-doc.doc-base.javadoc new file mode 100644 index 0000000..b23c144 --- /dev/null +++ b/debian/liblwjgl-java-doc.doc-base.javadoc @@ -0,0 +1,9 @@ +Document: liblwjgl-java-doc +Title: API JavaDoc for liblwjgl-java-doc +Author: +Abstract: This the API JavaDoc for liblwjgl-java-doc +Section: Programming + +Format: HTML +Index: /usr/share/doc/liblwjgl-java-doc/api +Files: /usr/share/doc/liblwjgl-java-doc/api/*.html diff --git a/debian/liblwjgl-java-jni.install b/debian/liblwjgl-java-jni.install new file mode 100644 index 0000000..da22dc9 --- /dev/null +++ b/debian/liblwjgl-java-jni.install @@ -0,0 +1 @@ +libs/linux/liblwjgl.so usr/lib/jni diff --git a/debian/liblwjgl-java.install b/debian/liblwjgl-java.install new file mode 100644 index 0000000..42b95e8 --- /dev/null +++ b/debian/liblwjgl-java.install @@ -0,0 +1,4 @@ +libs/lwjgl_test.jar usr/share/java +libs/lwjgl_util.jar usr/share/java +libs/lwjgl_util_applet.jar usr/share/java +libs/lwjgl.jar usr/share/java diff --git a/debian/patches/00nomacosx b/debian/patches/00nomacosx new file mode 100644 index 0000000..ceaf468 --- /dev/null +++ b/debian/patches/00nomacosx @@ -0,0 +1,185 @@ +Description: Removes references to macosx-related classes. +Author: Gabriele Giacone <1o5g4r8o@gmail.com> + +--- a/build.xml ++++ b/build.xml +@@ -234,7 +234,7 @@ + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +- \ No newline at end of file + ++ \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +@@ -298,13 +298,13 @@ + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +- \ No newline at end of file + ++ \ No newline at end of file + + \ No newline at end of file + + lwjgl.java.windows.version = ${lwjgl.java.windows.version} \ No newline at end of file + + lwjgl.native.windows.version = ${lwjgl.native.windows.version} \ No newline at end of file + +--- a/platform_build/build-applet.xml \ No newline at end of file + ++++ b/platform_build/build-applet.xml \ No newline at end of file + +@@ -1,7 +1,7 @@ + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +- \ No newline at end of file + ++ \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +--- a/src/java/org/lwjgl/MacOSXSysImplementation.java \ No newline at end of file + ++++ b/src/java/org/lwjgl/MacOSXSysImplementation.java \ No newline at end of file + +@@ -33,7 +33,7 @@ package org.lwjgl; + \ No newline at end of file + + import java.awt.Toolkit; \ No newline at end of file + + \ No newline at end of file + +-import com.apple.eio.FileManager; \ No newline at end of file + ++//import com.apple.eio.FileManager; \ No newline at end of file + + \ No newline at end of file + + /** \ No newline at end of file + + * \ No newline at end of file + +@@ -55,7 +55,7 @@ final class MacOSXSysImplementation extends J2SESysImplementation { + \ No newline at end of file + + public boolean openURL(String url) { \ No newline at end of file + + try { \ No newline at end of file + +- FileManager.openURL(url); \ No newline at end of file + ++// FileManager.openURL(url); \ No newline at end of file + + return true; \ No newline at end of file + + } catch (Exception e) { \ No newline at end of file + + LWJGLUtil.log("Exception occurred while trying to invoke browser: " + e); \ No newline at end of file + +--- a/src/java/org/lwjgl/opengl/MacOSXDisplay.java \ No newline at end of file + ++++ b/src/java/org/lwjgl/opengl/MacOSXDisplay.java \ No newline at end of file + +@@ -54,9 +54,9 @@ import org.lwjgl.BufferUtils; + import org.lwjgl.LWJGLException; \ No newline at end of file + + import org.lwjgl.LWJGLUtil; \ No newline at end of file + + \ No newline at end of file + +-import com.apple.eawt.Application; \ No newline at end of file + +-import com.apple.eawt.ApplicationAdapter; \ No newline at end of file + +-import com.apple.eawt.ApplicationEvent; \ No newline at end of file + ++//import com.apple.eawt.Application; \ No newline at end of file + ++//import com.apple.eawt.ApplicationAdapter; \ No newline at end of file + ++//import com.apple.eawt.ApplicationEvent; \ No newline at end of file + + \ No newline at end of file + + final class MacOSXDisplay implements DisplayImplementation { \ No newline at end of file + + private static final int PBUFFER_HANDLE_SIZE = 24; \ No newline at end of file + +@@ -77,11 +77,11 @@ final class MacOSXDisplay implements DisplayImplementation { + try { \ No newline at end of file + + AccessController.doPrivileged(new PrivilegedExceptionAction() { \ No newline at end of file + + public Object run() throws Exception { \ No newline at end of file + +- Application.getApplication().addApplicationListener(new ApplicationAdapter() { \ No newline at end of file + ++/* Application.getApplication().addApplicationListener(new ApplicationAdapter() { \ No newline at end of file + + public final void handleQuit(ApplicationEvent event) { \ No newline at end of file + + doHandleQuit(); \ No newline at end of file + + } \ No newline at end of file + +- }); \ No newline at end of file + ++ }); */ \ No newline at end of file + + return null; \ No newline at end of file + + } \ No newline at end of file + + }); \ No newline at end of file + diff --git a/debian/patches/01allarchs b/debian/patches/01allarchs new file mode 100644 index 0000000..142c46b --- /dev/null +++ b/debian/patches/01allarchs @@ -0,0 +1,82 @@ +Description: To build on all archs +Author: Gabriele Giacone <1o5g4r8o@gmail.com> + +--- a/platform_build/linux_ant/build.xml ++++ b/platform_build/linux_ant/build.xml +@@ -1,17 +1,22 @@ + + + ++ ++ ++ + + + + + ++ + + + + + + ++ + + + +@@ -41,6 +46,7 @@ + + + ++ + + + +@@ -58,9 +64,12 @@ + + + ++ ++ ++ ++ + +- +- ++ + + + +@@ -114,4 +123,30 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + diff --git a/debian/patches/02systemjinput b/debian/patches/02systemjinput new file mode 100644 index 0000000..60e4672 --- /dev/null +++ b/debian/patches/02systemjinput @@ -0,0 +1,39 @@ +Description: To find system jinput libraries +Author: Gabriele Giacone <1o5g4r8o@gmail.com> + +--- a/build.xml ++++ b/build.xml +@@ -340,7 +340,7 @@ + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +- \ No newline at end of file + ++ \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +@@ -481,7 +481,7 @@ + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + +- \ No newline at end of file + ++ \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + + \ No newline at end of file + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7260f1a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +00nomacosx +01allarchs +02systemjinput diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ae139eb --- /dev/null +++ b/debian/rules @@ -0,0 +1,39 @@ +#!/usr/bin/make -f + +NAME := $(shell dpkg-parsechangelog| sed -n '/^Source/{s/Source: \(.*\)/\1/p}') +VERSION := $(shell dpkg-parsechangelog| sed -n '/^Version/{s/Version: \(.*\)-[0-9]*$$/\1/;s/+dfsg//p}') +TMPDIR := $(NAME)-$(VERSION) +TAR := ../$(NAME)_$(VERSION).orig.tar.gz +TARDFSG := ../$(NAME)_$(VERSION)+dfsg.orig.tar.gz + +export JAVA_HOME=/usr/lib/jvm/default-java + +%: + dh $@ + +override_dh_auto_build: + ant jars + ant compile_native + ant javadoc + +override_dh_auto_install: + jh_installjavadoc -plib$(NAME)-java-doc doc/javadoc + +override_dh_auto_clean: + find src/native/ -name '*org_lwjgl_*.h' -delete + dh_quilt_patch && ant clean && dh_quilt_unpatch + rm -f libs/*.jar libs/linux/* + +get-orig-source: + rm -f $(TAR) + uscan --verbose --download-version $(VERSION) \ + --force-download --repack --no-symlink --rename + mkdir $(TMPDIR) && tar -C $(TMPDIR) -zxf $(TAR) && rm $(TAR) + echo "The following files will not be included in Debian tarball:" + cd $(TMPDIR) && find . \( -name '*.class' -o -name '*.jar' \ + -o -path './src/generated/*' -o -path './src/native/generated/*' \) \ + -print -delete + ZIP=--best tar --exclude-vcs --exclude src/generated \ + --exclude src/native/generated -zcf $(TARDFSG) $(TMPDIR) + rm -rf $(TMPDIR) + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9f58a39 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="dversionmangle=s/\+dfsg//" \ +http://sf.net/java-game-lib/lwjgl-source-(.*).zip diff --git a/platform_build/build-webstart.xml.bak b/platform_build/build-webstart.xml.bak deleted file mode 100644 index 337b22a..0000000 --- a/platform_build/build-webstart.xml.bak +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file