2003-08-18 16:15:10 +00:00
|
|
|
# New ports collection makefile for: gd1
|
|
|
|
# Date created: 27 Mar 1998
|
|
|
|
# Whom: jeff@cetlink.net
|
1997-02-13 14:51:45 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1997-02-13 14:51:45 +00:00
|
|
|
#
|
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
PORTNAME= gd
|
2003-07-01 17:16:00 +00:00
|
|
|
PORTVERSION= 1.8.4
|
2003-08-18 16:15:10 +00:00
|
|
|
PORTEPOCH= 2
|
2001-02-12 11:28:36 +00:00
|
|
|
CATEGORIES+= graphics
|
2001-01-16 17:33:20 +00:00
|
|
|
MASTER_SITES= http://www.boutell.com/gd/http/ \
|
2001-02-12 09:34:33 +00:00
|
|
|
${MASTER_SITE_RINGSERVER}
|
|
|
|
MASTER_SITE_SUBDIR= graphics/gd
|
1997-02-13 14:51:45 +00:00
|
|
|
|
2001-08-24 12:17:08 +00:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-07-11 18:16:14 +00:00
|
|
|
COMMENT?= A graphics library for fast creation of images
|
2003-07-01 17:16:00 +00:00
|
|
|
|
2003-07-11 18:16:14 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2003-08-18 16:15:10 +00:00
|
|
|
.if defined(WITH_XPM)
|
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
LIB_DEPENDS+= Xpm:${PORTSDIR}/graphics/xpm
|
|
|
|
CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib -lXpm
|
|
|
|
.else
|
|
|
|
USE_XPM= yes
|
|
|
|
CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM
|
|
|
|
LDFLAGS+= -L${X11BASE}/lib -lXpm -lX11
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
|
|
LATEST_LINK= gd1
|
2001-12-15 14:59:57 +00:00
|
|
|
|
2003-07-11 18:16:14 +00:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile.lib
|
2001-12-15 14:59:57 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-08-24 14:08:11 +00:00
|
|
|
|
2001-12-15 14:59:57 +00:00
|
|
|
pre-everything::
|
2003-08-18 16:15:10 +00:00
|
|
|
.if !defined(WITH_XPM)
|
2003-07-01 17:16:00 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want to compile with Xpm support,"
|
2003-08-18 16:15:10 +00:00
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_XPM=yes\""
|
2003-07-01 17:16:00 +00:00
|
|
|
@${ECHO_MSG}
|
2001-12-15 14:59:57 +00:00
|
|
|
.endif
|
2001-10-26 12:07:02 +00:00
|
|
|
|
2001-08-24 14:08:11 +00:00
|
|
|
post-extract:
|
2003-07-11 18:16:14 +00:00
|
|
|
@${CP} ${FILESDIR}/gd_gif_in.c ${WRKSRC}
|
2001-10-26 12:07:02 +00:00
|
|
|
|
1997-02-13 14:51:45 +00:00
|
|
|
.include <bsd.port.mk>
|