2012-11-21 11:12:43 -06:00
|
|
|
# Description: Generic PCI access library
|
2024-03-30 17:44:19 +01:00
|
|
|
# URL: https://xorg.freedesktop.org
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2024-02-07 19:21:16 +01:00
|
|
|
# Depends on: xorg-libpciaccess zlib-32
|
|
|
|
# Optional: hwdata
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=xorg-libpciaccess-32
|
2024-03-30 17:44:19 +01:00
|
|
|
version=0.18.1
|
|
|
|
release=1
|
2022-10-20 19:19:21 +02:00
|
|
|
source=(https://www.x.org/releases/individual/lib/libpciaccess-$version.tar.xz)
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
build() {
|
2024-02-07 19:21:16 +01:00
|
|
|
prt-get isinst hwdata && PKGMK_LIBPCIA+=' -D pci-ids=hwdata'
|
2012-11-21 11:12:43 -06:00
|
|
|
|
2024-02-07 19:21:16 +01:00
|
|
|
meson setup libpciaccess-$version build $PKGMK_LIBPCIA \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=false \
|
|
|
|
-D b_pie=true \
|
|
|
|
-D zlib=enabled
|
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
rm -rf $PKG/usr/include
|
|
|
|
}
|