66a52243efa82d56b13d93666b1abe00209e73f6
[packages.git] / libs / libdvdread / Makefile
1
2 # Copyright (C) 2006 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:=1
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 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libdvdread
21   SECTION:=libs
22   CATEGORY:=Libraries
23   TITLE:=simple foundation for reading DVD video disks.
24   URL:=http://www.dtek.chalmers.se/~dvd/downloads.shtml
25 endef
26
27 define Package/libdvdread/description
28         libdvdread provides a simple foundation for reading DVD video disks.
29         It provides the functionality that is required to access many DVDs.
30         It parses IFO files, reads NAV-blocks, and performs CSS
31         authentication and descrambling.
32 endef
33
34 TARGET_CFLAGS += \
35         -ffunction-sections -fdata-sections
36
37 CONFIGURE_ARGS += \
38         --enable-shared \
39         --enable-static
40 #       --with-build-cc="$(HOSTCC)" 
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
45                 DESTDIR="$(PKG_INSTALL_DIR)" \
46                 all install
47 endef
48
49 define Build/InstallDev
50         $(INSTALL_DIR) $(1)/usr/include/dvdread
51         $(CP)   $(PKG_INSTALL_DIR)/usr/include/dvdread/*.h \
52                 $(1)/usr/include/dvdread
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP)   $(PKG_INSTALL_DIR)/usr/lib/libdvdread.{a,so*} \
55                 $(1)/usr/lib/
56 endef
57
58 define Package/libdvdread/install
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvdread.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libdvdread))