# SliTaz package receipt."

PACKAGE="libdvdread-dev"
VERSION="4.1.3"
CATEGORY="system-tools"
SHORT_DESC="Librairy for reading DVDs dev files."
MAINTAINER="erjo@slitaz.org"
WANTED="libdvdread"
DEPENDS="libdvdread"
WEB_SITE="http://www.mplayerhq.hu/MPlayer/releases/dvdnav/"

genpkg_rules()
{
	mkdir -p $fs/usr
	
	# Copying include dir if existes
	if [ -d "$_pkg/usr/include" ]; then
		cp -a $_pkg/usr/include $fs/usr
	fi

	# Copying bin dir if existes
	if [ -d "$_pkg/usr/bin" ]; then
		cp -a $_pkg/usr/bin $fs/usr
	fi

	# Copying pkgconfig dir if existes
	if [ -d "$_pkg/usr/lib/pkgconfig" ]; then
		test -d $_pkg/usr/lib/ || mkdir -p $_pkg/usr/lib/
		cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
	fi
	
	# Copying static libs if existes
	if ( find $_pkg/usr/lib -name "*.*a" > /dev/null ); then
		test -d $fs/usr/lib || mkdir -p $fs/usr/lib
		cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
	fi
}