#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk export JAVA_HOME=/usr/lib/jvm/default-java export PACKAGE_NAME=_PACKAGE_NAME_ export ANT=ant # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 %: dh $@ --with javahelper override_dh_auto_build: dh_auto_build -- _BUILD_TARGET_ # Copy OS specific and native libs override_dh_install-indep: dh_install -p$(PACKAGE_NAME) -Xslickless.jar -Xslick-runner.jar -X-slick.jar -X.svn -Xcommons-codec.jar # make and install the debian specific bundles # use the prebuild and installed bundles to extract/modify and use the # exising debian java packages $(ANT) -file build.xml -Ddebian.bundles.dest=debian/$(PACKAGE_NAME)/usr/lib/$(PACKAGE_NAME)/sc-bundles deb-bundle-jna deb-bundle-util deb-bundle-sysactivitynotifications deb-bundle-swing-ui deb-bundle-httputil deb-bundle-json deb-bundle-smacklib deb-bundle-jmdnslib override_dh_install-arch: ifeq ($(DEB_HOST_ARCH),amd64) dh_install -p$(PACKAGE_NAME)-jni lib/native/linux-64/*.so usr/lib/jni/ else dh_install -p$(PACKAGE_NAME)-jni lib/native/linux/*.so usr/lib/jni/ endif # we have folders with name *.jar which jh_manifest don't like and fails, # we do not use it so skip it override_jh_manifest: # do nothing get-orig-source: uscan