1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/devel/swarm/Makefile
Ade Lovett b2fd75e438 libtool uber-patch
* kill devel/libtool and move to devel/libtool13, upgrading to 1.3.5
* upgrade repo-copied devel/libtool14 to 1.4.3
* break out libltdl into its own separate port
* move to version-numbered binaries/scripts (ie: there is *no* 'libtool'
  any more -- USE_LIBTOOL and USE_LIBTOOL_VER are your friends)

Approved by:	portmgr (kris) - for the bsd.port.mk hooks
Tested by:	bento 4-exp builds (repeatedly)
2003-06-26 22:58:32 +00:00

68 lines
1.6 KiB
Makefile

# New ports collection makefile for: swarm
# Date created: 26 June 1998
# Whom: Horance C.H Chou <horance@freedom.ie.cycu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= swarm
PORTVERSION= 2.1.1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.santafe.edu/pub/swarm/src/swarm/
MAINTAINER= horance@freedom.ie.cycu.edu.tw
COMMENT= The Swarm Simulation System
BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs21
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
BLT24.2:${PORTSDIR}/x11-toolkits/blt
.if defined(WITH_HDF5)
LIB_DEPENDS+= hdf5.0:${PORTSDIR}/graphics/hdf5
.endif
.if defined(WITH_JAVA)
USE_JAVA= 1.3+
.endif
USE_GMAKE= yes
USE_XPM= yes
USE_LIBTOOL= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --with-defaultdir=${PREFIX} \
--with-tclincludedir=${PREFIX}/include/tcl8.3 \
--with-tkincludedir=${PREFIX}/include/tk8.3 \
--with-tclscriptdir=${PREFIX}/lib/tcl8.3 \
--with-tkscriptdir=${PREFIX}/lib/tk8.3 \
--enable-subdirs
PLIST_SUB= JAVA="@comment "
.if defined(WITH_JAVA)
CONFIGURE_ARGS+= --with-jdkdir=${JAVA_HOME}
PLIST_SUB= JAVA=""
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's|%%LTCONFIG%%|${LIBTOOL_SHAREDIR}/ltconfig${LIBTOOL_VERSION}|g' \
-e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \
${WRKSRC}/configure
pre-everything::
.if !defined(WITH_JAVA)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> To enable java support , please define WITH_JAVA"
@${ECHO_MSG} "===>"
.endif
.if !defined(WITH_HDF5)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> To enable HDF5 support, please define WITH_HDF5"
@${ECHO_MSG} "===>"
.endif
post-patch:
post-install:
${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
.include <bsd.port.mk>