freebsd-ports/graphics/libgltext/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

63 lines
1.6 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= libgltext
PORTVERSION= 0.3.1
PORTREVISION= 7
CATEGORIES= graphics
MASTER_SITES= SF/gltext/gltext/${PORTVERSION}
DISTNAME= gltext-${PORTVERSION}
MAINTAINER= acm@FreeBSD.org
COMMENT= Portable font rendering library for C++
LIB_DEPENDS= libfreetype.so:print/freetype2
USES= gmake libtool
USE_GL= glu
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= EXAMPLES DOCS
EXAMPLES_DESC= Compile examples, need libglut
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
USE_GL+= glut
USE_XORG= xmu
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}-${PORTVERSION}.so \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so.0
${INSTALL_DATA} ${WRKSRC}/src/.libs/${PORTNAME}.a \
${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.la \
${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/src/gltext.h ${STAGEDIR}${PREFIX}/include
@cd ${STAGEDIR}${PREFIX}/lib && \
${LN} -s ${PORTNAME}.so.0 ${PORTNAME}.so
post-install-DOCS-on:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${STAGEDIR}${DOCSDIR}
.endif
post-install-EXAMPLES-on:
.for DIRE in alpha fps simple sizes
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${DIRE}
@cd ${WRKSRC}/examples && \
${INSTALL_DATA} ${DIRE}/${DIRE} ${DIRE}/${DIRE}.cpp ${STAGEDIR}${EXAMPLESDIR}/${DIRE}
.endfor
@${ECHO_MSG} ""
@${ECHO_MSG} " Examples source and binary on ${STAGEDIR}${EXAMPLESDIR}"
@${ECHO_MSG} ""
.include <bsd.port.mk>