2008-06-23 08:29:13 +00:00
|
|
|
#
|
2011-01-28 00:11:46 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2007-10-09 22:08:44 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# blogic@openwrt.org
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=imlib2
|
2011-01-28 00:11:46 +00:00
|
|
|
PKG_VERSION:=1.4.4
|
|
|
|
PKG_RELEASE:=1
|
2007-10-09 22:08:44 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-11-03 13:12:48 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/enlightenment
|
2011-01-28 00:11:46 +00:00
|
|
|
PKG_MD5SUM:=20d59c7cda06742015baade6f5975415
|
2010-02-19 01:20:44 +00:00
|
|
|
|
2008-10-08 15:48:39 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2007-10-09 22:08:44 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-10-08 15:48:39 +00:00
|
|
|
PKG_INSTALL=1
|
|
|
|
|
2007-10-09 22:08:44 +00:00
|
|
|
define Package/imlib2
|
|
|
|
SECTION:=xorg-libraries
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
|
|
|
TITLE:=Image library
|
2009-04-29 06:52:11 +00:00
|
|
|
DEPENDS:=+libX11 +giflib +libtiff +libjpeg +gtk1 +libfreetype +libXext
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://docs.enlightenment.org/api/imlib2/html/
|
2007-10-09 22:08:44 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-21 21:02:40 +00:00
|
|
|
TARGET_CFLAGS += "-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--x-includes="$(STAGING_DIR)/usr/include/X11" \
|
|
|
|
--x-libraries="$(STAGING_DIR)/usr/lib/" \
|
|
|
|
--disable-gtktest \
|
|
|
|
)
|
|
|
|
endef
|
2007-10-09 22:08:44 +00:00
|
|
|
|
2008-10-08 15:48:39 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/{include,lib/pkgconfig}
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/* \
|
|
|
|
$(1)/usr/include/
|
2007-10-09 22:08:44 +00:00
|
|
|
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{la,so*,a} \
|
2008-10-08 15:48:39 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2007-10-09 22:08:44 +00:00
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
$(INSTALL_DIR) $(2)/bin
|
2008-10-08 15:48:39 +00:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/imlib2-config \
|
|
|
|
$(2)/bin/
|
|
|
|
$(SED) \
|
|
|
|
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
|
|
|
$(2)/bin/imlib2-config
|
2007-10-09 22:08:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/imlib2/install
|
2008-10-08 15:48:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/imlib2/{loaders,filters}
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-10-08 15:48:39 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/imlib2/filters/*.so* \
|
|
|
|
$(1)/usr/lib/imlib2/filters
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/imlib2/loaders/*.so* \
|
|
|
|
$(1)/usr/lib/imlib2/loaders
|
2007-10-09 22:08:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,imlib2))
|