From 3681763e801d46bdd4e22ff67f378887cc30aefe Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 9 Apr 2009 13:27:39 +0000 Subject: [PATCH] [package] add libdvdread (#4731) SVN-Revision: 15167 --- libs/libdvdread/Makefile | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 libs/libdvdread/Makefile diff --git a/libs/libdvdread/Makefile b/libs/libdvdread/Makefile new file mode 100644 index 0000000000..5b6df485fb --- /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)) -- 2.30.2