rules 1.67 KB
Newer Older
Albert Gräf's avatar
Albert Gräf committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/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:
	cd wiringPi/wiringPi && make static
	cd l2ork_addons/raspberry_pi/disis_gpio && ln -sf $(CURDIR)/wiringPi .
	cd l2ork_addons && inst_dir=/usr ./tar_em_up.sh -F -n

override_dh_auto_install:
	mkdir -p debian/pd-l2ork && mv packages/linux_make/build/usr debian/pd-l2ork
19 20 21 22 23 24 25 26 27 28 29
# 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
# Remove cyclist and pdsend/pdreceive which are provided by other packages.
	cd debian/pd-l2ork/usr/bin && rm -rf pdsend pdreceive cyclist
	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
Albert Gräf's avatar
Albert Gräf committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43
# Default preferences file.
	install -d debian/pd-l2ork/etc/pd-l2ork && ln -s -f /usr/lib/pd-l2ork/default.settings debian/pd-l2ork/etc/pd-l2ork/default.settings

# XXXTODO: This is deprecated, so we might have to migrate to dh_python2 in
# the future. See http://deb.li/dhs2p.
override_dh_pysupport:
	dh_pysupport -n -Xxmlrpc-test.py

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