summaryrefslogtreecommitdiff
path: root/packages/graphics/libtiff/libtiff.mk
blob: 2457cfa072fe3ece720a32e7fb4892a71c7402c7 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
################################################################################
# Embtoolkit
# Copyright(C) 2009-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         libtiff.mk
# \brief	libtiff.mk of Embtoolkit
# \author       Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date         December 2009
################################################################################

LIBTIFF_NAME		:= libtiff
LIBTIFF_VERSION		:= $(call embtk_get_pkgversion,libtiff)
LIBTIFF_SITE		:= ftp://ftp.remotesensing.org/pub/libtiff
LIBTIFF_SITE_MIRROR3	:= ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
LIBTIFF_PATCH_SITE	:= ftp://ftp.embtoolkit.org/embtoolkit.org/libtiff/$(LIBTIFF_VERSION)
LIBTIFF_PACKAGE		:= tiff-$(LIBTIFF_VERSION).tar.gz
LIBTIFF_SRC_DIR		:= $(PACKAGES_BUILD)/tiff-$(LIBTIFF_VERSION)
LIBTIFF_BUILD_DIR	:= $(PACKAGES_BUILD)/tiff-$(LIBTIFF_VERSION)

LIBTIFF_BINS =	vbmp2tiff fax2tiff pal2rgb  ras2tiff rgb2ycbcr tiff2bw tiff2ps \
		tiffcmp tiffcrop tiffdump tiffmedian tiffsplit fax2ps gif2tiff \
		ppm2tiff raw2tiff thumbnail tiff2pdf tiff2rgba tiffcp \
		tiffdither tiffinfo tiffset bmp2tiff
LIBTIFF_SBINS		=
LIBTIFF_INCLUDES	= tiffconf.h tiff.h tiffio.h tiffio.hxx tiffvers.h
LIBTIFF_LIBS		= libtiff*
LIBTIFF_PKGCONFIGS	=

LIBTIFF_CONFIGURE_OPTS	:= --disable-cxx --program-prefix=""

libtiff_install:
	$(call embtk_install_pkg,libtiff)

libtiff_clean:
	$(call embtk_cleanup_pkg,libtiff)

#
# libtiff for host development machine
#
LIBTIFF_HOST_NAME		:= $(LIBTIFF_NAME)
LIBTIFF_HOST_VERSION		:= $(LIBTIFF_VERSION)
LIBTIFF_HOST_SITE		:= $(LIBTIFF_SITE)
LIBTIFF_HOST_SITE_MIRROR1	:= $(LIBTIFF_SITE_MIRROR1)
LIBTIFF_HOST_SITE_MIRROR2	:= $(LIBTIFF_SITE_MIRROR2)
LIBTIFF_HOST_SITE_MIRROR3	:= $(LIBTIFF_SITE_MIRROR3)
LIBTIFF_HOST_PATCH_SITE		:= $(LIBTIFF_PATCH_SITE)
LIBTIFF_HOST_PACKAGE		:= $(LIBTIFF_PACKAGE)
LIBTIFF_HOST_SRC_DIR		:= $(TOOLS_BUILD)/tiff-$(LIBTIFF_VERSION)
LIBTIFF_HOST_BUILD_DIR		:= $(TOOLS_BUILD)/tiff-$(LIBTIFF_VERSION)

LIBTIFF_HOST_CONFIGURE_OPTS	:= --disable-cxx --program-prefix=""

libtiff_host_install:
	$(call embtk_install_hostpkg,libtiff_host)

#
# Common for host and target
#
download_libtiff download_libtiff_host:
	$(call embtk_download_pkg,libtiff)