aboutsummaryrefslogtreecommitdiff
path: root/science/felt/Makefile
blob: 614a85c6e99dacdd0b63eb4f120f7d7190a10077 (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
47
48
49
50
51
52
53
54
# New ports collection makefile for:	FElt
# Date created:		19 October 1996
# Whom:			Pedro Giffuni
#
# $FreeBSD$
#

PORTNAME=	felt
PORTVERSION=	3.06
PORTREVISION=	2
CATEGORIES=	science
MASTER_SITES=	SF/${PORTNAME}/FElt/${PORTVERSION}devel
EXTRACT_SUFX=	-devel.src.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A system for Finite Element Analysis

LIB_DEPENDS=	GLw.1:${PORTSDIR}/graphics/libGLw

WRKSRC=		${WRKDIR}/FElt-${PORTVERSION}

USE_MOTIF=	yes
USE_GL=		glu
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--x-defaults=${LOCALBASE}/lib/X11/app-defaults
CFLAGS+=	-D__GLX_MOTIF

MAN1=		burlap.1 corduroy.1 felt.1 patchwork.1 velvet.1 yardstick.1
MAN3=		Drawing.3
MAN4=		corduroy.4 felt.4

DOCSDIR=	${PREFIX}/share/doc/FElt
EXAMPLESDIR=	${PREFIX}/share/examples/FElt

post-extract:
	@cd ${WRKSRC}/include && ${RM} -rf X11

post-patch:
	@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
		's|["<]malloc\.h[">]|<stdlib.h>|g'

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/*.ans ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/*.flt ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>