freebsd-ports/graphics/ftgl/Makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

52 lines
1.4 KiB
Makefile

# New ports collection makefile for: ftgl
# Date created: 16 Jan 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= ftgl
PORTVERSION= 2.12
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://opengl.geek.nz/ftgl/
DISTNAME= ${PORTNAME}-${PORTVERSION:C/([[:digit:]])$/.\1/}
MAINTAINER= ports@FreeBSD.org
COMMENT= An OpenGL FreeType fonts rendering library
BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
USE_GMAKE= yes
USE_GL= gl
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME:U}
CONFIGURE_WRKSRC= ${WRKSRC}/unix
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-gl-inc=${LOCALBASE}/include --with-gl-lib=${LOCALBASE}/lib
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
MAKE_ENV= MKDIR="${MKDIR}"
.ifdef (NOPORTDOCS)
DO_INSTALL_DOCS=\#
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PORTDOCS%%|${DO_INSTALL_DOCS}|' \
${BUILD_WRKSRC}/Makefile
post-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR}
@${SED} -e 's|%%CC%%|${CC}|g; \
s|%%CXX%%|${CXX}|g; \
s|%%RM%%|${RM}|g; \
s|%%CFLAGS%%|${CFLAGS}|g; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g; \
s|%%PREFIX%%|${PREFIX}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g' \
<${FILESDIR}/makefile.ex >${EXAMPLESDIR}/makefile
.include <bsd.port.mk>