aboutsummaryrefslogtreecommitdiffstats
path: root/devel/swarm/Makefile
blob: 843f02a6cc4e4355c66f4283898e0c24dcfab259 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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
PORTREVISION=   4
CATEGORIES= devel
MASTER_SITES=   ftp://ftp.santafe.edu/pub/swarm/src/swarm/

MAINTAINER= horance@freera.net
COMMENT=    The Swarm Simulation System

BUILD_DEPENDS=  emacs:${PORTSDIR}/editors/emacs21
.if defined(WITH_HDF5)
LIB_DEPENDS+=   hdf5.0:${PORTSDIR}/graphics/hdf5
.endif
LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        BLT24.3:${PORTSDIR}/x11-toolkits/blt

ONLY_FOR_ARCHS= i386

USE_JAVA=   1.3+
USE_GMAKE=  yes
USE_XPM=    yes
USE_LIBTOOL=    yes
USE_REINPLACE=  yes
INSTALLS_SHLIB= yes
TK_VER?=    8.4
CONFIGURE_ARGS= --with-defaultdir=${PREFIX} \
        --with-tclincludedir=${PREFIX}/include/tcl${TK_VER} \
        --with-tkincludedir=${PREFIX}/include/tk${TK_VER} \
        --with-tclscriptdir=${PREFIX}/lib/tcl${TK_VER} \
        --with-tkscriptdir=${PREFIX}/lib/tk${TK_VER} \
        --with-jdkdir=${JAVA_HOME} \
        --enable-subdirs

post-patch:
    @${REINPLACE_CMD} \
        -e 's|%%LTCONFIG%%|${LIBTOOL_SHAREDIR}/ltconfig${LIBTOOL_VERSION}|g' \
        -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} \
        -e 's|%%LTCONFIG%%|${LIBTOOL_SHAREDIR}/ltconfig${LIBTOOL_VERSION}|g' \
        -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \
        ${WRKSRC}/libobjc/configure
    @${REINPLACE_CMD} \
        -e 's|%%LTCONFIG%%|${LIBTOOL_SHAREDIR}/ltconfig${LIBTOOL_VERSION}|g' \
        -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \
        ${WRKSRC}/avcall/configure

pre-everything::
.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>