799c7e2ba71cc8916e11dbbcc0741302d298a6f3
[openwrt/svn-archive/feeds.git] / desktop / libs / libisofs / 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:=libisofs
12 PKG_VERSION:=0.6.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://files.libburnia-project.org/releases/
17 PKG_MD5SUM:=fed7ec84358cf13d2d879764b9f03731
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 TARGET_LDFLAGS+=-liconv
25
26 define Package/libisofs
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=libisofs
30 URL:=http://www.libburnia-project.org
31 DEPENDS:=+libburn +libpthread $(ICONV_DEPENDS)
32 endef
33
34 define Package/libisofs/description
35 libisofs is a library to create an ISO-9660 filesystem, and supports extensions
36 like RockRidge or Joliet. It is also a full featured ISO-9660 editor, allowing
37 you to modify an ISO image or multisession disc, including file addition and
38 removal, change of file names and attributes, etc
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include/libisofs
43 $(INSTALL_DATA) \
44 $(PKG_INSTALL_DIR)/usr/include/libisofs/* \
45 $(1)/usr/include/libisofs/
46
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
50 $(1)/usr/lib/
51
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
55 $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/libisofs/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
62 $(1)/usr/lib
63 endef
64
65 $(eval $(call BuildPackage,libisofs))