Add libburn.
[openwrt/svn-archive/archive.git] / desktop / libs / libburn / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libburn
12 PKG_VERSION:=0.6.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).pl01.tar.gz
16 PKG_SOURCE_URL:=http://files.libburnia-project.org/releases/
17 PKG_MD5SUM:=9ad48fe011dd5cbe9a15367ae8173647
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libburn
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=libburn
27 URL:=http://www.libburnia-project.org
28 endef
29
30 define Package/libburn/description
31 libburn is the library by which preformatted data get onto optical media.
32 It uses either /dev/sgN (e.g. on kernel 2.4 with ide-scsi) or /dev/srM or
33 /dev/hdX (e.g. on kernel 2.6). libburn is the foundation of our cdrecord
34 emulation. Its code is independent of cdrecord. Its DVD capabilities are
35 learned from studying the code of dvd+rw-tools and MMC-5 specs. No code but
36 only the pure SCSI knowledge has been taken from dvd+rw-tools, though.
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include/libburn
41 $(INSTALL_DATA) \
42 $(PKG_INSTALL_DIR)/usr/include/libburn/* \
43 $(1)/usr/include/libburn/
44
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(INSTALL_DATA) \
47 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
48 $(1)/usr/lib/
49
50 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
51 $(INSTALL_DATA) \
52 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
53 $(1)/usr/lib/pkgconfig/
54 endef
55
56 define Package/libburn/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
60 $(1)/usr/lib
61 endef
62
63 $(eval $(call BuildPackage,libburn))