From f25cfeb1fc77eb70e6422aadea3d6f9a189a7e59 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 28 Aug 2007 12:41:39 +0000 Subject: Add a PyMod template for python related modules git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8522 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/package.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/package.mk b/include/package.mk index 1e18f8cd8..4b811f8af 100644 --- a/include/package.mk +++ b/include/package.mk @@ -128,6 +128,15 @@ define Build/Compile $(call Build/Compile/Default,) endef +define Build/Compile/PyMod + cd $(PKG_BUILD_DIR); \ + $(1) \ + CFLAGS='-I$(STAGING_DIR)/usr/include' \ + LDFLAGS='$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib' \ + $(STAGING_DIR)/usr/bin/hostpython ./setup.py $(2) \ + --prefix=$(PKG_INSTALL_DIR)/usr +endef + $(PACKAGE_DIR): mkdir -p $@ -- cgit v1.2.3