summaryrefslogtreecommitdiff
path: root/packages/graphics/imlib2/imlib2.mk
blob: fcd757052e1b01d1730ac3e1132f5f3c4b69a4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
################################################################################
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
#
# \file         imlib2.mk
# \brief	imlib2.mk of Embtoolkit
# \author       Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \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