View | Details | Raw Unified | Return to bug 177157
Collapse All | Expand All

(-)./Makefile (-9 / +26 lines)
Lines 1-12 Link Here
1
# Ports collection makefile for:	meshviewer
1
# Created by: ijliao
2
# Date created:			Jun 10, 2002
3
# Whom:				ijliao
4
#
5
# $FreeBSD: head/graphics/meshviewer/Makefile 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD: head/graphics/meshviewer/Makefile 300896 2012-07-14 13:54:48Z beat $
6
3
7
PORTNAME=	meshviewer
4
PORTNAME=	meshviewer
8
PORTVERSION=	0.3.3
5
PORTVERSION=	0.3.3
9
PORTREVISION=	3
6
PORTREVISION=	4
10
CATEGORIES=	graphics
7
CATEGORIES=	graphics
11
MASTER_SITES=	SF/mview/mview/${PORTVERSION}
8
MASTER_SITES=	SF/mview/mview/${PORTVERSION}
12
DISTNAME=	mview-src-${PORTVERSION}
9
DISTNAME=	mview-src-${PORTVERSION}
Lines 14-19 Link Here
14
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Mesh Viewer
12
COMMENT=	Mesh Viewer
16
13
14
LICENSE=	GPLv2
15
17
WRKSRC=		${WRKDIR}/mview-${PORTVERSION}
16
WRKSRC=		${WRKDIR}/mview-${PORTVERSION}
18
17
19
USE_GL=		glu
18
USE_GL=		glu
Lines 28-44 Link Here
28
		LIBPATH="" LIBS_QT4="${LDFLAGS}"
27
		LIBPATH="" LIBS_QT4="${LDFLAGS}"
29
28
30
PORTDOCS=	*
29
PORTDOCS=	*
31
PLIST_FILES=	bin/mview
30
31
DOCSRCDIR1=	${WRKSRC}
32
DOC_FILES1=	AUTHORS README TODO
33
34
DOCSRCDIR2=	${WRKSRC}/Documentation/pics
35
DOCSDIR2=	${DOCSDIR}/Documentation/pics
36
DOC_FILES2=	*.jpg
37
38
DOCSRCDIR3=	${WRKSRC}/Documentation
39
DOCSDIR3=	${DOCSDIR}/Documentation
40
DOC_FILES3=	*.html *.ico
41
42
PLIST_FILES=	bin/${PORTNAME}
43
44
.include <bsd.port.options.mk>
32
45
33
post-patch:
46
post-patch:
34
	@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
47
	@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
35
	@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
48
	@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
36
49
37
do-install:
50
do-install:
38
	${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
51
	${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin/${PORTNAME}
39
.if !defined(NOPORTDOCS)
52
.if ${PORT_OPTIONS:MDOCS}
40
	@${MKDIR} ${DOCSDIR}
53
	@${MKDIR} ${DOCSDIR}
41
	@(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${DOCSDIR})
54
	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
55
	@${MKDIR} ${DOCSDIR2}
56
	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
57
	@${MKDIR} ${DOCSDIR3}
58
	${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3}
42
.endif
59
.endif
43
60
44
.include <bsd.port.mk>
61
.include <bsd.port.mk>

Return to bug 177157