Use this new PyMod template
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 28 Aug 2007 12:42:11 +0000 (12:42 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 28 Aug 2007 12:42:11 +0000 (12:42 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8523 3c298f89-4303-0410-b956-a3cf2f4a3e73

lang/kid/Makefile
libs/pyevent/Makefile
net/pypcap/Makefile

index bf12535..936f341 100644 (file)
@@ -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
index 8a0896e..251fc4e 100644 (file)
@@ -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
index 84c5fcc..f4d7642 100644 (file)
@@ -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