09ece05e1e4f416303e4f7d711c8b955ff67bcc9
[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
23 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
24 TARGET_LDFLAGS+=-L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv
25
26 define Package/libisofs
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=libisofs
30 URL:=http://www.libburnia-project.org
31 endef
32
33 define Package/libisofs/description
34 libisofs is a library to create an ISO-9660 filesystem, and supports extensions
35 like RockRidge or Joliet. It is also a full featured ISO-9660 editor, allowing
36 you to modify an ISO image or multisession disc, including file addition and
37 removal, change of file names and attributes, etc
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include/libisofs
42 $(INSTALL_DATA) \
43 $(PKG_INSTALL_DIR)/usr/include/libisofs/* \
44 $(1)/usr/include/libisofs/
45
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(INSTALL_DATA) \
48 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
49 $(1)/usr/lib/
50
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
54 $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/libisofs/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
61 $(1)/usr/lib
62 endef
63
64 $(eval $(call BuildPackage,libisofs))