| 1 | NAME = gd |
|---|
| 2 | VERSION = 2.0.36RC1 |
|---|
| 3 | CATEGORIES = lib |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = A library used for dynamic image creation |
|---|
| 7 | define 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. |
|---|
| 14 | endef |
|---|
| 15 | |
|---|
| 16 | MASTER_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 |
|---|
| 19 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 20 | |
|---|
| 21 | PATCHFILES += gdkanji.c.patch |
|---|
| 22 | |
|---|
| 23 | #GARCOMPILER = GCC4 |
|---|
| 24 | |
|---|
| 25 | PACKAGES = CSWgd |
|---|
| 26 | CATALOGNAME_CSWgd = gd |
|---|
| 27 | SPKG_DESC_CSWgd = Utilities facilitating libgd for dynamic image creation |
|---|
| 28 | # PKGFILES is catchall |
|---|
| 29 | RUNTIME_DEP_pkgs_CSWgd = CSWlibgd2 |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWgd += CSWiconv |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWgd += CSWpng |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWgd += CSWjpeg |
|---|
| 33 | RUNTIME_DEP_PKGS_CSWgd += CSWzlib |
|---|
| 34 | RUNTIME_DEP_PKGS_CSWgd += CSWftype2 |
|---|
| 35 | RUNTIME_DEP_PKGS_CSWgd += CSWlibgd2 |
|---|
| 36 | RUNTIME_DEP_PKGS_CSWgd += CSWxpm |
|---|
| 37 | RUNTIME_DEP_PKGS_CSWgd += CSWfconfig |
|---|
| 38 | |
|---|
| 39 | PACKAGES += CSWlibgd2 |
|---|
| 40 | CATALOGNAME_CSWlibgd2 = libgd2 |
|---|
| 41 | SPKG_DESC_CSWlibgd2 = A library used for dynamic image creation providing libgd.so.2 |
|---|
| 42 | PKGFILES_CSWlibgd2 = $(call baseisadirs,$(libdir),libgd\.so\.2(\.\d+)*) |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWfconfig |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWftype2 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWiconv |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWjpeg |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWpng |
|---|
| 48 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWxpm |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWlibgd2 += CSWzlib |
|---|
| 50 | |
|---|
| 51 | PACKAGES += CSWlibgd-dev |
|---|
| 52 | CATALOGNAME_CSWlibgd-dev = libgd_dev |
|---|
| 53 | SPKG_DESC_CSWlibgd-dev = Development files for libgd.so |
|---|
| 54 | PKGFILES_CSWlibgd-dev = $(PKGFILES_DEVEL) |
|---|
| 55 | RUNTIME_DEP_PKGS_CSWlibgd-dev = CSWlibgd2 |
|---|
| 56 | |
|---|
| 57 | UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz |
|---|
| 58 | |
|---|
| 59 | CSW_DEFAULT_FONTPATH = $(sharedstatedir)/fonts/truetype |
|---|
| 60 | |
|---|
| 61 | # This is evaluated twice, quote properly |
|---|
| 62 | EXTRA_CPPFLAGS = -DDEFAULT_FONTPATH=\\\"$(CSW_DEFAULT_FONTPATH)\\\" |
|---|
| 63 | |
|---|
| 64 | BUILD64_LIBS_ONLY = 1 |
|---|
| 65 | STRIP_LIBTOOL = 1 |
|---|
| 66 | |
|---|
| 67 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 68 | CONFIGURE_ARGS += --with-libiconv-prefix=$(prefix) |
|---|
| 69 | CONFIGURE_ARGS += --with-png=$(prefix) |
|---|
| 70 | CONFIGURE_ARGS += --with-freetype=$(prefix) |
|---|
| 71 | CONFIGURE_ARGS += --with-fontconfig=$(prefix) |
|---|
| 72 | CONFIGURE_ARGS += --with-jpeg=$(prefix) |
|---|
| 73 | CONFIGURE_ARGS += --with-xpm=$(prefix) |
|---|
| 74 | CONFIGURE_ARGS += --disable-fast-install |
|---|
| 75 | |
|---|
| 76 | # GD does not have a testsuite |
|---|
| 77 | TEST_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. |
|---|
| 81 | CHECKPKG_OVERRIDES_CSWlibgd-dev += file-with-bad-content|/usr/share|root/opt/csw/include/gd.h |
|---|
| 82 | |
|---|
| 83 | include gar/category.mk |
|---|
| 84 | |
|---|
| 85 | # Make sure GDFONTPATH is set correctly |
|---|
| 86 | post-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' |
|---|
| 95 | pre-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 | |
|---|