diff options
author | miwi <miwi@FreeBSD.org> | 2009-01-15 00:00:28 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-01-15 00:00:28 +0800 |
commit | 3a53286f8cf218058c6df84e3fa87d4d49873a8e (patch) | |
tree | 19660a161688d5a4ed4cf3bd7522f8ab0b396e36 /graphics/meshviewer/Makefile | |
parent | d1e82dc235dcda3a11d6ca3863dff080df220395 (diff) | |
download | freebsd-ports-gnome-3a53286f8cf218058c6df84e3fa87d4d49873a8e.tar.gz freebsd-ports-gnome-3a53286f8cf218058c6df84e3fa87d4d49873a8e.tar.zst freebsd-ports-gnome-3a53286f8cf218058c6df84e3fa87d4d49873a8e.zip |
- Update to 0.3.2
PR: 130468
Submitted by: Ports Fury
Diffstat (limited to 'graphics/meshviewer/Makefile')
-rw-r--r-- | graphics/meshviewer/Makefile | 39 |
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> |