freebsd-ports/graphics/meshviewer/Makefile
Martin Wilke 7279e329eb - Update to version 0.3.3
PR:		155864
Submitted by:	Ports Fury
2011-03-25 12:31:41 +00:00

44 lines
1 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: meshviewer
# Date created: Jun 10, 2002
# Whom: ijliao
#
# $FreeBSD$
PORTNAME= meshviewer
PORTVERSION= 0.3.3
CATEGORIES= graphics
MASTER_SITES= SF/mview/mview/${PORTVERSION}
DISTNAME= mview-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mesh Viewer
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
USE_QT_VER= 4
QT_COMPONENTS= corelib gui opengl moc_build
USE_GMAKE= yes
MAKE_ARGS= QTDIR="${QT_PREFIX}" CC="${CXX}" MOC="${MOC}" \
CPPFLAGS="${CPPFLAGS}" FLAGS="${CXXFLAGS}" \
LIBPATH="" LIBS_QT4="${LDFLAGS}"
PORTDOCS= *
PLIST_FILES= bin/mview
CPPFLAGS= -I. -Imesh -Imathvector \
`pkg-config --cflags QtOpenGL glu`
LDFLAGS= `pkg-config --libs QtOpenGL glu`
post-patch:
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.include <bsd.port.mk>