rules 2.12 KB
Newer Older
Albert Gräf's avatar
Albert Gräf committed
1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:

override_dh_auto_build:
13
	cd l2ork_addons && ./tar_em_up.sh -B -n
Albert Gräf's avatar
Albert Gräf committed
14 15

override_dh_auto_install:
16
	mkdir -p debian/pd-l2ork && mv packages/linux_make/build/* debian/pd-l2ork
17 18 19
# Remove some unneeded files.
	cd debian/pd-l2ork/ && rm -f Makefile README.txt
	cd debian/pd-l2ork/usr/lib/pd-l2ork/extra && rm -rf */*.pd_linux_o */*.la
20 21 22 23
# Move cyclist and pdsend/pdreceive to the pd-l2ork lib directory to prevent
# conflicts with other packages providing these files.
	cd debian/pd-l2ork/usr/bin && mv pdsend pdreceive cyclist ../lib/pd-l2ork/bin
# Also remove the corresponding man pages.
24 25 26 27 28 29
	cd debian/pd-l2ork/usr/share/man/man1 && rm -rf pdsend.* pdreceive.*
# Move the Gem include files into the pd-l2ork include directory to prevent
# conflicts with other packages providing these files.
	cd debian/pd-l2ork/usr && mv include/Gem include/pd-l2ork
# Edit the Gem pkgconfig file accordingly and rename it.
	cd debian/pd-l2ork/usr/lib/pkgconfig && sed -e 's?/include?/include/pd-l2ork?g' -e 's?/lib/pd/extra?/lib/pd-l2ork/extra?g' < Gem.pc > pd-l2ork-Gem.pc && rm -f Gem.pc
30 31
# Sanitize permissions.
	cd debian/pd-l2ork && chmod -R go-w * && chmod -R a+r * && chmod a-x usr/lib/pd-l2ork/default.settings
32 33 34 35
	find debian/pd-l2ork -executable -name '*.pd_linux' | xargs chmod a-x
	find debian/pd-l2ork -executable -name '*.pd' | xargs chmod a-x
	find debian/pd-l2ork -executable -name '*.txt' | xargs chmod a-x
	find debian/pd-l2ork -executable -name '*.aif*' | xargs chmod a-x
36
	find debian/pd-l2ork -type d | xargs chmod a+x
Albert Gräf's avatar
Albert Gräf committed
37

38 39 40 41
# NOTE: Older systems use dh_pysupport instead of dh_python2. See
# http://deb.li/dhs2p.
override_dh_python2:
	dh_python2 -n -Xxmlrpc-test.py
Albert Gräf's avatar
Albert Gräf committed
42 43 44 45 46 47 48

override_dh_compress:
	dh_compress -X.pd -X.wav -X.aiff -X.txt -X.md

override_dh_fixperms:
	dh_fixperms
	chmod 0755 debian/pd-l2ork/usr/lib/pd-l2ork/bin/pd.tk
49 50 51 52 53

# Supply some options to get rid of a gazillion of warnings about shared
# library files which are really externals.
override_dh_shlibdeps:
	dh_shlibdeps --dpkg-shlibdeps-params="--ignore-missing-info --warnings=0"