remove more unneeded python stuff, Makefile cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5378 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6eaf180315
commit
2048ae913a
@ -25,9 +25,9 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/python
|
define Package/python
|
||||||
SECTION:=lang
|
SECTION:=lang
|
||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
TITLE:=Python programming language
|
|
||||||
URL:=http://www.python.org
|
|
||||||
DEPENDS:=+uclibcxx
|
DEPENDS:=+uclibcxx
|
||||||
|
TITLE:=Python programming language
|
||||||
|
URL:=http://www.python.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python/description
|
define Package/python/description
|
||||||
@ -51,9 +51,8 @@ define Build/Configure
|
|||||||
make distclean; \
|
make distclean; \
|
||||||
echo "import sys" > $(PKG_BUILD_DIR)/setup.py.new; \
|
echo "import sys" > $(PKG_BUILD_DIR)/setup.py.new; \
|
||||||
echo "sys.path.append('$(PKG_BUILD_DIR)/Lib')" >> $(PKG_BUILD_DIR)/setup.py.new; \
|
echo "sys.path.append('$(PKG_BUILD_DIR)/Lib')" >> $(PKG_BUILD_DIR)/setup.py.new; \
|
||||||
cat $(PKG_BUILD_DIR)/setup.py.new $(PKG_BUILD_DIR)/setup.py > $(PKG_BUILD_DIR)/setup.py.foo; \
|
cat $(PKG_BUILD_DIR)/setup.py >> $(PKG_BUILD_DIR)/setup.py.new; \
|
||||||
mv $(PKG_BUILD_DIR)/setup.py.foo $(PKG_BUILD_DIR)/setup.py; \
|
mv $(PKG_BUILD_DIR)/setup.py.new $(PKG_BUILD_DIR)/setup.py; \
|
||||||
rm $(PKG_BUILD_DIR)/setup.py.new; \
|
|
||||||
);
|
);
|
||||||
$(call Build/Configure/Default, \
|
$(call Build/Configure/Default, \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
@ -64,7 +63,7 @@ define Build/Configure
|
|||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
MAKE_OPTS= \
|
MAKE_OPTS:=\
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)" \
|
LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)" \
|
||||||
@ -74,24 +73,37 @@ MAKE_OPTS= \
|
|||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
||||||
$(MAKE_OPTS) \
|
$(MAKE_OPTS) \
|
||||||
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
all install
|
all install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
mkdir -p $(STAGING_DIR)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/python2.4 $(STAGING_DIR)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/python2.4 $(STAGING_DIR)/usr/include/
|
||||||
|
mkdir -p $(STAGING_DIR)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.4 $(STAGING_DIR)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.4 $(STAGING_DIR)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python/install
|
|
||||||
mkdir -p $(1)/usr/{bin,lib}
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/{bin,lib} $(1)/usr/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/UninstallDev
|
define Build/UninstallDev
|
||||||
rm -rf \
|
rm -rf \
|
||||||
$(STAGING_DIR)/usr/{include,lib}/python2.4
|
$(STAGING_DIR)/usr/{include,lib}/python2.4
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/python/install
|
||||||
|
install -d -m0755 $(1)/usr/bin
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/python2.4 $(1)/usr/bin/
|
||||||
|
ln -sf python2.4 $(1)/usr/bin/python
|
||||||
|
install -d -m0755 $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.4 $(1)/usr/lib/
|
||||||
|
rm -rf \
|
||||||
|
$(1)/usr/lib/python2.4/bsddb/test \
|
||||||
|
$(1)/usr/lib/python2.4/distutils/tests \
|
||||||
|
$(1)/usr/lib/python2.4/email/test \
|
||||||
|
$(1)/usr/lib/python2.4/idlelib \
|
||||||
|
$(1)/usr/lib/python2.4/lib-tk \
|
||||||
|
$(1)/usr/lib/python2.4/test \
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,python))
|
$(eval $(call BuildPackage,python))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user