aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-03-25 12:31:41 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-03-25 12:31:41 +0000
commit7279e329eb20ab70032d325a03b62f22d7b763db (patch)
tree53ebbd065f08473e90612d9021d8f016a0a70957
parent59710d25013b97da1f0a46ce58cadfb239272bd7 (diff)
downloadports-7279e329eb20ab70032d325a03b62f22d7b763db.tar.gz
ports-7279e329eb20ab70032d325a03b62f22d7b763db.zip
Notes
-rw-r--r--graphics/meshviewer/Makefile22
-rw-r--r--graphics/meshviewer/distinfo5
2 files changed, 14 insertions, 13 deletions
diff --git a/graphics/meshviewer/Makefile b/graphics/meshviewer/Makefile
index e2823ea4e87a..a79b4a5e33cc 100644
--- a/graphics/meshviewer/Makefile
+++ b/graphics/meshviewer/Makefile
@@ -6,8 +6,7 @@
# $FreeBSD$
PORTNAME= meshviewer
-PORTVERSION= 0.3.2
-PORTREVISION= 1
+PORTVERSION= 0.3.3
CATEGORIES= graphics
MASTER_SITES= SF/mview/mview/${PORTVERSION}
DISTNAME= mview-src-${PORTVERSION}
@@ -15,23 +14,26 @@ 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 qmake_build
+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
-post-extract:
- @${RM} -f ${WRKSRC}/qt4/*.moc.cpp
+CPPFLAGS= -I. -Imesh -Imathvector \
+ `pkg-config --cflags QtOpenGL glu`
+LDFLAGS= `pkg-config --libs QtOpenGL glu`
post-patch:
- @${ECHO_CMD} "QT += opengl" >> ${WRKSRC}/mview.pro
+ @${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
-do-configure:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
- ${QMAKE} -spec ${QMAKESPEC} GUI="QT4"
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
.if !defined(NOPORTDOCS)
diff --git a/graphics/meshviewer/distinfo b/graphics/meshviewer/distinfo
index 97cbd1319593..c837f49c039f 100644
--- a/graphics/meshviewer/distinfo
+++ b/graphics/meshviewer/distinfo
@@ -1,3 +1,2 @@
-MD5 (mview-src-0.3.2.tar.gz) = 1d76ba66a6fbd87b1b33028776ae0fb4
-SHA256 (mview-src-0.3.2.tar.gz) = 1ccc024f7ab33ae42b5479394b56f8a1ada28db9f099a1efd61d95fad9880a65
-SIZE (mview-src-0.3.2.tar.gz) = 455124
+SHA256 (mview-src-0.3.3.tar.gz) = 32105f5c4a84ba372164dd48c5513a820b4670b620cc0c607ffbbdf4f183dd85
+SIZE (mview-src-0.3.3.tar.gz) = 366230