pkgsrc/graphics/freetype2/Makefile
jlam 3b65bde2f7 USE_CONFIG_WRAPPER is automatically set if USE_BUILDLINK_ONLY is defined,
so remove it from package Makefiles.  Also move the inclusion of the
buildlink.mk files to the end of the Makefile to just before bsd.pkg.mk
to ensure that any Makefile settings occur before the buildlink.mk files.
2001-06-29 04:54:49 +00:00

52 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2001/06/29 04:54:54 jlam Exp $
#
DISTNAME= freetype-2.0.3
PKGNAME= freetype2-2.0.3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/} \
http://freetype.sourceforge.net/pub/freetype/freetype2/ \
http://gd.tuwien.ac.at/publishing/freetype/freetype2/ \
http://ftp.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/ \
http://ftp.sunet.se/pub/text-processing/freetype/freetype2/ \
ftp://www.nigels.com/pub/freetype/freetype2/
MAINTAINER= rh@netbsd.org
HOMEPAGE= http://www.freetype.org/
COMMENT= font rendering engine and library API
USE_BUILDLINK_ONLY= YES
REPLACE_BUILDLINK= freetype-config
CHECK_FREETYPE2= YES
USE_GMAKE= YES
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/builds/unix/ltconfig
.include "../../mk/bsd.prefs.mk"
.if ${HAVE_BUILTIN_FREETYPE2} != "NO"
IGNORE= "FreeType2 has already been installed as part of XFree86-4.x"
.endif
post-patch:
${RM} -f ${LTCONFIG_OVERRIDE} ; \
${ECHO} "${RM} -f libtool; ${LN} -s ${LIBTOOL} libtool" \
> ${LTCONFIG_OVERRIDE} ; \
${CHMOD} +x ${LTCONFIG_OVERRIDE} ; \
do-configure:
cd ${WRKSRC}/builds/unix && ${SETENV} \
CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
INSTALL="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} \
${CONFIGURE_ARGS} \
--includedir=${PREFIX}/include
cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
.include "../../mk/bsd.pkg.mk"