1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
DEBVERSION := 1.0.3+dfsg1
TARBALL = OpenCTM-1.0.3-src.tar.bz2
TDIR = OpenCTM-1.0.3
get-orig-source:
[ -e $(TARBALL) ] || wget http://qa.debian.org/watch/sf.php/openctm/$(TARBALL)
tar -jxf $(TARBALL)
# Remove PDFs without source
rm -f $(TDIR)/doc/DevelopersManual.pdf
rm -f $(TDIR)/doc/FormatSpecification.pdf
# Remove external libraries which are in Debian or not used
rm -rf $(TDIR)/tools/glew
rm -rf $(TDIR)/tools/jpeg
rm -rf $(TDIR)/tools/pnglite
rm -rf $(TDIR)/tools/tinyxml
rm -rf $(TDIR)/tools/zlib
tar -jcf openctm_$(DEBVERSION).orig.tar.bz2 $(TDIR)
override_dh_compress:
dh_compress -X.pdf
override_dh_clean:
rm -f Makefile
dh_clean
%:
ln -s -f Makefile.linux Makefile
dh $@
|