aboutsummaryrefslogtreecommitdiffstats
path: root/cad/slffea/Makefile
blob: 7e5d0e9428fa0bd2c384bc979761c7ea76ee7360 (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
# ex:ts=8
# Ports collection makefile for:    slffea
# Date created:         Feb 9, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   slffea
PORTVERSION=    1.3
PORTREVISION=   2
CATEGORIES= cad
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}13
EXTRACT_SUFX=   .tgz

MAINTAINER= jmelo@freebsdbrasil.com.br
COMMENT=    San Le's Free Finite Element Analysis

LIB_DEPENDS=    glut.3:${PORTSDIR}/graphics/libglut

CONFLICTS=  swi-pl-[0-9]* TenDRA-[0-9]*

USE_REINPLACE=  yes

CFLAGS+=    -I${X11BASE}/include ${PTHREAD_CFLAGS}
WRKSRC=     ${WRKDIR}/${PORTNAME}-1.3
ALL_TARGET= everything

EXEC=   beam/beam/bm beam/beam_gr/bmpost brick/brick/br \
    brick/brick_gr/brpost brick/brick_gr/pvbr \
    brick/brick_nl/nbr plate/plate/pl plate/plate_gr/plpost \
    quad/quad/qd quad/quad_gr/qdpost shell/shell/shl \
    shell/shell_gr/shpost shell/shell_gr/pvs truss/truss/ts \
    truss/truss_gr/tspost
PLIST_FILES=    ${EXEC:T:S/^/bin\//}

post-patch:
    @(${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
        ${REINPLACE_CMD} -E -e "s|^CC = .*|CC = ${CC} ${CFLAGS}|g" \
            -e "s|-lglut|-lglut ${PTHREAD_LIBS}|g" \
            -e "s|/usr/local|${LOCALBASE}|g" \
            -e "s|/usr/X/|${X11BASE}/|g" \
            -e "s|/usr/X11/|${X11BASE}/|g" \
            -e "s|/usr/X11R6/|${X11BASE}/|g")

do-install:
.for file in ${EXEC}
    ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor

.include <bsd.port.mk>