2001-05-23 22:27:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.32 2001/05/24 02:27:28 kevlo 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
|
2001-04-21 10:47:05 -04:00
|
|
|
NEED_VERSION= 1.384
|
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
|
|
|
|
|
2000-06-22 05:08:16 -04:00
|
|
|
MAKE_FLAGS= COMPILER="${CC}" prefix="${PREFIX}"
|
2001-04-21 10:47:05 -04:00
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR="${WRKINST}"
|
2000-03-15 14:12:47 -05:00
|
|
|
|
2000-06-21 23:48:45 -04:00
|
|
|
FLAVORS= no_x11
|
2000-07-03 01:48:47 -04:00
|
|
|
FLAVOR?=
|
2000-06-21 23:48:45 -04:00
|
|
|
|
2000-07-03 01:48:47 -04:00
|
|
|
.if ${FLAVOR:L} == "no_x11"
|
2000-11-21 15:59:55 -05:00
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS} -DHAVE_JPEG -DHAVE_LIBTTF" \
|
2001-03-07 16:15:06 -05:00
|
|
|
INCLUDEDIRS="-I. -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype" \
|
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"
|
2000-06-21 23:48:45 -04:00
|
|
|
.else
|
2000-09-08 17:32:55 -04:00
|
|
|
USE_X11= Yes
|
2000-06-21 23:48:45 -04:00
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS} -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF" \
|
2001-03-07 16:15:06 -05:00
|
|
|
INCLUDEDIRS="-I. -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype \
|
|
|
|
-I${X11BASE}/include -I${X11BASE}/include/X11" \
|
2000-09-16 07:44:22 -04:00
|
|
|
LIBS="-lgd -lm -lpng -lz -ljpeg -lttf -lXpm -lX11" \
|
|
|
|
LIBDIRS="-L. -L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2000-06-21 23:48:45 -04:00
|
|
|
.endif
|
|
|
|
|
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
|