2000-06-21 23:48:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2000/06/22 03:48:45 brad Exp $
|
1999-02-21 18:28:05 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.5 1998/06/25 03:13:16 vanilla Exp $
|
|
|
|
|
2000-06-12 13:25:48 -04:00
|
|
|
DISTNAME= gd-1.8.3
|
1999-02-21 18:28:05 -05:00
|
|
|
CATEGORIES= graphics
|
2000-06-12 13:25:48 -04:00
|
|
|
NEED_VERSION= 1.301
|
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 \
|
2000-06-21 23:48:45 -04:00
|
|
|
png.1.6::graphics/png
|
|
|
|
.if !defined(FLAVOR)
|
|
|
|
LIB_DEPENDS+= ttf.1.3::print/freetype
|
|
|
|
.endif
|
1999-02-21 18:28:05 -05:00
|
|
|
|
|
|
|
MAINTAINER= brad@openbsd.org
|
|
|
|
|
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-03-15 14:12:47 -05:00
|
|
|
MAKE_FLAGS= COMPILER="${CC}"
|
|
|
|
|
2000-06-21 23:48:45 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
|
|
|
|
.if defined(FLAVOR) && ${FLAVOR:L} == "no_x11"
|
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS} -DHAVE_JPEG" \
|
|
|
|
LIBS="-lm -lgd -lpng -ljpeg -lz" \
|
|
|
|
INCLUDEDIRS="-I. -I/usr/local/include" \
|
|
|
|
LIBDIRS="-L. -L/usr/local/lib"
|
|
|
|
.else
|
|
|
|
MAKE_FLAGS+= CFLAGS="${CFLAGS} -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF" \
|
|
|
|
LIBS="-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11" \
|
|
|
|
INCLUDEDIRS="-I. -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11" \
|
|
|
|
LIBDIRS="-L. -L/usr/local/lib -L/usr/X11R6/lib"
|
|
|
|
.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>
|
1999-11-26 11:50:03 -05:00
|
|
|
|
2000-03-04 18:58:54 -05:00
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
|
|
|
|
MAKE_ENV= NO_SHARED_LIBS= Yes
|
1999-11-26 11:50:03 -05:00
|
|
|
.endif
|