2013-09-20 15:58:41 +00:00
|
|
|
# Created by: ijliao
|
2002-02-09 07:30:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slffea
|
2011-01-04 01:03:03 +00:00
|
|
|
PORTVERSION= 1.5
|
2012-08-04 22:52:02 +00:00
|
|
|
PORTREVISION= 1
|
2002-02-09 07:30:11 +00:00
|
|
|
CATEGORIES= cad
|
2009-08-22 00:15:15 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/SLFFEA/${PORTVERSION}
|
2011-01-04 01:03:03 +00:00
|
|
|
DISTNAME= ${PORTNAME}15
|
2002-02-09 07:30:11 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2010-06-19 04:23:03 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= San Le's Free Finite Element Analysis
|
2002-02-09 07:30:11 +00:00
|
|
|
|
2005-07-29 17:59:37 +00:00
|
|
|
CONFLICTS= swi-pl-[0-9]* TenDRA-[0-9]*
|
2005-11-05 03:01:38 +00:00
|
|
|
|
2011-01-04 01:03:03 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-08-04 22:52:02 +00:00
|
|
|
USE_XORG= xmu xt
|
2009-01-23 16:28:36 +00:00
|
|
|
USE_GL= glut
|
|
|
|
|
2013-02-07 14:57:49 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2011-01-04 01:03:03 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2002-02-09 07:30:11 +00:00
|
|
|
ALL_TARGET= everything
|
2009-11-22 19:49:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2002-02-09 07:30:11 +00:00
|
|
|
|
2005-11-05 03:01:38 +00:00
|
|
|
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
|
2005-07-29 17:59:37 +00:00
|
|
|
PLIST_FILES= ${EXEC:T:S/^/bin\//}
|
|
|
|
|
2013-09-20 15:58:41 +00:00
|
|
|
NO_STAGE= yes
|
2002-02-09 07:30:11 +00:00
|
|
|
post-patch:
|
2002-09-29 08:07:47 +00:00
|
|
|
@(${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
|
2005-11-05 03:01:38 +00:00
|
|
|
${REINPLACE_CMD} -E -e "s|^CC = .*|CC = ${CC} ${CFLAGS}|g" \
|
2013-02-07 14:57:49 +00:00
|
|
|
-e "s|-lglut|-lglut -pthread|g" \
|
2005-11-05 03:01:38 +00:00
|
|
|
-e "s|/usr/local|${LOCALBASE}|g" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
-e "s|/usr/X/|${LOCALBASE}/|g" \
|
|
|
|
-e "s|/usr/X11/|${LOCALBASE}/|g" \
|
|
|
|
-e "s|/usr/X11R6/|${LOCALBASE}/|g")
|
2002-02-09 07:30:11 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for file in ${EXEC}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|