2002-04-26 10:48:19 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2002/04/26 14:48:19 brad Exp $
|
1999-02-21 18:28:05 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.5 1998/06/25 03:13:16 vanilla Exp $
|
|
|
|
|
2001-04-21 10:47:05 -04:00
|
|
|
COMMENT= "graphics library for fast PNG creation"
|
|
|
|
|
2000-06-12 13:25:48 -04:00
|
|
|
DISTNAME= gd-1.8.3
|
1999-02-21 18:28:05 -05:00
|
|
|
CATEGORIES= graphics
|
2002-04-26 10:48:19 -04:00
|
|
|
NEED_VERSION= 1.522
|
1999-07-25 20:36:34 -04:00
|
|
|
MASTER_SITES= http://www.boutell.com/gd/http/ \
|
|
|
|
ftp://ftp.boutell.com/pub/boutell/gd/
|
|
|
|
|
1999-11-26 10:47:53 -05:00
|
|
|
HOMEPAGE= http://www.boutell.com/gd/
|
|
|
|
|
2000-03-24 18:28:01 -05:00
|
|
|
LIB_DEPENDS= jpeg.62::graphics/jpeg \
|
2001-05-23 22:27:06 -04:00
|
|
|
png.2::graphics/png \
|
2001-02-26 11:29:35 -05:00
|
|
|
ttf.1.3::print/freetype
|
1999-02-21 18:28:05 -05:00
|
|
|
|
2000-09-24 03:03:59 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1999-02-21 18:28:05 -05:00
|
|
|
|
2000-03-04 19:44:31 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-03-04 18:58:54 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2000-03-04 19:44:31 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2000-03-04 18:58:54 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-03-25 09:52:21 -05:00
|
|
|
MAKE_FLAGS= COMPILER="${CC}" prefix="${PREFIX}" \
|
|
|
|
CFLAGS="${CFLAGS} -DHAVE_JPEG -DHAVE_LIBTTF" \
|
2002-04-26 10:48:19 -04:00
|
|
|
INCLUDEDIRS="-I. -I${LOCALBASE}/include/libpng -I${LOCALBASE}/include/freetype -I${LOCALBASE}/include" \
|
2000-11-21 15:59:55 -05:00
|
|
|
LIBS="-lgd -lm -lpng -lz -ljpeg -lttf" \
|
2000-09-16 07:44:22 -04:00
|
|
|
LIBDIRS="-L. -L${LOCALBASE}/lib"
|
2002-03-25 09:52:21 -05:00
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR="${WRKINST}"
|
2000-06-21 23:48:45 -04:00
|
|
|
|
2002-02-03 14:45:46 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1999-07-25 20:36:34 -04:00
|
|
|
post-install:
|
2000-01-19 23:11:31 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gd
|
1999-07-25 20:36:34 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/demoin.png ${PREFIX}/share/examples/gd
|
1999-11-26 10:47:53 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/demoout.png ${PREFIX}/share/examples/gd
|
1999-07-25 20:36:34 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/index.html ${PREFIX}/share/examples/gd
|
1999-02-21 18:28:05 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2000-09-16 07:44:22 -04:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
2001-04-21 10:47:05 -04:00
|
|
|
MAKE_ENV+= NO_SHARED_LIBS=Yes
|
2000-09-16 07:44:22 -04:00
|
|
|
.endif
|