blob: 24d13fd50a53be6a1545ff0b4434789d16a587fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= meshviewer
PORTVERSION= 0.3.3
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF/mview/mview/${PORTVERSION}
DISTNAME= mview-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mesh viewer
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
USES= gmake pkgconfig
USE_GL= glu
USE_QT4= corelib gui opengl moc_build
CXXFLAGS+= -I. -Imesh -Imathvector \
`pkg-config --cflags QtOpenGL glu`
LDFLAGS+= -lpthread `pkg-config --libs QtOpenGL glu`
MAKE_ARGS= QTDIR="${PREFIX}" CC="${CXX}" MOC="${MOC}" \
CXXFLAGS="${CXXFLAGS}" \
LIBPATH="" LIBS_QT4="${LDFLAGS}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
do-install-DOCS-on:
@cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS README TODO Documentation" \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|