blob: 3ea474a510ff4104bf276f674ddd3546e30c3830 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# ex:ts=8
# Ports collection makefile for: meshviewer
# Date created: Jun 10, 2002
# Whom: ijliao
#
# $FreeBSD$
PORTNAME= meshviewer
PORTVERSION= 0.3.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= 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}"
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/Documentation && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|