1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/graphics/libboard/Makefile
Thierry Thomas ec89250e1a Upgrade to 0.8.2.
Reported by:	portscout
2008-11-19 19:35:57 +00:00

56 lines
1.2 KiB
Makefile

# New ports collection makefile for: libboard
# Date created: Fri 24 aug 2007
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= libboard
PORTVERSION= 0.8.2
CATEGORIES= graphics
MASTER_SITES= http://www.greyc.ensicaen.fr/~seb/board/download/
MAINTAINER= thierry@FreeBSD.org
COMMENT= A vector graphics C++ library
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_ENV= CXX=${CXX}
USE_GMAKE= yes
USE_LDCONFIG= yes
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${ARCH} != i386
CFLAGS+= -fPIC
.endif
pre-configure:
${REINPLACE_CMD} -e 's|-O3|${CXXFLAGS}|' ${WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
${MV} ${PREFIX}/lib/libboard.so ${PREFIX}/lib/libboard.so.0
${LN} -sf ${PREFIX}/lib/libboard.so.0 ${PREFIX}/lib/libboard.so
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${DOCSDIR}/
${RM} -rf ${DOCSDIR}/.svn
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
${RM} -rf ${EXAMPLESDIR}/.svn
.endif
regression-test:
(cd ${WRKDIR} && ${WRKSRC}/bin/arithmetic bec)
.for ex in 1 2 3
(cd ${WRKDIR} && ${WRKSRC}/bin/example${ex})
.endfor
${LS} -l ${WRKDIR}/arithm* ${WRKDIR}/draw*
.include <bsd.port.post.mk>