aboutsummaryrefslogtreecommitdiffstats
path: root/devel/e4graph/Makefile
blob: aad0dec9b6d54718b89da9810748869445cb2157 (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
# ex:ts=8
# Ports collection makefile for:    e4graph
# Date created:         Jul 16, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   e4graph
PORTVERSION=    1.0a11
PORTREVISION=   1
CATEGORIES= devel tcl84
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   .src.tar.gz

MAINTAINER= ports@FreeBSD.org
COMMENT=    A C++ library that persistently stores graph like data

LIB_DEPENDS=    mk4.0:${PORTSDIR}/databases/metakit \
        tcl${TCLVND}:${PORTSDIR}/lang/tcl${TCLVND} \
        expat.5:${PORTSDIR}/textproc/expat2

WRKSRC=     ${WRKDIR}/${DISTNAME}/all

USE_REINPLACE=  yes
USE_GMAKE=  yes
USE_LIBTOOL_VER=    13
CONFIGURE_ARGS= --with-metakit=${LOCALBASE} \
        --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} --enable-tcl \
        --with-expat=${LOCALBASE} --enable-xml
CFLAGS+=    -fpermissive -I${LOCALBASE}/include/tcl${TCL_VER}
MAKEFILE=   makefile
INSTALLS_SHLIB= yes
PLIST_SUB=  TCL_VER="${TCL_VER}"

.if defined(WITH_PYTHON)
USE_PYTHON= yes
CONFIGURE_ARGS+=    --enable-python
PLIST_SUB+= PYTHON=""
.else
PLIST_SUB+= PYTHON="@comment "
.endif

TCL_VER?=   8.4
TCLVND=     ${TCL_VER:S/.//}

post-patch:
    @${REINPLACE_CMD} -e 's|=-O$$|="$${CFLAGS}"|g ; \
         s|gcc -shared|$$(CC) -shared|g' ${WRKSRC}/configure

post-install:
.for file in testcore testcores
    @${STRIP_CMD} ${PREFIX}/bin/${file}
.endfor

.include <bsd.port.mk>