diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-07-01 14:11:22 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-07-01 14:11:22 +0000 |
commit | 49dd7471848dc57ed212f632d6656b7f0d51e40f (patch) | |
tree | 7c6c42ba28e39e1df562b591789110bc2b5499a6 /graphics/gd1/Makefile | |
parent | update games/adgali: 0.1.0 --> 0.2.2 (diff) |
update graphics/gd: 1.8.4 --> 2.0.15
PR: 53582
Submitted by: KATO Tsuguru <tkato@prontomail.com>
Notes
Notes:
svn path=/head/; revision=83994
Diffstat (limited to 'graphics/gd1/Makefile')
-rw-r--r-- | graphics/gd1/Makefile | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/graphics/gd1/Makefile b/graphics/gd1/Makefile index 09e7f0ddae4a..00c93c5acbf6 100644 --- a/graphics/gd1/Makefile +++ b/graphics/gd1/Makefile @@ -6,52 +6,48 @@ # PORTNAME= gd -PORTVERSION= 1.8.4 -PORTREVISION= 6 +PORTVERSION= 2.0.15 CATEGORIES+= graphics MASTER_SITES= http://www.boutell.com/gd/http/ \ ftp://ftp.boutell.com/pub/boutell/gd/ \ - http://virtual-estates.net/~mi/port-stuff/ \ ${MASTER_SITE_RINGSERVER} MASTER_SITE_SUBDIR= graphics/gd -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} gd_gif_in.c.bz2 -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER?= ports@FreeBSD.org COMMENT?= A graphics library for fast image creation -BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 # XXX -LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ - png:${PORTSDIR}/graphics/png \ - freetype:${PORTSDIR}/print/freetype2 -.if !exists(/usr/bin/bzip2) -BUILD_DEPENDS+= bzip2:${PORTSDIR}/archivers/bzip2 -.endif - -FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ + png.5:${PORTSDIR}/graphics/png \ + freetype.9:${PORTSDIR}/print/freetype2 -USE_REINPLACE= yes -MAKE_ENV= FREETYPE_CONFIG="${FREETYPE_CONFIG}" +MAKE_ENV= WRKSRC="${WRKSRC}" +MAKEFILE= ${FILESDIR}/Makefile.bsd INSTALLS_SHLIB= yes -.if defined(WITH_X11) +.if !defined(WITHOUT_X11) USE_XPM= yes .endif +.if defined(HAVE_UNISYS_LICENSE) || \ + (defined(USA_RESIDENT) && ${USA_RESIDENT} == "YES") +WITH_LZW= yes +.endif + +.if defined(GD_FONTS) +USE_PERL5_BUILD= yes +SCRIPTS_ENV+= GD_FONTS="${GD_FONTS}" +.endif + pre-everything:: -.if !defined(WITH_X11) - @${ECHO_MSG} - @${ECHO_MSG} "If you want to compile with Xpm support," - @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_X11=yes\"" - @${ECHO_MSG} +.if !defined(WITH_LZW) + @${ECHO_MSG} "************************************************************" + @${ECHO_MSG} "* If you live outside US and Canada, you can define *" + @${ECHO_MSG} "* WITH_LZW to enable GIF compression support. *" + @${ECHO_MSG} "************************************************************" .endif post-extract: - @${BZIP2_CMD} -dc ${DISTDIR}/${DIST_SUBDIR}/gd_gif_in.c.bz2 \ - > ${WRKSRC}/gd_gif_in.c - -post-patch: - @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/gdcache.h + @${CP} ${FILESDIR}/g* ${WRKSRC} post-install: .if !defined(NOPORTDOCS) |