mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
8378e52122
PR: 56634 Submitted by: Ports Fury
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: e4graph
|
|
# Date created: Jul 16, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= e4graph
|
|
PORTVERSION= 1.0a9
|
|
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
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libmk4.so:${PORTSDIR}/databases/metakit
|
|
LIB_DEPENDS= tcl${TCLVND}:${PORTSDIR}/lang/tcl${TCLVND} \
|
|
expat.4:${PORTSDIR}/textproc/expat2
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/all
|
|
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL= yes
|
|
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
|
|
|
|
.include <bsd.port.mk>
|