2002-03-24 19:03:26 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: GNUnet
|
|
|
|
# Date created: Mar 23, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnunet
|
2005-04-10 22:18:56 +02:00
|
|
|
PORTVERSION= 0.6.6b
|
2009-01-22 17:04:11 +01:00
|
|
|
PORTREVISION= 6
|
2006-12-20 13:27:58 +01:00
|
|
|
CATEGORIES= net-p2p ipv6
|
2003-08-22 10:52:37 +02:00
|
|
|
MASTER_SITES= http://www.ovmj.org/GNUnet/download/ \
|
|
|
|
${MASTER_SITE_GNU}
|
2002-07-06 03:03:06 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2002-03-24 19:03:26 +01:00
|
|
|
DISTNAME= GNUnet-${PORTVERSION}
|
|
|
|
|
2005-09-14 10:26:09 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-16 04:42:11 +01:00
|
|
|
COMMENT= An anonymous, distributed, reputation-based network
|
2002-03-24 19:03:26 +01:00
|
|
|
|
2006-05-10 16:46:47 +02:00
|
|
|
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
|
2004-08-29 19:29:51 +02:00
|
|
|
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libltdl:15 libtool:15
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-04-01 10:55:03 +02:00
|
|
|
USE_BZIP2= yes
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2003-06-02 17:37:31 +02:00
|
|
|
USE_GMAKE= yes
|
2004-08-29 19:29:51 +02:00
|
|
|
USE_GNOME= gnometarget gtk20 lthack
|
2002-03-24 19:03:26 +01:00
|
|
|
USE_OPENSSL= yes
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-09-01 06:58:41 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
|
2004-10-12 17:10:08 +02:00
|
|
|
CONFIGURE_ARGS= --disable-ltdl-install --with-crypto
|
2004-02-01 02:18:56 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2002-03-24 19:03:26 +01:00
|
|
|
|
2003-06-02 17:37:31 +02:00
|
|
|
.if defined(WITH_GDBM)
|
2004-11-15 19:59:18 +01:00
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
PLIST_SUB+= WITH_GDBM=""
|
2003-06-02 17:37:31 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gdbm
|
2004-11-15 19:59:18 +01:00
|
|
|
PLIST_SUB+= WITH_GDBM="@comment "
|
2003-06-02 17:37:31 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2003-08-27 15:13:36 +02:00
|
|
|
USE_MYSQL= yes
|
2003-08-27 20:57:02 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2003-06-02 17:37:31 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TDB)
|
2004-11-15 19:59:18 +01:00
|
|
|
LIB_DEPENDS+= tdb.1:${PORTSDIR}/databases/tdb
|
|
|
|
PLIST_SUB+= WITH_TDB=""
|
2003-06-02 17:37:31 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-tdb
|
2004-11-15 19:59:18 +01:00
|
|
|
PLIST_SUB+= WITH_TDB="@comment "
|
2003-06-02 17:37:31 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BDB3)
|
2004-11-15 19:59:18 +01:00
|
|
|
LIB_DEPENDS+= db3:${PORTSDIR}/databases/db3
|
2003-06-02 17:37:31 +02:00
|
|
|
CONFIGURE_ARGS+= --with-bdb=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-bdb
|
|
|
|
.endif
|
|
|
|
|
2004-11-15 19:59:18 +01:00
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite
|
|
|
|
PLIST_SUB+= WITH_SQLITE=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sqlite
|
|
|
|
PLIST_SUB+= WITH_SQLITE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-06-09 20:16:10 +02:00
|
|
|
.if defined(WITH_IPV6)
|
2004-11-15 19:59:18 +01:00
|
|
|
PKGNAMESUFFIX= -ipv6
|
2003-06-09 20:16:10 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2004-11-15 19:59:18 +01:00
|
|
|
PLIST_SUB+= WITH_IPV6=""
|
2003-06-09 20:16:10 +02:00
|
|
|
.else
|
2004-11-15 19:59:18 +01:00
|
|
|
PLIST_SUB+= WITH_IPV6="@comment "
|
2003-06-09 20:16:10 +02:00
|
|
|
.endif
|
|
|
|
|
2004-11-20 08:09:24 +01:00
|
|
|
.if defined(WITH_GUILE)
|
2009-01-22 17:04:11 +01:00
|
|
|
LIB_DEPENDS+= guile.20:${PORTSDIR}/lang/guile
|
2004-11-20 08:09:24 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-guile
|
|
|
|
MAN1+= gnunet-download-manager.1
|
|
|
|
PLIST_SUB+= WITH_GUILE=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-guile
|
|
|
|
PLIST_SUB+= WITH_GUILE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-06-02 17:37:31 +02:00
|
|
|
MAN1= gnunet-chat.1 gnunet-check.1 gnunet-convert.1 \
|
2004-11-20 08:09:24 +01:00
|
|
|
gnunet-delete.1 gnunet-directory.1 \
|
2004-04-01 10:55:03 +02:00
|
|
|
gnunet-download.1 gnunet-gtk.1 gnunet-insert.1 \
|
|
|
|
gnunet-peer-info.1 gnunet-pseudonym.1 \
|
2003-12-29 19:43:34 +01:00
|
|
|
gnunet-search.1 gnunet-stats.1 gnunet-tbench.1 \
|
|
|
|
gnunet-testbed.1 gnunet-tracekit.1 gnunet-transport-check.1 \
|
2004-08-02 20:16:02 +02:00
|
|
|
gnunet-update.1 gnunetd.1
|
2002-07-06 03:03:06 +02:00
|
|
|
MAN5= gnunet.conf.5
|
|
|
|
|
2005-10-29 01:02:26 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-06-02 17:37:31 +02: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"
|
2004-04-01 10:55:03 +02:00
|
|
|
@${ECHO_MSG} " WITH_BDB3=yes Turn on Berkely DB library support"
|
2003-06-02 17:37:31 +02:00
|
|
|
@${ECHO_MSG} " WITH_GDBM=yes Turn on GNU dbm support"
|
2004-11-15 19:59:18 +01:00
|
|
|
@${ECHO_MSG} " WITH_SQLITE=yes Turn on sqlite support"
|
2003-06-09 20:16:10 +02:00
|
|
|
@${ECHO_MSG} " WITH_IPV6=yes Turn on to enable IPv6 support"
|
2003-06-02 17:37:31 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2002-07-06 03:03:06 +02:00
|
|
|
post-patch:
|
2004-02-29 16:37:26 +01:00
|
|
|
@${FIND} ${WRKSRC} -name configure | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e \
|
2002-08-06 02:52:52 +02:00
|
|
|
's|-pthread [\$$]CFLAGS|${PTHREAD_CFLAGS} \$$CFLAGS|g ; \
|
2003-10-06 21:38:10 +02:00
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g'
|
2004-02-29 16:37:26 +01:00
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|^#include <values.h>|#include <limits.h>|g' \
|
|
|
|
${WRKSRC}/src/applications/afs/module/manager.c
|
2004-10-12 17:10:08 +02:00
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
${WRKSRC}/src/include/gnunet_util.h
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/gnunet.root ${PREFIX}/etc/gnunet.conf-dist
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/gnunet.user ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
|
|
|
|
.endif
|
2002-03-24 19:03:26 +01:00
|
|
|
|
2005-10-29 01:02:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|