diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2011-01-25 16:24:46 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-01-25 16:24:46 +0100 |
commit | 0eef30440e9597b2c0b9c7a0340a3986a7ea2a65 (patch) | |
tree | f8e74a929418c8085bc09dd5606a10e356923c74 /package/multimedia/python-mad | |
parent | 4c6a451ac9fab16abcda5834ed4a9b728091ab9e (diff) | |
parent | 6ea3c8bd4dabe2b11a8beecb6a641336e6e90f3c (diff) | |
download | buildroot-novena-0eef30440e9597b2c0b9c7a0340a3986a7ea2a65.tar.gz buildroot-novena-0eef30440e9597b2c0b9c7a0340a3986a7ea2a65.zip |
Merge branch 'for-2011.02/python-bump' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/multimedia/python-mad')
-rw-r--r-- | package/multimedia/python-mad/Config.in | 9 | ||||
-rw-r--r-- | package/multimedia/python-mad/python-mad.mk | 41 |
2 files changed, 50 insertions, 0 deletions
diff --git a/package/multimedia/python-mad/Config.in b/package/multimedia/python-mad/Config.in new file mode 100644 index 000000000..25354213d --- /dev/null +++ b/package/multimedia/python-mad/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_MAD + bool "python-mad" + depends on BR2_PACKAGE_PYTHON + select BR2_PACKAGE_LIBMAD + help + python-mad is a Python binding for the MAD library, a + high-quality integer-only MPEG decoder. + + http://spacepants.org/src/pymad/ diff --git a/package/multimedia/python-mad/python-mad.mk b/package/multimedia/python-mad/python-mad.mk new file mode 100644 index 000000000..52d13a650 --- /dev/null +++ b/package/multimedia/python-mad/python-mad.mk @@ -0,0 +1,41 @@ +############################################################# +# +# python-mad +# +############################################################# + +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_DEPENDENCIES = python libmad + +ifeq ($(BR2_ENDIAN),"LITTLE") +PYTHON_MAD_ENDIAN=little +else +PYTHON_MAD_ENDIAN=big +endif + +define PYTHON_MAD_CONFIGURE_CMDS + echo "endian = $(PYTHON_MAD_ENDIAN)" > $(@D)/Setup + echo "mad_libs = mad" >> $(@D)/Setup + echo "mad_lib_dir = $(STAGING_DIR)/usr/lib" >> $(@D)/Setup + 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 $(call GENTARGETS,package,python-mad)) |