2002-07-15 19:33:24 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: e4graph
|
|
|
|
# Date created: Jul 16, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= e4graph
|
2004-03-07 16:44:56 +00:00
|
|
|
PORTVERSION= 1.0a11
|
2006-01-30 23:20:05 +00:00
|
|
|
PORTREVISION= 2
|
2003-08-17 01:45:25 +00:00
|
|
|
CATEGORIES= devel tcl84
|
2002-07-15 19:33:24 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2003-05-18 20:56:50 +00:00
|
|
|
EXTRACT_SUFX= .src.tar.gz
|
2002-07-15 19:33:24 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= A C++ library that persistently stores graph like data
|
2002-07-15 19:33:24 +00:00
|
|
|
|
2004-03-07 16:44:56 +00:00
|
|
|
LIB_DEPENDS= mk4.0:${PORTSDIR}/databases/metakit \
|
|
|
|
tcl${TCLVND}:${PORTSDIR}/lang/tcl${TCLVND} \
|
2006-01-30 23:20:05 +00:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2
|
2002-07-15 19:37:22 +00:00
|
|
|
|
2002-07-15 19:33:24 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/all
|
2002-11-08 15:52:07 +00:00
|
|
|
|
2003-08-07 08:07:59 +00:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-11-08 15:52:07 +00:00
|
|
|
CONFIGURE_ARGS= --with-metakit=${LOCALBASE} \
|
2003-08-30 17:02:06 +00:00
|
|
|
--with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} --enable-tcl \
|
2002-11-08 15:52:07 +00:00
|
|
|
--with-expat=${LOCALBASE} --enable-xml
|
2003-08-30 17:02:06 +00:00
|
|
|
CFLAGS+= -fpermissive -I${LOCALBASE}/include/tcl${TCL_VER}
|
2002-07-15 19:33:24 +00:00
|
|
|
MAKEFILE= makefile
|
2006-08-14 22:55:18 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-08-30 17:02:06 +00:00
|
|
|
PLIST_SUB= TCL_VER="${TCL_VER}"
|
|
|
|
|
2003-09-24 13:59:39 +00:00
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-python
|
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-08-30 17:02:06 +00:00
|
|
|
TCL_VER?= 8.4
|
|
|
|
TCLVND= ${TCL_VER:S/.//}
|
2002-07-15 19:33:24 +00:00
|
|
|
|
2003-08-07 08:07:59 +00:00
|
|
|
post-patch:
|
2003-09-24 13:59:39 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|=-O$$|="$${CFLAGS}"|g ; \
|
2005-05-31 21:34:45 +00:00
|
|
|
s|gcc -shared|$$(CC) -shared|g ; \
|
|
|
|
s|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
|
|
|
|
${WRKSRC}/configure
|
2006-02-23 10:40:44 +00:00
|
|
|
@${CHMOD} +x ${WRKSRC}/scripts/ltconfig
|
2003-08-07 08:07:59 +00:00
|
|
|
|
2004-03-07 16:44:56 +00:00
|
|
|
post-install:
|
|
|
|
.for file in testcore testcores
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
|
|
|
|
2002-07-15 19:33:24 +00:00
|
|
|
.include <bsd.port.mk>
|