aboutsummaryrefslogtreecommitdiff
path: root/graphics/meshviewer/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-01-14 16:00:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-01-14 16:00:28 +0000
commit6699c319d1f7ef79d7cc857bc3a5228d4ecca987 (patch)
tree40bcb5fbd0788b30318e91ac0e438a27f979f0f4 /graphics/meshviewer/Makefile
parent09ecaf226021f88e95e2da58b9951e1f410cb534 (diff)
downloadports-6699c319d1f7ef79d7cc857bc3a5228d4ecca987.tar.gz
ports-6699c319d1f7ef79d7cc857bc3a5228d4ecca987.zip
Notes
Diffstat (limited to 'graphics/meshviewer/Makefile')
-rw-r--r--graphics/meshviewer/Makefile39
1 files changed, 17 insertions, 22 deletions
diff --git a/graphics/meshviewer/Makefile b/graphics/meshviewer/Makefile
index f42e307e8de8..1ca2628e0b85 100644
--- a/graphics/meshviewer/Makefile
+++ b/graphics/meshviewer/Makefile
@@ -6,41 +6,36 @@
# $FreeBSD$
PORTNAME= meshviewer
-PORTVERSION= 0.3.1
-PORTREVISION= 2
+PORTVERSION= 0.3.2
CATEGORIES= graphics
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= mview
+MASTER_SITES= SF/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}"
+USE_QT_VER= 4
+QT_COMPONENTS= corelib gui opengl moc_build qmake_build
+
+PORTDOCS= *
+PLIST_FILES= bin/mview
+
+post-extract:
+ @${RM} -f ${WRKSRC}/qt4/*.moc.cpp
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
+ @${ECHO_CMD} "QT += opengl" >> ${WRKSRC}/mview.pro
+ @${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)
@${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/Documentation && ${FIND} . | \
- ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ @(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.include <bsd.port.mk>