1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/meshviewer/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

47 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: meshviewer
# Date created: Jun 10, 2002
# Whom: ijliao
#
# $FreeBSD$
PORTNAME= meshviewer
PORTVERSION= 0.3.1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mview
DISTNAME= mview-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mesh Viewer
USE_QT_VER= 3
USE_GL= yes
USE_GMAKE= yes
MAKE_ENV= MOC="${MOC}" \
QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}"
post-patch:
@${REINPLACE_CMD} -e \
's|^INCPATH +=.*$$|INCPATH += $${QTCPPFLAGS}|g ; \
s|^LIBPATH =|#LIBPATH =|g ; \
s|^LIBPATH +=.*$$|LIBPATH += $${QTCFGLIBS}|g ; \
s|=g\+\+|=$${CXX}|g ; \
s|^MOC=|#MOC=|g ; \
s|-O2|$${CXXFLAGS}|g ; \
s|make |$$(MAKE) |g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|<values\.h>|<climits>|g' ${WRKSRC}/mesh/mesh.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/Documentation && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>