aboutsummaryrefslogtreecommitdiff
path: root/cad/admesh/Makefile
blob: 0eead78ae6e330791c23042ed96e5d6a5c44cbb7 (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
# Created by: Pedro F. Giffuni <giffunip@asme.org>
# $FreeBSD$

PORTNAME=	admesh
PORTVERSION=	0.95
PORTREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	http://launchpadlibrarian.net/67068999/ \
		http://www.sourcefiles.org/Scientific/Numerical_Analysis/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Program for processing STL triangulated solid meshes

LICENSE=	GPLv2 # (or later)

OPTIONS_DEFINE=	DOCS

GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

PORTDOCS=	admesh.doc
PLIST_FILES=	bin/admesh

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/admesh ${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ADMESH.DOC ${DOCSDIR}/admesh.doc
.endif

.include <bsd.port.mk>