libmcrypt: moved to github
[packages.git] / libs / libdvdread / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libdvdread
11 PKG_VERSION:=0.9.7
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.dtek.chalmers.se/~dvd/dist
16 PKG_MD5SUM:=078788c9241ae16763529e1235502337
17
18 PKG_FIXUP:=autoreconf
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libdvdread
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=simple foundation for reading DVD video disks.
26   URL:=http://www.dtek.chalmers.se/~dvd/downloads.shtml
27 endef
28
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.
34 endef
35
36 TARGET_CFLAGS += \
37         -ffunction-sections -fdata-sections
38
39 CONFIGURE_ARGS += \
40         --enable-shared \
41         --enable-static
42 #       --with-build-cc="$(HOSTCC)"
43
44 define Build/Compile
45         $(MAKE) -C $(PKG_BUILD_DIR) \
46                 CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
47                 DESTDIR="$(PKG_INSTALL_DIR)" \
48                 all install
49 endef
50
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*} \
57                 $(1)/usr/lib/
58 endef
59
60 define Package/libdvdread/install
61         $(INSTALL_DIR) $(1)/usr/lib
62         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvdread.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libdvdread))