From: florian Date: Thu, 9 Apr 2009 13:27:39 +0000 (+0000) Subject: [package] add libdvdread (#4731) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=f01d1b7e4017cb6c365a1fbd159c031f24ebe63e;p=packages.git [package] add libdvdread (#4731) git-svn-id: svn://svn.openwrt.org/openwrt/packages@15167 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/libs/libdvdread/Makefile b/libs/libdvdread/Makefile new file mode 100644 index 000000000..5b6df485f --- /dev/null +++ b/libs/libdvdread/Makefile @@ -0,0 +1,66 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: Makefile 13686 2008-12-19 06:35:23Z nbd $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libdvdread +PKG_VERSION:=0.9.7 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.dtek.chalmers.se/~dvd/dist +PKG_MD5SUM:=078788c9241ae16763529e1235502337 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/libdvdread + SECTION:=libs + CATEGORY:=Libraries + TITLE:=simple foundation for reading DVD video disks. + URL:=http://www.dtek.chalmers.se/~dvd/downloads.shtml +endef + +define Package/libdvdread/description + libdvdread provides a simple foundation for reading DVD video disks. + It provides the functionality that is required to access many DVDs. + It parses IFO files, reads NAV-blocks, and performs CSS + authentication and descrambling. +endef + +TARGET_CFLAGS += \ + -ffunction-sections -fdata-sections + +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static +# --with-build-cc="$(HOSTCC)" + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Build/InstallDev + mkdir -p $(1)/usr/include/dvdread + $(CP) $(PKG_INSTALL_DIR)/usr/include/dvdread/*.h \ + $(1)/usr/include/dvdread + mkdir -p $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvdread.{a,so*} \ + $(1)/usr/lib/ +endef + +define Package/libdvdread/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvdread.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libdvdread))