debian/0000755000000000000000000000000012232770626007175 5ustar debian/examples/0000755000000000000000000000000012224704466011013 5ustar debian/examples/Makefile0000644000000000000000000000154512224702637012456 0ustar JAVA_SRC_FILES = MagickWindow.java Test.java Loop.java CLEAN_LIST = copy.jpg blank.jpg copy_pics.jpg rotated.jpg \ sheared.jpg quantized.png scaled.jpg cropped.jpg \ chopped.jpg sharpened.jpg despeckled.jpg \ convolved.jpg blob.jpg montage.jpg average.jpg \ blob.gif transparent.png border.jpg raised.jpg \ clone.jpg # For Solaris and Linux, LD_LIBRARY_PATH sets the shared library path # For Mac OS X, DYLD_LIBRARY_PATH sets the shared library path JAVA=/usr/lib/jvm/java-gcj/bin/java JAVAC=/usr/lib/jvm/java-gcj/bin/javac build: $(JAVAC) -cp ..:/usr/share/java/jmagick6.jar *.java test: build LD_LIBRARY_PATH=/usr/lib/jni/ DYLD_LIBRARY_PATH=/usr/lib/jni $(JAVA) -cp ..:/usr/share/java/jmagick6.jar test.Test test2: build LD_LIBRARY_PATH=/usr/lib/jni/ DYLD_LIBRARY_PATH=/usr/lib/jni $(JAVA) -cp ..:/usr/share/java/jmagick6.jar test.Loop pics.jpg debian/jmagick6-docs.doc-base0000644000000000000000000000040412224702640013203 0ustar Document: jmagick6-docs Title: API Javadoc for JMagick Abstract: This is the API Javadoc provided for the libjmagick6-java library. Section: Programming Format: HTML Index: /usr/share/doc/jmagick6-docs/api/index.html Files: /usr/share/doc/jmagick6-docs/api/* debian/copyright0000644000000000000000000000336712224702637011137 0ustar This package was debianized by Adam Heath on Wed, 17 Aug 2005 14:27:52 -0500 It was downloaded from http://www.yeo.id.au/jmagick/ Upstream Authors: Original author: Eric Yeo Contributors: Abdulbaset Gaddah Jin Zhao Ibrahim Tannir Susan Dorr Adam Heath Max Kollegov Tim Griffin Elizabeth Barham Susan Dorr Mike Edmonds Copyright: © 1998-2007 Eric Yeo License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. The Debian packaging is © 2005, 2006 Adam Heath and © 2007 Kumar Appaiah and is licensed under the GPL. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/orig-tar.sh0000755000000000000000000000143412224702640011252 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' SVNROOT=svn://svn.code.sf.net/p/jmagick/code VERSION=$2 REVISION=$(svn info $SVNROOT/branches/$VERSION | sed -rne 's,^Revision: (.*),\1,p') TIMESTAMP=$(svn info --xml $SVNROOT/branches/$VERSION | sed -rne 's,^([0-9]{4})-([0-9]{2})-([0-9]{2}).*,\1\2\3,p') TAR=../jmagick_$VERSION~$TIMESTAMP-svn$REVISION.orig.tar.xz DIR=jmagick-$VERSION~svn$REVISION # fetch and clean up the source code svn export $SVNROOT/branches/$VERSION/ $DIR chmod -x $DIR/test/magicktest/exif_orientation/*.jpg XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR rm -rf $DIR $3 # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $3 $origDir echo "moved $3 to $origDir" fi exit 0 debian/libjmagick6-java.docs0000644000000000000000000000002512224702640013135 0ustar debian/README.Debian debian/source/0000755000000000000000000000000012224704466010475 5ustar debian/source/format0000644000000000000000000000001412224702640011673 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001234212232770625011050 0ustar jmagick (6.6.9~20130201-svn99-1ubuntu1) trusty; urgency=low * 02_jmagick_implicit_decl.patch: Include the missing prototype for getByteArrayFieldValue in jmagick.h for use by magick_MagickImage.c -- Adam Conrad Sat, 26 Oct 2013 10:43:18 -0600 jmagick (6.6.9~20130201-svn99-1) unstable; urgency=low * Team upload. * New upstream release (Closes: #714509) - Refreshed the patch and added a description - Fetch the upstream sources from SVN * debian/control: - Use canonical URLs for the Vcs-* fields - Removed Michael Koch from the uploaders (Closes: #654036) - Updated Standards-Version to 3.9.4 (no changes) - Updated the URL of the homepage - Build depend on debhelper >= 9 * debian/copyright: Refer to the GPL-2 in /usr/share/common-licenses * Use XZ compression for the upstream tarball * debian/rules: - Install the upstream changelog - Generate Java 6 compatible bytecode - Include the debug information in the compiled classes - Enabled hardening for libJMagick.so - Install the Maven artifacts in /usr/share/maven-repo - Added the get-orig-pom target to download the pom from Maven central * Renamed debian/README.Debian-source to README.source * Moved the examples to the documentation package * Registered the documentation with doc-base * debian/watch: Watch the branches in the SVN repository -- Emmanuel Bourg Mon, 07 Oct 2013 08:46:56 +0200 jmagick (6.2.6-0-8) unstable; urgency=low [ Niels Thykier ] * Team upload. * Reduced B-D on default-jdk-builddep to default-jdk. * Removed unneeded dependency on JREs for a java library. * Bumped Standards-Version to 3.9.1 - no changes required. [ Kumar Appaiah ] * Remove myself from Uploaders. [ Vincent Fourmond ] * Adapt build-depends to newer imagemagick (closes: #625595) * Packages now also conforms to standards 3.9.2 * Remove articles at the beginning of the short description -- Vincent Fourmond Mon, 06 Jun 2011 11:12:36 +0200 jmagick (6.2.6-0-7) unstable; urgency=low * Change maintainers into Maintainers. -- Torsten Werner Sun, 11 Apr 2010 21:46:53 +0200 jmagick (6.2.6-0-6) unstable; urgency=low * Bump Standards-Version to 3.8.4 * Depend on default-jre-headless | java2-runtime-headless (Closes: #573381) -- Varun Hiremath Sat, 10 Apr 2010 17:29:09 -0400 jmagick (6.2.6-0-5) unstable; urgency=low [ Michael Koch ] * Fixed watch file to point to correct download location (Closes: #551207). * Adjusted debian/orig-tar.sh for new upstream layout. * Build-Depends on debhelper >= 7. * Added myself to Uploaders. * Updated Standards-Version to 3.8.3. [ Varun Hiremath ] * Switch to source format 3.0 -- Varun Hiremath Sun, 24 Jan 2010 17:45:10 -0500 jmagick (6.2.6-0-4) unstable; urgency=medium * debian/control: + Use default-java-jdk in place of java-gcj-compat-dev. * debian/rules: + Switch JAVA_HOME location to /usr/lib/jvm/default-java. -- Kumar Appaiah Sun, 27 Apr 2008 17:53:03 +0530 jmagick (6.2.6-0-2) unstable; urgency=medium * debian/control: + Add Vcs-Browser and Vcs-Svn fields. + Use debian.org e-mail address for maintainers. + Use quilt for patches. + Standards Version is now 3.7.3 (no changes needed). * debian/rules: + Explicitly call gcc in order for the build system to find the C compiler and build libJMagick.so. (Closes: #477015) -- Kumar Appaiah Mon, 21 Apr 2008 06:46:12 +0530 jmagick (6.2.6-0-1) unstable; urgency=low * New upstream release. * debian/control: + Now binNMU safe (Closes: #437486). + The Debian Java maintainers adopt the package, taken over from Adam Heath (Closes: #429794). + Add Varun Hiremath and Kumar Appaiah as uploaders. + Add Homepage field. + Updated to use GCJ to build (Closes: #329104, #349564). + Move jmagick6-docs to doc section. * debian/rules: + Fully refactor to make it use cdbs. * debian/patches/01_fix_load_jnilib.patch + Ensure that the JNI interface is loaded. * debian/watch: Added. * debian/orig-tar.sh, debian/orig-tar.exclude: + Repackage scripts to remove unclean upstream tarball. * debian/README.Debian-source: + Explain why and how we are repackaging. * debian/copyright: Total rewrite. * debian/libjmagick6-java.examples: + Provide two test cases as examples. * debian/examples/Makefile: + To build and run the examples. * debian/README.Debian: + Directions on how to run the examples. -- Kumar Appaiah Tue, 16 Oct 2007 00:24:14 +0530 jmagick (6.2.4-1-1) unstable; urgency=low * New upstream version. * Add kaffe-dev to Build-Depends. Closes: #329104. * No longer use find to clean the dirs. Closes: #325411 -- Adam Heath Sun, 15 Jan 2006 23:30:17 -0600 jmagick (6.0.4-0-2) unstable; urgency=low * Fix problem when JMagick is not loaded thru the system classloader. -- Adam Heath Wed, 17 Aug 2005 14:53:00 -0500 jmagick (6.0.4-0-1) unstable; urgency=low * Initial release. -- Adam Heath Wed, 17 Aug 2005 14:27:52 -0500 debian/compat0000644000000000000000000000000212224702637010371 0ustar 9 debian/rules0000755000000000000000000000314512224702640010250 0ustar #!/usr/bin/make -f JAVA_HOME := /usr/lib/jvm/default-java export DEB_BUILD_HARDENING=1 include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/class/makefile.mk CC=gcc DEB_CONFIGURE_SCRIPT_ENV += PATH=$(JAVA_HOME)/bin:$$PATH DEB_CONFIGURE_EXTRA_FLAGS = --libdir=/usr/lib/jni --with-java-home=$(JAVA_HOME) DEB_MAKE_CLEAN_TARGET = clean DEB_MAKE_BUILD_TARGET = all DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR) DEB_MAKE_CHECK_TARGET = DEB_DH_INSTALL_SOURCEDIR = debian/tmp DEB_COMPRESS_EXCLUDE = .java DEB_INSTALL_CHANGELOGS_ALL := Changelog.txt VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^~-]+).*,\1,p') export JFLAGS = -source 1.6 -target 1.6 -g install/libjmagick6-java:: mh_installpom -plibjmagick6-java -e$(VERSION) debian/pom.xml mh_installjar -plibjmagick6-java -e$(VERSION) --java-lib debian/pom.xml lib/jmagick.jar install/libjmagick6-jni:: chrpath -d ./lib/libJMagick.so install -m 644 -D ./lib/libJMagick.so ./debian/libjmagick6-jni/usr/lib/jni/libJMagick.so install/jmagick6-docs:: mkdir -p ./debian/jmagick6-docs/usr/share/doc/jmagick6-docs/api $(MAKE) javadoc DESTDIR=./debian/jmagick6-docs JAVADOC_DIR=./debian/jmagick6-docs/usr/share/doc/jmagick6-docs/api clean:: rm -rf Make.def libtool config.cache config.log config.status obj/magick/.libs rm -rf autom4te.cache rm -rf lib/*.jar mh_clean .PHONY: get-orig-source get-orig-source: uscan --upstream-version 0 --force-download --rename get-orig-pom: wget http://central.maven.org/maven2/jmagick/jmagick/$(VERSION)/jmagick-$(VERSION).pom -O debian/pom.xml debian/control0000644000000000000000000000533412232770724010604 0ustar Source: jmagick Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Java Maintainers Uploaders: Varun Hiremath Section: graphics Priority: optional Standards-Version: 3.9.4 Build-Depends: autotools-dev, cdbs, chrpath, debhelper (>= 9), default-jdk, hardening-wrapper, libmagickcore-dev, maven-repo-helper Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/jmagick Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/jmagick Homepage: http://sourceforge.net/projects/jmagick/ Package: libjmagick6-java Architecture: all Section: java Depends: ${misc:Depends}, libjmagick6-jni (>= ${source:Version}) Provides: jmagick Description: java interface to ImageMagick - java classes JMagick is an open source Java interface of ImageMagick. It is implemented in the form of Java Native Interface (JNI) into the ImageMagick API. . JMagick does not attempt to make the ImageMagick API object-oriented. It is merely a thin interface layer into the ImageMagick API. . JMagick currently only implements a subset of ImageMagick APIs. Should you require unimplemented features in JMagick, please join the mailing list and make a request. Package: jmagick6-docs Section: doc Architecture: all Provides: jmagick-docs Depends: ${misc:Depends} Description: java interface to ImageMagick - api documentation JMagick is an open source Java interface of ImageMagick. It is implemented in the form of Java Native Interface (JNI) into the ImageMagick API. . JMagick does not attempt to make the ImageMagick API object-oriented. It is merely a thin interface layer into the ImageMagick API. . JMagick currently only implements a subset of ImageMagick APIs. Should you require unimplemented features in JMagick, please join the mailing list and make a request. . This package contains javadoc generated documentation. Package: libjmagick6-jni Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: java interface to ImageMagick - native library JMagick is an open source Java interface of ImageMagick. It is implemented in the form of Java Native Interface (JNI) into the ImageMagick API. . JMagick does not attempt to make the ImageMagick API object-oriented. It is merely a thin interface layer into the ImageMagick API. . JMagick currently only implements a subset of ImageMagick APIs. Should you require unimplemented features in JMagick, please join the mailing list and make a request. . This package contains the native interface to ImageMagick. It is loaded at runtime into the Java Virtual Machine (JVM). debian/orig-tar.exclude0000644000000000000000000000010612224702637012267 0ustar libtool autom4te.cache Make.def config.cache config.log config.status debian/pom.xml0000644000000000000000000000565512224702640010515 0ustar 4.0.0 jmagick jmagick jar 6.6.9 jMagick Java JNI wrapper around ImageMagick. 2008 http://www.jmagick.org/index.html GNU LESSER GENERAL PUBLIC LICENSE https://www.gnu.org/copyleft/lesser.html repo https://jmagick.svn.sourceforge.net/svnroot/jmagick http://jmagick.svn.sourceforge.net/ nordfalk ajkerr miyamo-rakuten UTF-8 ${basedir}/src org.apache.maven.plugins maven-compiler-plugin 3.0 1.6 1.6 org.apache.maven.plugins maven-source-plugin 2.2.1 **/*.java attach-sources jar org.apache.maven.plugins maven-javadoc-plugin 2.9 true attach-javadocs jar org.apache.maven.plugins maven-gpg-plugin 1.4 sign-artifacts verify sign debian/README.source0000644000000000000000000000124312224702640011344 0ustar JMagick for Debian ================== The upstream supplied source package contains the remains of their builds. Therefore, to get a clean deb, I repackage the upstream tarball. Use the rules/get-orig-source target to create the orig.tar.xz. For more details on repackaging of upstream sources please see the debian/orig-tar.sh file. -- Kumar Appaiah , Sun, 14 Oct 2007 08:34:38 +0530 Upstream hasn't published new releases for years but maintains branches in SVN compatible with more recent versions of ImageMagick. The code is thus fetched from SVN by debian/orig-tar.sh. -- Emmanuel Bourg Mon, 07 Oct 2013 08:46:56 +0200 debian/watch0000644000000000000000000000053412224702637010226 0ustar version=3 #opts=dversionmangle=s/~\d+-svn\d+// \ opts="dversionmangle=s/\~20130201-svn99/!/" \ #http://downloads.jmagick.org/ ([\d\.]*)/ debian debian/orig-tar.sh #http://downloads.jmagick.org/([\d\.]*)/ jmagick-([\d\.]*)-src\.tar\.gz debian debian/orig-tar.sh http://svn.code.sf.net/p/jmagick/code/branches/(\d[\d\.]*).* debian debian/orig-tar.sh debian/README.Debian0000644000000000000000000000057612224702637011244 0ustar JMagick for Debian ================== The upstream provided test cases have been made available as examples in the `examples' directory. To run them, just copy all files to a directory called `test', edit the Makefile if needed, and run make test and make test2. Beware that test2 runs a while(true) loop. -- Kumar Appaiah , Sun, 14 Oct 2007 11:54:08 +0530 debian/patches/0000755000000000000000000000000012232771357010626 5ustar debian/patches/01_fix_load_jnilib.patch0000644000000000000000000000243512224702637015263 0ustar Description: Ensure that the JNI interface is loaded Author: Kumar Appaiah Forwarded: not-needed --- a/src/magick/Magick.java +++ b/src/magick/Magick.java @@ -15,28 +15,7 @@ public class Magick { static { - String clprop = System.getProperty("jmagick.systemclassloader"); - if (clprop == null || clprop.equalsIgnoreCase("yes")) { - try { - ClassLoader.getSystemClassLoader() - .loadClass("magick.MagickLoader").newInstance(); - } - catch(ClassNotFoundException e) { - throw new RuntimeException("Can't load MagickLoader " + - "(class not found)"); - } - catch(IllegalAccessException e) { - throw new RuntimeException("Access to SystemClassLoader "+ - "denied (IllegalAccessException)"); - } - catch(InstantiationException e) { - throw new RuntimeException("Can't instantiate MagicLoader " + - "(InstantiationException)"); - } - } - else { - System.loadLibrary("JMagick"); - } + System.loadLibrary("JMagick"); init(); } debian/patches/02_jmagick_implicit_decl.patch0000644000000000000000000000265512232771357016446 0ustar Description: Include the missing prototype for getByteArrayFieldValue Author: Adam Conrad Index: jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h =================================================================== --- jmagick-6.6.9~20130201-svn99.orig/src/magick/jmagick.h 2013-10-26 10:45:26.000000000 -0600 +++ jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h 2013-10-26 10:50:51.932356603 -0600 @@ -110,6 +110,29 @@ jint value); /* + * Retrieve the byte array from the specified field. + * + * Input: + * env Java VM environment. + * obj Java object for which the value is to be retrieved. + * fieldName name of the field to be retrieved. + * fieldID if non-null, points to field ID. 0 to request retrieval. + * + * Output: + * fieldID if non-null, will contain the field ID. + * size the size of the array is returned here. Must not be NULL. + * + * Return: + * The byte array requested. The caller is responsible for + * deallocating this byte array. + */ +unsigned char* getByteArrayFieldValue(JNIEnv *env, + jobject obj, + const char *fieldName, + jfieldID *fieldID, + int *size); + +/* * From a java.awt.Rectangle object, construct a ImageMagick * RectangleInfo, as passed in from the parameter. * debian/patches/series0000644000000000000000000000007012232770761012036 0ustar 01_fix_load_jnilib.patch 02_jmagick_implicit_decl.patch debian/jmagick6-docs.examples0000644000000000000000000000005312224702640013344 0ustar test/magicktest/* debian/examples/Makefile