diff options
author | billf <billf@FreeBSD.org> | 2000-03-11 02:30:44 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2000-03-11 02:30:44 +0000 |
commit | 1dabecf58f810292d7674349d5514743e8d1b692 (patch) | |
tree | c75ca6fa327171c7a71e17d88f96239a2d67f9ea /graphics/gd2 | |
parent | d3272852a6812e440e3118c23b76cdd785643130 (diff) | |
download | FreeBSD-ports-1dabecf58f810292d7674349d5514743e8d1b692.zip FreeBSD-ports-1dabecf58f810292d7674349d5514743e8d1b692.tar.gz |
Upgrade to gd 1.8, with shiny new jpeg support.
Diffstat (limited to 'graphics/gd2')
-rw-r--r-- | graphics/gd2/Makefile | 7 | ||||
-rw-r--r-- | graphics/gd2/distinfo | 2 | ||||
-rw-r--r-- | graphics/gd2/files/patch-ac | 48 |
3 files changed, 31 insertions, 26 deletions
diff --git a/graphics/gd2/Makefile b/graphics/gd2/Makefile index 429848e..bc98b5e 100644 --- a/graphics/gd2/Makefile +++ b/graphics/gd2/Makefile @@ -1,19 +1,20 @@ # New ports collection makefile for: gd -# Version required: 1.7.3 +# Version required: 1.8 # Date created: 27 Mar 1998 # Whom: jeff@cetlink.net # # $FreeBSD$ # -DISTNAME= gd-1.7.3 +DISTNAME= gd-1.8 CATEGORIES= graphics MASTER_SITES= http://www.boutell.com/gd/http/ \ ftp://ftp.boutell.com/pub/boutell/gd/ MAINTAINER= billf@FreeBSD.org -LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png +LIB_DEPENDS= png.3:${PORTSDIR}/graphics/png \ + jpeg.9:${PORTSDIR}/graphics/jpeg .if defined(WANT_X11) LIB_DEPENDS+= ttf.4:${PORTSDIR}/print/freetype \ Xpm.4:${PORTSDIR}/graphics/xpm diff --git a/graphics/gd2/distinfo b/graphics/gd2/distinfo index f7c74e8..5e68a3d 100644 --- a/graphics/gd2/distinfo +++ b/graphics/gd2/distinfo @@ -1 +1 @@ -MD5 (gd-1.7.3.tar.gz) = c3690ae8c2cc0710e1777c697b876297 +MD5 (gd-1.8.tar.gz) = 81eba35290c2d38beb3aa93ce845e9fb diff --git a/graphics/gd2/files/patch-ac b/graphics/gd2/files/patch-ac index 3ebb2f9..d7f41e3 100644 --- a/graphics/gd2/files/patch-ac +++ b/graphics/gd2/files/patch-ac @@ -1,6 +1,6 @@ ---- Makefile.orig Wed Oct 13 17:20:11 1999 -+++ Makefile Wed Feb 2 21:43:18 2000 -@@ -3,22 +3,24 @@ +--- Makefile.orig Wed Mar 8 14:54:37 2000 ++++ Makefile Fri Mar 10 21:09:49 2000 +@@ -3,35 +3,45 @@ #If you do not have gcc, change the setting for COMPILER, but you must #use an ANSI standard C compiler (NOT the old SunOS 4.1.3 cc #compiler; get gcc if you are still using it). @@ -17,39 +17,43 @@ -INSTALL=install +#INSTALL=install - #If you don't have FreeType and/or Xpm installed, including the + #If you don't have FreeType, libjpeg and/or Xpm installed, including the #header files, uncomment this (default). --CFLAGS=-O -+#CFLAGS=-O - #If you do have FreeType and/or Xpm fully installed, uncomment a + #CFLAGS=-O + #If you do have FreeType, libjpeg and/or Xpm fully installed, uncomment a #variation of this and comment out the line above. See also LIBS below. --#CFLAGS=-O -DHAVE_XPM -DHAVE_LIBTTF +-CFLAGS=-O -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF +- +.if defined(WANT_X11) -+CFLAGS+=-DHAVE_XPM -DHAVE_LIBTTF ++CFLAGS+=-DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF ++.else ++CFLAGS+=-DHAVE_JPEG +.endif - ++ #If you don't have FreeType and/or Xpm fully installed, uncomment this #(default). -@@ -27,11 +29,16 @@ - #If you do have FreeType and/or Xpm fully installed, uncomment a +-#LIBS=-lm -lgd -lpng -lz ++LIBS=-lm -lgd -lpng -lz -ljpeg + + #If you do have FreeType, JPEG and/or Xpm fully installed, uncomment a #variation of this and comment out the line above. Note that #Xpm requires X11. See also CFLAGS above. --#LIBS=-lm -lgd -lpng -lz -lttf -lXpm -lX11 +.if defined(WANT_X11) -+LIBS=-lm -lgd -lpng -lz -lttf -lXpm -lX11 + LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11 +.endif - #Typical install locations for freetype, zlib, xpm and libpng header files. + #Typical install locations for freetype, zlib, xpm, libjpeg and libpng header files. #If yours are somewhere else, change this. -INCLUDEDIRS=-I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 +CFLAGS+=-I$(LOCALBASE)/include +.if defined(WANT_X11) +CFLAGS+=-I$(LOCALBASE)/include/freetype -I$(X11BASE)/include -I$(X11BASE)/include/X11 +.endif ++ #Typical install locations for freetype, zlib, xpm and libpng libraries. #If yours are somewhere else, other than a standard location -@@ -39,16 +46,19 @@ +@@ -39,16 +49,19 @@ #-L. as this allows the gd library itself to be found. #Put -L. first so that old versions of the gd library elsewhere #on your system can't cause conflicts while building a new one. @@ -73,7 +77,7 @@ # # -@@ -58,34 +68,41 @@ +@@ -58,34 +71,41 @@ VERSION=1.7 @@ -135,22 +139,22 @@ gddemo: gddemo.o libgd.a $(CC) gddemo.o -o gddemo $(LIBDIRS) $(LIBS) -@@ -120,16 +137,19 @@ +@@ -120,16 +140,19 @@ gdtestttf: gdtestttf.o libgd.a $(CC) gdtestttf.o -o gdtestttf $(LIBDIRS) $(LIBS) -libgd.a: gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_io_file.o gd_ss.o \ -+OBJS=gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_io_file.o gd_ss.o \ - gd_io_ss.o gd_png.o gdxpm.o gdfontt.o gdfonts.o gdfontmb.o gdfontl.o \ ++OBJS= gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_io_file.o gd_ss.o \ + gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o gdfontt.o gdfonts.o gdfontmb.o gdfontl.o \ - gdfontg.o gdtables.o gdttf.o gdcache.o gdkanji.o \ - gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h + gdfontg.o gdtables.o gdttf.o gdcache.o gdkanji.o -+INCS=gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h ++INCS= gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h + +libgd.a: $(INCS) $(OBJS) rm -f libgd.a - $(AR) rc libgd.a gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o \ -- gd_io_file.o gd_ss.o gd_io_ss.o gd_png.o gdxpm.o \ +- gd_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o \ - gdfontt.o gdfonts.o gdfontmb.o gdfontl.o gdfontg.o \ - gdtables.o gdttf.o gdcache.o gdkanji.o + $(AR) rc libgd.a $(OBJS) |