freebsd-ports/cad/slffea/Makefile
Martin Wilke 3e4ed01146 - 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

50 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: slffea
# Date created: Feb 9, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= slffea
PORTVERSION= 1.3
PORTREVISION= 4
CATEGORIES= cad
MASTER_SITES= SF
DISTNAME= ${PORTNAME}13
EXTRACT_SUFX= .tgz
MAINTAINER= jmelo@FreeBSD.org
COMMENT= San Le's Free Finite Element Analysis
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
CONFLICTS= swi-pl-[0-9]* TenDRA-[0-9]*
CFLAGS+= -I${LOCALBASE}/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/|${LOCALBASE}/|g" \
-e "s|/usr/X11/|${LOCALBASE}/|g" \
-e "s|/usr/X11R6/|${LOCALBASE}/|g")
do-install:
.for file in ${EXEC}
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.include <bsd.port.mk>