diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..03cf275b --- /dev/null +++ b/debian/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f + +PACKAGE = $(CURDIR)/debian/pd-extended +pkglibdir = /usr/lib/pd-extended/extra + +%: + dh $@ --buildsystem=makefile + + +override_dh_auto_build: + make -C packages/linux_make DESTDIR=$(PACKAGE) prefix=/usr all + + +override_dh_auto_install: + make -C packages/linux_make DESTDIR=$(PACKAGE) prefix=/usr install +# free desktop files that need to be renamed, so can't go in debian/install + install -d $(PACKAGE)/usr/share/menu + install -m0644 $(CURDIR)/packages/linux_make/pd-extended.menu \ + $(PACKAGE)/usr/share/menu/pd-extended +# clean things up + find $(PACKAGE)/usr/lib/pd-extended/doc/ -type f -print0 | xargs -0 chmod a-x + find $(PACKAGE)/usr/lib/pd-extended/extra/ -type f -print0 | xargs -0 chmod a-x +# Pd-extended uses the one in /usr/lib/pd-extended + rm -- $(PACKAGE)/usr/bin/pd-gui.tcl +# delete these since they are provided by the 'puredata' package suite + rm -- $(PACKAGE)/usr/bin/pdsend + rm -- $(PACKAGE)/usr/bin/pdreceive + rm -- $(PACKAGE)/usr/share/man/man1/pdsend.1 + rm -- $(PACKAGE)/usr/share/man/man1/pdreceive.1 + rm -- $(PACKAGE)/usr/include/m_pd.h +# the 'pd' command should be handled by update-alternatives + mv $(PACKAGE)/usr/bin/pd $(PACKAGE)/usr/bin/pd-extended + mv $(PACKAGE)/usr/share/man/man1/pd.1 \ + $(PACKAGE)/usr/share/man/man1/pd-extended.1 + gzip -9 $(PACKAGE)/usr/share/man/man1/pd-extended.1 + +override_dh_shlibdeps: + dpkg-shlibdeps \ + $(PACKAGE)/usr/bin/pdextended \ + $(PACKAGE)$(pkglibdir)/*.pd_linux \ + $(PACKAGE)$(pkglibdir)/*/*.pd_linux \ + -T$(PACKAGE).substvars |