libpciaccess: convert to new package format

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-07-21 14:54:37 +02:00
parent c770b80e21
commit 4cd6b3c146
3 changed files with 8 additions and 72 deletions

View File

@ -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

View File

@ -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

View File

@ -26,11 +26,17 @@ PKG_LICENSE="OSS"
PKG_SITE="http://freedesktop.org" PKG_SITE="http://freedesktop.org"
PKG_URL="http://xorg.freedesktop.org/archive/individual/lib/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_URL="http://xorg.freedesktop.org/archive/individual/lib/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="zlib" PKG_DEPENDS="zlib"
PKG_BUILD_DEPENDS="toolchain util-macros zlib" PKG_BUILD_DEPENDS_TARGET="toolchain util-macros zlib"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="x11/lib" PKG_SECTION="x11/lib"
PKG_SHORTDESC="libpciaccess: X.org libpciaccess library" PKG_SHORTDESC="libpciaccess: X.org libpciaccess library"
PKG_LONGDESC="X.org libpciaccess library." PKG_LONGDESC="X.org libpciaccess library."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes" 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 "