From patchwork Wed Dec 11 20:26:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 300381 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 7EFF62C00AB for ; Thu, 12 Dec 2013 07:27:47 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 032E593AC9; Wed, 11 Dec 2013 20:27:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UGjUqKsB-oHQ; Wed, 11 Dec 2013 20:27:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 149739397D; Wed, 11 Dec 2013 20:27:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 95F3B1CE86C for ; Wed, 11 Dec 2013 20:27:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7ECB687FF1 for ; Wed, 11 Dec 2013 20:27:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l4D17unrsuFG for ; Wed, 11 Dec 2013 20:27:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by hemlock.osuosl.org (Postfix) with ESMTP id DC3A0884A5 for ; Wed, 11 Dec 2013 20:27:18 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 4BF80822; Wed, 11 Dec 2013 21:27:20 +0100 (CET) Received: from localhost (AToulouse-651-1-76-3.w92-156.abo.wanadoo.fr [92.156.131.3]) by mail.free-electrons.com (Postfix) with ESMTPSA id F330A79A for ; Wed, 11 Dec 2013 21:27:19 +0100 (CET) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Wed, 11 Dec 2013 21:26:43 +0100 Message-Id: <1386793631-14026-9-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1386793631-14026-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1386793631-14026-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCHv2 08/36] python-mad: convert to the Python package infrastructure X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Thomas Petazzoni --- package/python-mad/python-mad.mk | 20 +++----------------- 1 file 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))