From 4cd6b3c146bd2e32557445bd1277d82b57889760 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 21 Jul 2013 14:54:37 +0200 Subject: [PATCH] libpciaccess: convert to new package format Signed-off-by: Stephan Raue --- packages/x11/lib/libpciaccess/build | 40 ------------------- packages/x11/lib/libpciaccess/install | 30 -------------- .../x11/lib/libpciaccess/{meta => package.mk} | 10 ++++- 3 files changed, 8 insertions(+), 72 deletions(-) delete mode 100755 packages/x11/lib/libpciaccess/build delete mode 100755 packages/x11/lib/libpciaccess/install rename packages/x11/lib/libpciaccess/{meta => package.mk} (85%) diff --git a/packages/x11/lib/libpciaccess/build b/packages/x11/lib/libpciaccess/build deleted file mode 100755 index 3de4e2af83..0000000000 --- a/packages/x11/lib/libpciaccess/build +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" - -export ac_cv_header_asm_mtrr_h=set - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ - --with-pciids-path=/usr/share \ - --with-zlib \ - -make -$MAKEINSTALL diff --git a/packages/x11/lib/libpciaccess/install b/packages/x11/lib/libpciaccess/install deleted file mode 100755 index a1999ce2e8..0000000000 --- a/packages/x11/lib/libpciaccess/install +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/lib - cp -P $PKG_BUILD/src/.libs/libpciaccess.so* $INSTALL/usr/lib - -mkdir -p $INSTALL/usr/bin - cp -P $PKG_BUILD/scanpci/.libs/scanpci $INSTALL/usr/bin - diff --git a/packages/x11/lib/libpciaccess/meta b/packages/x11/lib/libpciaccess/package.mk similarity index 85% rename from packages/x11/lib/libpciaccess/meta rename to packages/x11/lib/libpciaccess/package.mk index c12d07a495..fa7c5d46c5 100644 --- a/packages/x11/lib/libpciaccess/meta +++ b/packages/x11/lib/libpciaccess/package.mk @@ -26,11 +26,17 @@ PKG_LICENSE="OSS" PKG_SITE="http://freedesktop.org" PKG_URL="http://xorg.freedesktop.org/archive/individual/lib/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_DEPENDS="zlib" -PKG_BUILD_DEPENDS="toolchain util-macros zlib" +PKG_BUILD_DEPENDS_TARGET="toolchain util-macros zlib" PKG_PRIORITY="optional" PKG_SECTION="x11/lib" PKG_SHORTDESC="libpciaccess: X.org libpciaccess library" PKG_LONGDESC="X.org libpciaccess library." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" + +PKG_CONFIGURE_OPTS_TARGET="ac_cv_header_asm_mtrr_h=set \ + --with-pciids-path=/usr/share \ + --with-zlib "