contrib/libcdio/Pkgfile

31 lines
644 B
Plaintext
Raw Normal View History

2007-10-27 21:36:55 +02:00
# Description: A library for CD-ROM and CD image access.
2007-04-10 18:42:14 +02:00
# URL: http://www.gnu.org/software/libcdio/
# Maintainer: John McQuah, jmcquah at disroot dot org
2014-02-15 16:36:52 +01:00
# Depends on: libcddb ncurses
2007-04-10 18:42:14 +02:00
name=libcdio
2019-10-13 15:23:36 +02:00
version=2.1.0
2008-03-16 14:58:24 +01:00
release=1
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
2007-04-10 18:42:14 +02:00
build() {
cd $name-$version
2007-04-10 18:42:14 +02:00
2017-06-04 05:57:54 +02:00
autoreconf -fi
2014-02-15 16:36:52 +01:00
2007-04-11 16:21:22 +02:00
./configure \
--prefix=/usr \
2014-02-15 16:36:52 +01:00
--disable-vcd-info \
--enable-cpp-progs
2007-04-10 18:42:14 +02:00
2017-06-04 05:57:54 +02:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2007-04-10 18:42:14 +02:00
make
make DESTDIR=$PKG install
2007-10-27 21:36:55 +02:00
2014-02-15 16:36:52 +01:00
sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \
$PKG/usr/include/cdio/cdio_config.h
rm -r $PKG/usr/share/info
2007-04-10 18:42:14 +02:00
}