1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/gd/trunk/Makefile

Revision 16916, 3.3 KB (checked in by dmichelsen, 4 months ago)

WHOLE TREE: Explicitly set GARTYPE to current default 'v2'

Line 
1NAME = gd
2VERSION = 2.0.36RC1
3CATEGORIES = lib
4GARTYPE = v2
5
6DESCRIPTION = A library used for dynamic image creation
7define BLURB
8        GD is an open source code library for the dynamic creation of
9        images by programmers. GD creates PNG, JPEG and GIF images,
10        among other formats. GD is commonly used to generate charts,
11        graphics, thumbnails, and most anything else, on the fly.
12        While not restricted to use on the web, the most common
13        applications of GD involve web site development.
14endef
15
16MASTER_SITES = http://www.libgd.org/releases/
17# Master site down.  This version archived at:  http://www.graphviz.org/pub/tmp/gd-2.0.36RC1.tar.gz
18#     Contact:  ellson@opencsw.org
19DISTFILES  = $(NAME)-$(VERSION).tar.gz
20
21PATCHFILES += gdkanji.c.patch
22
23#GARCOMPILER = GCC4
24
25PACKAGES = CSWgd
26CATALOGNAME_CSWgd = gd
27SPKG_DESC_CSWgd = Utilities facilitating libgd for dynamic image creation
28# PKGFILES is catchall
29RUNTIME_DEP_pkgs_CSWgd = CSWlibgd2
30RUNTIME_DEP_PKGS_CSWgd += CSWiconv
31RUNTIME_DEP_PKGS_CSWgd += CSWpng
32RUNTIME_DEP_PKGS_CSWgd += CSWjpeg
33RUNTIME_DEP_PKGS_CSWgd += CSWzlib
34RUNTIME_DEP_PKGS_CSWgd += CSWftype2
35RUNTIME_DEP_PKGS_CSWgd += CSWlibgd2
36RUNTIME_DEP_PKGS_CSWgd += CSWxpm
37RUNTIME_DEP_PKGS_CSWgd += CSWfconfig
38
39PACKAGES += CSWlibgd2
40CATALOGNAME_CSWlibgd2 = libgd2
41SPKG_DESC_CSWlibgd2 = A library used for dynamic image creation providing libgd.so.2
42PKGFILES_CSWlibgd2 = $(call baseisadirs,$(libdir),libgd\.so\.2(\.\d+)*)
43RUNTIME_DEP_PKGS_CSWlibgd2 += CSWfconfig
44RUNTIME_DEP_PKGS_CSWlibgd2 += CSWftype2
45RUNTIME_DEP_PKGS_CSWlibgd2 += CSWiconv
46RUNTIME_DEP_PKGS_CSWlibgd2 += CSWjpeg
47RUNTIME_DEP_PKGS_CSWlibgd2 += CSWpng
48RUNTIME_DEP_PKGS_CSWlibgd2 += CSWxpm
49RUNTIME_DEP_PKGS_CSWlibgd2 += CSWzlib
50
51PACKAGES += CSWlibgd-dev
52CATALOGNAME_CSWlibgd-dev = libgd_dev
53SPKG_DESC_CSWlibgd-dev = Development files for libgd.so
54PKGFILES_CSWlibgd-dev = $(PKGFILES_DEVEL)
55RUNTIME_DEP_PKGS_CSWlibgd-dev = CSWlibgd2
56
57UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
58
59CSW_DEFAULT_FONTPATH = $(sharedstatedir)/fonts/truetype
60
61# This is evaluated twice, quote properly
62EXTRA_CPPFLAGS = -DDEFAULT_FONTPATH=\\\"$(CSW_DEFAULT_FONTPATH)\\\"
63
64BUILD64_LIBS_ONLY = 1
65STRIP_LIBTOOL = 1
66
67CONFIGURE_ARGS  = $(DIRPATHS)
68CONFIGURE_ARGS += --with-libiconv-prefix=$(prefix)
69CONFIGURE_ARGS += --with-png=$(prefix)
70CONFIGURE_ARGS += --with-freetype=$(prefix)
71CONFIGURE_ARGS += --with-fontconfig=$(prefix)
72CONFIGURE_ARGS += --with-jpeg=$(prefix)
73CONFIGURE_ARGS += --with-xpm=$(prefix)
74CONFIGURE_ARGS += --disable-fast-install
75
76# GD does not have a testsuite
77TEST_SCRIPTS =
78
79# This is ok as there are a number of search pathes for fonts in there.
80# We made sure that the $CSW_DEFAULT_FONTPATH is the first one in the list.
81CHECKPKG_OVERRIDES_CSWlibgd-dev += file-with-bad-content|/usr/share|root/opt/csw/include/gd.h
82
83include gar/category.mk
84
85# Make sure GDFONTPATH is set correctly
86post-extract-modulated:
87        perl -pi -e 's,/usr/share/fonts/truetype,$(CSW_DEFAULT_FONTPATH),' \
88                $(WORKSRC)/gdtestft.c \
89                $(WORKSRC)/annotate.c
90        perl -pi -e 's,(DEFAULT_FONTPATH\s+"),\1$(CSW_DEFAULT_FONTPATH):,' \
91                $(WORKSRC)/gd.h
92        @$(MAKECOOKIE)
93
94# The shipped libtool doesn't know about Sun Studio C++ compiler 'CC'
95pre-configure-modulated:
96#       grm -f $(WORKSRC)/config/ltmain.sh
97#       gcp /opt/csw/share/libtool/config/ltmain.sh $(WORKSRC)/config/ltmain.sh
98#       cd $(WORKSRC) && aclocal && automake
99        @$(MAKECOOKIE)
100
Note: See TracBrowser for help on using the browser.