summaryrefslogtreecommitdiff
path: root/graphics/gd/Makefile
blob: ebb58bfb5560a93580895424a5cb4646aa2a442f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.12 2000/02/09 20:20:54 tron Exp $
# FreeBSD Id: Makefile,v 1.2 1997/02/14 07:55:45 asami Exp
#

DISTNAME=       gd-1.7.3
CATEGORIES=	graphics
MASTER_SITES=   http://www.boutell.com/gd/http/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.boutell.com/gd/

USE_LIBTOOL=	yes
USE_X11=	yes

DEPENDS+=	freetype-*:../../graphics/freetype
DEPENDS+=	png>=1.0.3:../../graphics/png
DEPENDS+=	xpm-*:../../graphics/xpm

NO_CONFIGURE=	yes

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
DEPENDS+=	zlib-*:../../devel/zlib
CPPFLAGS+=	-I${LOCALBASE}/include				# zlib.h
.endif

# When the API changes and breaks binary-compatibility with the previous
# version, increment the MAJOR by 1 and reset the MINOR to 0.  Otherwise,
# bump the MINOR when a new version comes out.
#
GD_MAJOR=	1
GD_MINOR=	7
MAKE_ENV+=	GD_MAJOR="${GD_MAJOR}" GD_MINOR="${GD_MINOR}"

MAKE_ENV+=	CPPFLAGS="${CPPFLAGS}"
CPPFLAGS+=	-I${LOCALBASE}/include				# png.h
CPPFLAGS+=	-I${X11BASE}/include -I${X11BASE}/include/X11	# xpm.h

.include "../../mk/bsd.pkg.mk"