aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-03-25 20:31:41 +0800
committermiwi <miwi@FreeBSD.org>2011-03-25 20:31:41 +0800
commit5476b17287f1429dc3efbc4bd66aa84d8cc706c9 (patch)
tree8090fcdc70659b10d8d51a47cb71bff9e3603bef /graphics
parentb7777b465ed358173e62d5f12c76b25059f470a3 (diff)
downloadfreebsd-ports-gnome-5476b17287f1429dc3efbc4bd66aa84d8cc706c9.tar.gz
freebsd-ports-gnome-5476b17287f1429dc3efbc4bd66aa84d8cc706c9.tar.zst
freebsd-ports-gnome-5476b17287f1429dc3efbc4bd66aa84d8cc706c9.zip
- Update to version 0.3.3
PR: 155864 Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-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