mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
43 lines
922 B
Makefile
43 lines
922 B
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: meshviewer
|
|
# Date created: Jun 10, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= meshviewer
|
|
PORTVERSION= 0.3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/mview/mview/${PORTVERSION}
|
|
DISTNAME= mview-src-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Mesh Viewer
|
|
|
|
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:
|
|
@${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 && ${COPYTREE_SHARE} . ${DOCSDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|