summaryrefslogtreecommitdiff
path: root/libcdio/Pkgfile
blob: 80df6e473291a1c6e39bc3d5c32515d89b9aafd6 (plain)
    1 # Description: A library for CD-ROM and CD image access.
    2 # URL: http://www.gnu.org/software/libcdio/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Packager: Tim Biermann, tim_biermann at web dot de
    5 # Depends on: libcddb ncurses
    6 
    7 name=libcdio
    8 version=0.94
    9 release=1
   10 source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
   11 	libcdio-0.83-linking.patch)
   12 
   13 build() {
   14 	cd $name-$version
   15 
   16 	patch -p 1 -i $SRC/libcdio-0.83-linking.patch
   17 	sed -i '/AM_INIT_AUTOMAKE/s/subdir-objects//' configure.ac
   18 	autoreconf -fi
   19 
   20 	./configure \
   21 		--prefix=/usr \
   22 		--disable-vcd-info \
   23 		--enable-cpp-progs
   24 
   25 	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   26 
   27 	make
   28 	make DESTDIR=$PKG install
   29 
   30 	sed -i "/LIBCDIO_SOURCE_PATH/s|.*|/* #undef LIBCDIO_SOURCE_PATH */|" \
   31 		$PKG/usr/include/cdio/cdio_config.h
   32 
   33 	rm -r $PKG/usr/share/info
   34 }

Generated by cgit