2002-03-24 18:03:26 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: GNUnet
|
|
|
|
# Date created: Mar 23, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnunet
|
2003-08-22 08:52:37 +00:00
|
|
|
PORTVERSION= 0.5.5
|
2002-03-24 18:03:26 +00:00
|
|
|
CATEGORIES= net
|
2003-08-22 08:52:37 +00:00
|
|
|
MASTER_SITES= http://www.ovmj.org/GNUnet/download/ \
|
|
|
|
${MASTER_SITE_GNU}
|
2002-07-06 01:03:06 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2002-03-24 18:03:26 +00:00
|
|
|
DISTNAME= GNUnet-${PORTVERSION}
|
|
|
|
|
2003-07-22 10:34:12 +00:00
|
|
|
MAINTAINER= krion@FreeBSD.org
|
2003-02-16 03:42:11 +00:00
|
|
|
COMMENT= An anonymous, distributed, reputation-based network
|
2002-03-24 18:03:26 +00:00
|
|
|
|
2003-06-02 15:37:31 +00:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
2002-03-24 18:03:26 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_OPENSSL= yes
|
2002-09-03 01:06:26 +00:00
|
|
|
USE_GNOME= gtk12
|
2003-06-02 15:37:31 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-16 03:42:11 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-07-06 01:03:06 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-03-24 18:03:26 +00:00
|
|
|
|
2003-06-02 15:37:31 +00:00
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
PLIST_SUB+= WITH_GDBM=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gdbm
|
|
|
|
PLIST_SUB+= WITH_GDBM="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TDB)
|
|
|
|
LIB_DEPENDS+= tdb.1:${PORTSDIR}/databases/tdb
|
|
|
|
PLIST_SUB+= WITH_TDB=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-tdb
|
|
|
|
PLIST_SUB+= WITH_TDB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BDB3)
|
|
|
|
LIB_DEPENDS+= db3:${PORTSDIR}/databases/db3
|
|
|
|
CONFIGURE_ARGS+= --with-bdb=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-bdb
|
|
|
|
.endif
|
|
|
|
|
2003-06-09 18:16:10 +00:00
|
|
|
.if defined(WITH_IPV6)
|
|
|
|
PKGNAMESUFFIX= -ipv6
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
PLIST_SUB+= WITH_IPV6=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_IPV6="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-06-02 15:37:31 +00:00
|
|
|
MAN1= gnunet-chat.1 gnunet-check.1 gnunet-convert.1 \
|
2003-08-22 08:52:37 +00:00
|
|
|
gnunet-delete.1 gnunet-directory.1 gnunet-download.1 \
|
|
|
|
gnunet-gtk.1 gnunet-insert.1 \
|
|
|
|
gnunet-peer-info.1 gnunet-pseudonym-create.1 \
|
|
|
|
gnunet-pseudonym-delete.1 gnunet-pseudonym-list.1 \
|
|
|
|
gnunet-search.1 gnunet-search-sblock.1 gnunet-stats.1 \
|
2003-06-02 15:37:31 +00:00
|
|
|
gnunet-tbench.1 gnunet-tracekit.1 \
|
|
|
|
gnunet-transport-check.1 gnunetd.1
|
2002-07-06 01:03:06 +00:00
|
|
|
MAN5= gnunet.conf.5
|
|
|
|
|
2003-06-02 15:37:31 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You can build GNUnet with the following options:"
|
|
|
|
@${ECHO_MSG} " WITH_MYSQL=yes Turn on MySQL support"
|
|
|
|
@${ECHO_MSG} " WITH_TDB=yes Turn on TDB support"
|
|
|
|
@${ECHO_MSG} " WITH_BDB41=yes Turn on Berkely DB library support"
|
|
|
|
@${ECHO_MSG} " WITH_GDBM=yes Turn on GNU dbm support"
|
2003-06-09 18:16:10 +00:00
|
|
|
@${ECHO_MSG} " WITH_IPV6=yes Turn on to enable IPv6 support"
|
2003-06-02 15:37:31 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2002-07-06 01:03:06 +00:00
|
|
|
post-patch:
|
2002-08-06 00:52:52 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-pthread [\$$]CFLAGS|${PTHREAD_CFLAGS} \$$CFLAGS|g ; \
|
2002-07-06 01:03:06 +00:00
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2002-03-24 18:03:26 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|