fix up imlib2 md5sum (patch by lars)
[openwrt/svn-archive/archive.git] / XOrg / lib / imlib2 / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=imlib2
12 PKG_VERSION:=1.4.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/enlightenment
17 PKG_MD5SUM:=16a3d885e523303be794282c0ed90841
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
23
24 define Package/imlib2
25 SECTION:=xorg-libraries
26 CATEGORY:=Xorg
27 SUBMENU:=libraries
28 TITLE:=Image library
29 DEPENDS:=+xorg-server-essentials +giflib +libtiff +libjpeg +gtk1 +libnotimpl +libfreetype
30 endef
31
32 CONFIGURE_ARGS+=--disable-gtktest LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
33 EXTRA_LDFLAGS+=-lnotimpl
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/{include,lib/pkgconfig}
37 $(INSTALL_DATA) \
38 $(PKG_INSTALL_DIR)/usr/include/* \
39 $(1)/usr/include/
40
41 $(INSTALL_DATA) \
42 $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} \
43 $(1)/usr/lib/
44
45 $(INSTALL_DATA) \
46 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
47 $(1)/usr/lib/pkgconfig/
48
49 $(INSTALL_DIR) $(2)/bin
50 $(INSTALL_BIN) \
51 $(PKG_INSTALL_DIR)/usr/bin/imlib2-config \
52 $(2)/bin/
53 $(SED) \
54 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
55 $(2)/bin/imlib2-config
56 endef
57
58 define Package/imlib2/install
59 $(INSTALL_DIR) $(1)/usr/lib/imlib2/{loaders,filters}
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
62 $(1)/usr/lib/
63
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)/usr/lib/imlib2/filters/*.so* \
66 $(1)/usr/lib/imlib2/filters
67
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/lib/imlib2/loaders/*.so* \
70 $(1)/usr/lib/imlib2/loaders
71 endef
72
73 $(eval $(call BuildPackage,imlib2))