From 6f9ac84898bc8d2b2cb6ebb8ad7c315a458764da Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 28 Aug 2007 12:42:11 +0000 Subject: [PATCH] Use this new PyMod template git-svn-id: svn://svn.openwrt.org/openwrt/packages@8523 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- lang/kid/Makefile | 6 +----- libs/pyevent/Makefile | 11 +++++------ net/pypcap/Makefile | 8 +++++--- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/lang/kid/Makefile b/lang/kid/Makefile index bf12535ee..936f3417d 100644 --- a/lang/kid/Makefile +++ b/lang/kid/Makefile @@ -25,11 +25,7 @@ define Package/kid endef define Build/Compile - cd $(PKG_BUILD_DIR); \ - CFLAGS='-I$(STAGING_DIR)/usr/include' \ - LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \ - $(STAGING_DIR)/usr/bin/hostpython ./setup.py install \ - --prefix=$(PKG_INSTALL_DIR)/usr + $(call Build/Compile/PyMod,,install) endef define Package/kid/install diff --git a/libs/pyevent/Makefile b/libs/pyevent/Makefile index 8a0896e1e..251fc4e81 100644 --- a/libs/pyevent/Makefile +++ b/libs/pyevent/Makefile @@ -26,12 +26,11 @@ define Package/pyevent endef define Build/Compile - cd $(PKG_BUILD_DIR); \ - LIBEVENT_HOME='$(STAGING_DIR)/usr/lib' \ - CFLAGS='-I$(STAGING_DIR)/usr/include' \ - LDFLAGS='$(TARGET_LDFLAGS)' \ - $(STAGING_DIR)/usr/bin/hostpython ./setup.py install \ - --prefix=$(PKG_INSTALL_DIR)/usr + $(call Build/Compile/PyMod,\ + LIBEVENT_HOME='$(STAGING_DIR)/usr/lib' \ + ,\ + install \ + ) endef define Package/pyevent/install diff --git a/net/pypcap/Makefile b/net/pypcap/Makefile index 84c5fccdb..f4d7642d5 100644 --- a/net/pypcap/Makefile +++ b/net/pypcap/Makefile @@ -24,9 +24,11 @@ define Package/pypcap endef define Build/Compile - cd $(PKG_BUILD_DIR); \ - PCAP_HOME=$(STAGING_DIR)/usr \ - $(STAGING_DIR)/usr/bin/hostpython ./setup.py build + $(call Build/Compile/PyMod,\ + PCAP_HOME=$(STAGING_DIR)/usr \ + ,\ + install \ + ) endef define Package/pypcap/install -- 2.11.0