2010-11-13 14:31:40 +11:00
|
|
|
# Description: Software codec for DV video.
|
2007-06-25 15:33:54 +10:00
|
|
|
# URL: http://libdv.sourceforge.net/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-11-01 23:35:12 +11:00
|
|
|
# Depends on: libsdl popt
|
2023-01-28 19:27:36 -05:00
|
|
|
# Optional: gtk
|
2007-06-25 15:33:54 +10:00
|
|
|
|
|
|
|
name=libdv
|
|
|
|
version=1.0.0
|
2020-01-20 15:02:53 +00:00
|
|
|
release=3
|
2011-01-10 20:34:29 +11:00
|
|
|
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz
|
2023-01-28 19:27:36 -05:00
|
|
|
$name-1.0.0-pic.patch.bz2
|
2008-10-30 22:09:47 +11:00
|
|
|
$name-0.99-2.6.patch)
|
2007-06-25 15:33:54 +10:00
|
|
|
|
|
|
|
build() {
|
2008-10-30 22:09:47 +11:00
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
bzcat $SRC/$name-1.0.0-pic.patch.bz2 |patch -p 1
|
|
|
|
patch -p 1 -i $SRC/$name-0.99-2.6.patch
|
|
|
|
|
2023-01-28 19:27:36 -05:00
|
|
|
PKGMK_LIBDV="--prefix=/usr --mandir=/usr/share/man --enable-sdl"
|
|
|
|
if prt-get isinst gtk; then
|
|
|
|
export GTK_CFLAGS="$(pkgconf --cflags gtk+-2.0 glib-2.0)"
|
|
|
|
export GTK_LIBS="$(pkgconf --libs gtk+-2.0 glib-2.0)"
|
|
|
|
else
|
|
|
|
PKGMK_LIBDV+=" --disable-gtk"
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure $PKGMK_LIBDV
|
2007-06-25 15:33:54 +10:00
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|