################################################################################
# Embtoolkit
# Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
################################################################################
#
# \file imlib2.mk
# \brief imlib2.mk of Embtoolkit
# \author Abdoulaye Walsimou GAYE
# \date June 2010
################################################################################
IMLIB2_NAME := imlib2
IMLIB2_VERSION := $(call embtk_get_pkgversion,imlib2)
IMLIB2_SITE := http://downloads.sourceforge.net/project/enlightenment/imlib2-src/$(IMLIB2_VERSION)
IMLIB2_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
IMLIB2_PACKAGE := imlib2-$(IMLIB2_VERSION).tar.gz
IMLIB2_SRC_DIR := $(embtk_pkgb)/imlib2-$(IMLIB2_VERSION)
IMLIB2_BUILD_DIR := $(embtk_pkgb)/imlib2-$(IMLIB2_VERSION)
IMLIB2_BINS = imlib2_bumpmap imlib2_colorspace imlib2-config \
imlib2_conv imlib2_grab imlib2_poly imlib2_show \
imlib2_test imlib2_view
IMLIB2_SBINS =
IMLIB2_INCLUDES = Imlib2.h
IMLIB2_LIBS = imlib2 libImlib2.*
IMLIB2_PKGCONFIGS = imlib2.pc
IMLIB2_DEPS := libpng_install freetype_install libjpeg_install
define embtk_postinstall_imlib2
$(Q)mkdir -p $(embtk_rootfs)/usr/$(LIBDIR)
$(Q)-cp -R $(embtk_sysroot)/usr/$(LIBDIR)/imlib2 $(embtk_rootfs)/usr/$(LIBDIR)
$(Q)-mkdir -p $(embtk_rootfs)/usr/share
$(Q)-cp -R $(embtk_sysroot)/usr/share/imlib2 $(embtk_rootfs)/usr/share
endef