redefines about which buildlink.mk files would care is BUILDLINK_X11_DIR, which points to the location of the X11R6 hierarchy used during building. If x11.buildlink.mk isn't included, then BUILDLINK_X11_DIR defaults to ${X11BASE} (set in bsd.pkg.mk), so its value is always safe to use. Remove the ifdefs surrounding the use of BUILDLINK_X11_DIR in tk/buildlink.mk and revert changes to move x11.buildlink.mk before the other buildlink.mk files.
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.33 2001/10/24 22:11:00 jlam Exp $
|
|
# FreeBSD Id: Makefile,v 1.2 1997/02/14 07:55:45 asami Exp
|
|
#
|
|
|
|
DISTNAME= gd-1.8.3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.boutell.com/gd/http/
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://www.boutell.com/gd/
|
|
COMMENT= graphics library for fast PNG creation
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
USE_LIBTOOL= YES
|
|
REPLACE_PERL= bdftogd
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
MAKE_ENV+= EXTRA_LIBS="-lsocket -lnsl"
|
|
.endif
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/freetype # freetype.h
|
|
CPPFLAGS+= -I${BUILDLINK_DIR}/include/X11 # xpm.h
|
|
|
|
# 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= 9
|
|
MAKE_ENV+= GD_MAJOR="${GD_MAJOR}" GD_MINOR="${GD_MINOR}" COMPILER="${CC}"
|
|
|
|
.include "../../devel/zlib/buildlink.mk"
|
|
.include "../../graphics/freetype-lib/buildlink.mk"
|
|
.include "../../graphics/jpeg/buildlink.mk"
|
|
.include "../../graphics/png/buildlink.mk"
|
|
.include "../../graphics/xpm/buildlink.mk"
|
|
.include "../../mk/x11.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|