Standardize, install headers and libs in staging_dir, tend to reduce package size
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5376 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a604f48a49
commit
6eaf180315
@ -18,6 +18,7 @@ PKG_MD5SUM:=141c683447d5e76be1d2bd4829574f02
|
|||||||
PKG_CAT:=bzcat
|
PKG_CAT:=bzcat
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
|
||||||
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
@ -75,15 +76,22 @@ define Build/Compile
|
|||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
$(MAKE_OPTS) \
|
$(MAKE_OPTS) \
|
||||||
all
|
all install
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/python2.4 $(STAGING_DIR)/usr/include/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.4 $(STAGING_DIR)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python/install
|
define Package/python/install
|
||||||
mkdir -p $(1)/lib
|
mkdir -p $(1)/usr/{bin,lib}
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(CP) $(PKG_INSTALL_DIR)/usr/{bin,lib} $(1)/usr/
|
||||||
$(MAKE_OPTS) \
|
endef
|
||||||
DESTDIR="$(1)" \
|
|
||||||
install
|
define Build/UninstallDev
|
||||||
|
rm -rf \
|
||||||
|
$(STAGING_DIR)/usr/{include,lib}/python2.4
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,python))
|
$(eval $(call BuildPackage,python))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user