X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8fde2f44bbb95629cf9d78a5049e79ffb856a75b..f08f0691af7bd6dc266fff403ca4ac8b48fa62cb:/include/package.mk?ds=sidebyside 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 $@