2013-03-21 22:08:45 +00:00
|
|
|
# Created by: ijliao
|
2003-02-08 10:27:24 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= meshviewer
|
2011-03-25 12:31:41 +00:00
|
|
|
PORTVERSION= 0.3.3
|
2013-03-21 22:08:45 +00:00
|
|
|
PORTREVISION= 4
|
2003-02-08 10:27:24 +00:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/mview/mview/${PORTVERSION}
|
2003-02-08 10:27:24 +00:00
|
|
|
DISTNAME= mview-src-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= Mesh Viewer
|
2003-02-08 10:27:24 +00:00
|
|
|
|
2013-03-21 22:08:45 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-03-25 12:31:41 +00:00
|
|
|
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
|
|
|
|
|
2013-09-12 08:41:52 +00:00
|
|
|
USES= gmake pkgconfig
|
2012-05-20 03:27:54 +00:00
|
|
|
USE_GL= glu
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4= corelib gui opengl moc_build
|
2012-05-20 03:27:54 +00:00
|
|
|
CXXFLAGS+= -I. -Imesh -Imathvector \
|
|
|
|
`pkg-config --cflags QtOpenGL glu`
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} \
|
|
|
|
`pkg-config --libs QtOpenGL glu`
|
2011-03-25 12:31:41 +00:00
|
|
|
MAKE_ARGS= QTDIR="${QT_PREFIX}" CC="${CXX}" MOC="${MOC}" \
|
2012-05-20 03:27:54 +00:00
|
|
|
CXXFLAGS="${CXXFLAGS}" \
|
2011-03-25 12:31:41 +00:00
|
|
|
LIBPATH="" LIBS_QT4="${LDFLAGS}"
|
2009-01-14 16:00:28 +00:00
|
|
|
|
|
|
|
PORTDOCS= *
|
2013-03-21 22:08:45 +00:00
|
|
|
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
|
|
DOC_FILES1= AUTHORS README TODO
|
|
|
|
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/Documentation/pics
|
|
|
|
DOCSDIR2= ${DOCSDIR}/Documentation/pics
|
|
|
|
DOC_FILES2= *.jpg
|
|
|
|
|
|
|
|
DOCSRCDIR3= ${WRKSRC}/Documentation
|
|
|
|
DOCSDIR3= ${DOCSDIR}/Documentation
|
|
|
|
DOC_FILES3= *.html *.ico
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
2013-09-20 18:35:44 +00:00
|
|
|
NO_STAGE= yes
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2014-02-21 13:37:15 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2013-03-21 22:08:45 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2009-01-14 16:00:28 +00:00
|
|
|
|
2006-08-01 19:36:52 +00:00
|
|
|
post-patch:
|
2012-05-20 03:27:54 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
|
2009-01-14 16:00:28 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
|
|
|
|
|
2003-02-08 10:27:24 +00:00
|
|
|
do-install:
|
2013-03-21 22:08:45 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin/${PORTNAME}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-04-18 16:52:52 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2013-03-21 22:08:45 +00:00
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
|
|
|
|
@${MKDIR} ${DOCSDIR2}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
|
|
|
|
@${MKDIR} ${DOCSDIR3}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3}
|
2004-04-18 16:52:52 +00:00
|
|
|
.endif
|
2003-02-08 10:27:24 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2013-03-21 22:08:45 +00:00
|
|
|
|