freebsd-ports/graphics/libgltext/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

70 lines
1.7 KiB
Makefile

# New ports collection makefile for: libgltext
# Date created: 2006-02-20
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= libgltext
PORTVERSION= 0.3.1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/gltext
DISTNAME= gltext-${PORTVERSION}
MAINTAINER= acm@FreeBSD.org
COMMENT= Portable font rendering library for C++
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
USE_AUTOTOOLS= libtool:15
USE_GL= glu
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}"
OPTIONS= EXAMPLES "Compile examples, need libglut" off
.include <bsd.port.pre.mk>
.if defined(WITH_EXAMPLES)
USE_GL= glut
FLAG_EXAMPLES= true
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}-${PORTVERSION}.so \
${PREFIX}/lib/${PORTNAME}.so.0
${INSTALL_DATA} ${WRKSRC}/src/.libs/${PORTNAME}.a \
${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.la \
${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/src/gltext.h ${PREFIX}/include
@cd ${PREFIX}/lib && \
${LN} -s ${PORTNAME}.so.0 ${PORTNAME}.so
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${DOCSDIR}
.endif
.if defined(FLAG_EXAMPLES)
.for DIRE in alpha fps simple sizes
@${MKDIR} ${EXAMPLESDIR}/${DIRE}
@cd ${WRKSRC}/examples && \
${INSTALL_DATA} ${DIRE}/${DIRE} ${DIRE}/${DIRE}.cpp ${EXAMPLESDIR}/${DIRE}
.endfor
@${ECHO_MSG} ""
@${ECHO_MSG} " Examples source and binary on ${EXAMPLESDIR}"
@${ECHO_MSG} ""
.endif
.include <bsd.port.post.mk>