SF.net SVN: gar:[22474] csw/mgar/pkg/gd/branches/nim/Makefile
mattdarcy at users.sourceforge.net
mattdarcy at users.sourceforge.net
Tue Nov 12 10:23:40 CET 2013
Revision: 22474
http://gar.svn.sourceforge.net/gar/?rev=22474&view=rev
Author: mattdarcy
Date: 2013-11-12 09:23:39 +0000 (Tue, 12 Nov 2013)
Log Message:
-----------
Re-built Makefile for the newer GD version
Modified Paths:
--------------
csw/mgar/pkg/gd/branches/nim/Makefile
Modified: csw/mgar/pkg/gd/branches/nim/Makefile
===================================================================
--- csw/mgar/pkg/gd/branches/nim/Makefile 2013-11-12 08:41:15 UTC (rev 22473)
+++ csw/mgar/pkg/gd/branches/nim/Makefile 2013-11-12 09:23:39 UTC (rev 22474)
@@ -1,5 +1,5 @@
-NAME = gd
-VERSION = 2.0.36RC1
+NAME = gd
+VERSION = 2.1.0
GARTYPE = bts
DESCRIPTION = A library used for dynamic image creation
@@ -12,45 +12,51 @@
applications of GD involve web site development.
endef
-MASTER_SITES = http://www.libgd.org/releases/
-# Master site down. This version archived at: http://www.graphviz.org/pub/tmp/gd-2.0.36RC1.tar.gz
-# Contact: ellson at opencsw.org
-DISTFILES = $(NAME)-$(VERSION).tar.gz
+MASTER_SITES = https://bitbucket.org/libgd/gd-libgd/downloads/
+DISTNAME = lib$(NAME)-$(VERSION)
+DISTFILES = $(DISTNAME).tar.xz
-PATCHFILES += gdkanji.c.patch
+GARCOMPILER = GCC4
+BUILD_DEP_PKGS += CSWpkgconfig
+
PACKAGES = NIMOSSgd
-CATALOGNAME_NIMOSSgd = gd
-SPKG_DESC_NIMOSSgd = Utilities facilitating libgd for dynamic image creation
+CATALOGNAME_CSWgd = gd
+SPKG_DESC_CSWgd = Utilities facilitating libgd for dynamic image creation
# PKGFILES is catchall
-RUNTIME_DEP_PKGS_NIMOSSgd += NIMOSSlibgd2
+RUNTIME_DEP_PKGS_CSWgd += NIMOSSlibgd3
-PACKAGES += NIMOSSlibgd2
-CATALOGNAME_NIMOSSlibgd2 = libgd2
-SPKG_DESC_NIMOSSlibgd2 = A library used for dynamic image creation providing libgd.so.2
-PKGFILES_NIMOSSlibgd2 += $(call pkgfiles_lib,libgd.so.2)
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibfontconfig1
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibfreetype6
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibiconv2
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibjpeg7
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibpng15-15
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibxpm4
-RUNTIME_DEP_PKGS_NIMOSSlibgd2 += NIMOSSlibz1
+PACKAGES += NIMOSSlibgd3
+CATALOGNAME_CSWlibgd3 = libgd3
+SPKG_DESC_CSWlibgd3 = A library used for dynamic image creation providing libgd.so.3
+PKGFILES_CSWlibgd3 += $(call pkgfiles_lib,libgd.so.3)
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibfontconfig1
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibfreetype6
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibiconv2
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibjpeg7
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibpng15-15
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibxpm4
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibz1
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibgcc-s1
+RUNTIME_DEP_PKGS_CSWlibgd3 += NIMOSSlibtiff5
PACKAGES += NIMOSSlibgd-dev
-CATALOGNAME_NIMOSSlibgd-dev = libgd_dev
-SPKG_DESC_NIMOSSlibgd-dev = Development files for libgd.so.2
-PKGFILES_NIMOSSlibgd-dev += $(PKGFILES_DEVEL)
-RUNTIME_DEP_PKGS_NIMOSSlibgd-dev = NIMOSSlibgd2
+CATALOGNAME_CSWlibgd-dev = libgd_dev
+SPKG_DESC_CSWlibgd-dev = Development files for libgd.so.3
+PKGFILES_CSWlibgd-dev += $(PKGFILES_DEVEL)
+RUNTIME_DEP_PKGS_CSWlibgd-dev = NIMOSSlibgd3
-UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+CSW_DEFAULT_FONTPATH = $(sharedstatedir)/fonts/truetype
-NIMOSS_DEFAULT_FONTPATH = $(sharedstatedir)/fonts/truetype
-
# This is evaluated twice, quote properly
-EXTRA_CPPFLAGS = -DDEFAULT_FONTPATH=\\\"$(NIMOSS_DEFAULT_FONTPATH)\\\"
+EXTRA_CPPFLAGS = -DDEFAULT_FONTPATH=\\\"$(CSW_DEFAULT_FONTPATH)\\\"
-BUILD64_LIBS_ONLY = 1
+# For the success of the test for iconv
+EXTRA_LINKER_FLAGS = -liconv
+
+BUILD64 = 1
+ISAEXEC = 1
+
STRIP_LIBTOOL = 1
CONFIGURE_ARGS = $(DIRPATHS)
@@ -65,25 +71,20 @@
# GD does not have a testsuite
TEST_SCRIPTS =
-# This is ok as there are a number of search pathes for fonts in there.
-# We made sure that the $NIMOSS_DEFAULT_FONTPATH is the first one in the list.
-CHECKPKG_OVERRIDES_NIMOSSlibgd-dev += file-with-bad-content|/usr/share|root/opt/csw/nimoss/include/gd.h
+# This is ok as it comes from a default error message
+CHECKPKG_OVERRIDES_CSWgd += file-with-bad-content|/usr/share|root/opt/csw/bin/amd64/annotate
+CHECKPKG_OVERRIDES_CSWgd += file-with-bad-content|/usr/share|root/opt/csw/bin/pentium_pro/annotate
+CHECKPKG_OVERRIDES_CSWgd += file-with-bad-content|/usr/share|root/opt/csw/bin/sparcv8plus/annotate
+CHECKPKG_OVERRIDES_CSWgd += file-with-bad-content|/usr/share|root/opt/csw/bin/sparcv9/annotate
include gar/category.mk
# Make sure GDFONTPATH is set correctly
post-extract-modulated:
- perl -pi -e 's,/usr/share/fonts/truetype,$(NIMOSS_DEFAULT_FONTPATH),' \
+ perl -pi -e 's,/usr/share/fonts/truetype,$(CSW_DEFAULT_FONTPATH),' \
$(WORKSRC)/gdtestft.c \
$(WORKSRC)/annotate.c
- perl -pi -e 's,(DEFAULT_FONTPATH\s+"),\1$(NIMOSS_DEFAULT_FONTPATH):,' \
+ perl -pi -e 's,(DEFAULT_FONTPATH\s+"),\1$(CSW_DEFAULT_FONTPATH):,' \
$(WORKSRC)/gd.h
@$(MAKECOOKIE)
-# The shipped libtool doesn't know about Sun Studio C++ compiler 'CC'
-pre-configure-modulated:
-# grm -f $(WORKSRC)/config/ltmain.sh
-# gcp /opt/csw/nimoss/share/libtool/config/ltmain.sh $(WORKSRC)/config/ltmain.sh
-# cd $(WORKSRC) && aclocal && automake
- @$(MAKECOOKIE)
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list