From 435f57be9ce69acc1c051b6099f6278d293bf653 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Thu, 2 Nov 2006 13:46:37 +0000 Subject: [PATCH] remove more unneeded python stuff, Makefile cleanup SVN-Revision: 5378 --- lang/python/Makefile | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/lang/python/Makefile b/lang/python/Makefile index e2a3d8a28c..6e35212ddd 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -23,11 +23,11 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk define Package/python - SECTION:=lang - CATEGORY:=Languages - TITLE:=Python programming language - URL:=http://www.python.org - DEPENDS:=+uclibcxx + SECTION:=lang + CATEGORY:=Languages + DEPENDS:=+uclibcxx + TITLE:=Python programming language + URL:=http://www.python.org/ endef define Package/python/description @@ -51,9 +51,8 @@ define Build/Configure make distclean; \ echo "import sys" > $(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; \ - mv $(PKG_BUILD_DIR)/setup.py.foo $(PKG_BUILD_DIR)/setup.py; \ - rm $(PKG_BUILD_DIR)/setup.py.new; \ + cat $(PKG_BUILD_DIR)/setup.py >> $(PKG_BUILD_DIR)/setup.py.new; \ + mv $(PKG_BUILD_DIR)/setup.py.new $(PKG_BUILD_DIR)/setup.py; \ ); $(call Build/Configure/Default, \ --disable-shared \ @@ -64,7 +63,7 @@ define Build/Configure ) endef -MAKE_OPTS= \ +MAKE_OPTS:=\ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)" \ @@ -74,24 +73,37 @@ MAKE_OPTS= \ define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ $(MAKE_OPTS) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ all install endef define Build/InstallDev + mkdir -p $(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/ endef -define Package/python/install - mkdir -p $(1)/usr/{bin,lib} - $(CP) $(PKG_INSTALL_DIR)/usr/{bin,lib} $(1)/usr/ -endef - define Build/UninstallDev rm -rf \ $(STAGING_DIR)/usr/{include,lib}/python2.4 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)) -- 2.30.2