summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-11 20:26:43 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-15 12:37:19 (GMT)
commitf085d1f425681ae3742dc3f2d99a77ce5b874758 (patch)
tree7ac93ae9d1ed63f12ed1e220b5a7ae07540e293a
parentdcd90b00ed7c37b1380a2e12a3f9761c75f19a9f (diff)
downloadbuildroot-f085d1f425681ae3742dc3f2d99a77ce5b874758.tar.gz
buildroot-f085d1f425681ae3742dc3f2d99a77ce5b874758.tar.bz2
python-mad: convert to the Python package infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/python-mad/python-mad.mk20
1 files changed, 3 insertions, 17 deletions
diff --git a/package/python-mad/python-mad.mk b/package/python-mad/python-mad.mk
index eaa1fae..1b3cb75 100644
--- a/package/python-mad/python-mad.mk
+++ b/package/python-mad/python-mad.mk
@@ -7,8 +7,9 @@
PYTHON_MAD_VERSION = 0.6
PYTHON_MAD_SOURCE = pymad-$(PYTHON_MAD_VERSION).tar.gz
PYTHON_MAD_SITE = http://spacepants.org/src/pymad/download/
+PYTHON_MAD_SETUP_TYPE = distutils
-PYTHON_MAD_DEPENDENCIES = python libmad
+PYTHON_MAD_DEPENDENCIES = libmad
ifeq ($(BR2_ENDIAN),"LITTLE")
PYTHON_MAD_ENDIAN=little
@@ -23,19 +24,4 @@ define PYTHON_MAD_CONFIGURE_CMDS
echo "mad_include_dir = $(STAGING_DIR)/usr/include" >> $(@D)/Setup
endef
-define PYTHON_MAD_BUILD_CMDS
- (cd $(@D); \
- CC="$(TARGET_CC)" \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDSHARED="$(TARGET_CC) -shared" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
- $(HOST_DIR)/usr/bin/python setup.py build_ext \
- --include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR))
- (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
-endef
-
-define PYTHON_MAD_INSTALL_TARGET_CMDS
- (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
-endef
-
-$(eval $(generic-package))
+$(eval $(python-package))