[PD-cvs] SF.net SVN: pure-data: [9583] trunk/packages/linux_make/Makefile

grholzi at users.sourceforge.net grholzi at users.sourceforge.net
Fri Mar 14 23:33:51 CET 2008


Revision: 9583
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9583&view=rev
Author:   grholzi
Date:     2008-03-14 15:33:50 -0700 (Fri, 14 Mar 2008)

Log Message:
-----------
now use dpkg-shlibdeps to generate the dependencies

Modified Paths:
--------------
    trunk/packages/linux_make/Makefile

Modified: trunk/packages/linux_make/Makefile
===================================================================
--- trunk/packages/linux_make/Makefile	2008-03-14 12:37:12 UTC (rev 9582)
+++ trunk/packages/linux_make/Makefile	2008-03-14 22:33:50 UTC (rev 9583)
@@ -14,7 +14,8 @@
 prefix = /usr/local
 
 # generates the dependencies for all externals and pd itself
-PACKAGE_DEPENDS := $(shell find $(DESTDIR) \( -name "*.pd_linux" -o -name pd \) -print0 | xargs -0 ldd | sed -n 's|.*\(lib.*\) =.*|\1|p' |sort -u| xargs dpkg -S | cut -d ':' -f 1 | sort -u | tr '\n' ' ')
+PACKAGE_BINARIES := $(shell find $(DESTDIR) \( -name "*.pd_linux" -o -name pd \) )
+PACKAGE_DEPENDS := $(shell dpkg-shlibdeps -O $(PACKAGE_BINARIES) | cut -b0-15 --complement )
 
 
 include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
@@ -111,7 +112,7 @@
 	sed -i 's|^Architecture:.*|Architecture: $(DEB_BUILD_ARCH)|' \
 		$(packages_src)/linux_make/debian/control
 # add auto-generated dependencies
-	sed -i 's|^Depends:.*|Depends: $(PACKAGE_DEPENDS)|' \
+	sed -i 's!^Depends:.*!Depends: $(PACKAGE_DEPENDS)!' \
 		$(packages_src)/linux_make/debian/control
 ifeq ($(DEB_BUILD_ARCH),powerpc)
 	sed -i 's|, libavifile-0.7c2||' $(packages_src)/linux_make/debian/control


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list