2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.dtek.chalmers.se
/~dvd
/dist
16 PKG_MD5SUM
:=078788c9241ae16763529e1235502337
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libdvdread
25 TITLE
:=simple foundation for reading DVD video disks.
26 URL
:=http
://www.dtek.chalmers.se
/~dvd
/downloads.shtml
29 define Package
/libdvdread
/description
30 libdvdread provides a simple foundation for reading DVD video disks.
31 It provides the functionality that is required to access many DVDs.
32 It parses IFO files
, reads NAV-blocks
, and performs CSS
33 authentication and descrambling.
37 -ffunction-sections
-fdata-sections
42 # --with-build-cc="$(HOSTCC)"
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CCOPT
="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include/dvdread
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dvdread
/*.h \
54 $(1)/usr
/include/dvdread
55 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdvdread.
{a
,so
*} \
60 define Package
/libdvdread
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdvdread.so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libdvdread
))