blob: c96c61ddf38409086ada63aa97901dcacdb70022 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# ex:ts=8
# Ports collection makefile for: GNUnet
# Date created: Mar 23, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gnunet
PORTVERSION= 0.6.3a
CATEGORIES= net
MASTER_SITES= http://www.ovmj.org/GNUnet/download/ \
${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= GNUnet-${PORTVERSION}
MAINTAINER= krion@FreeBSD.org
COMMENT= An anonymous, distributed, reputation-based network
USE_LIBLTDL= yes
USE_BZIP2= yes
USE_GETOPT_LONG= yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gnometarget gtk12 lthack
USE_INC_LIBTOOL_VER=13
USE_OPENSSL= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ARGS= --disable-ltdl-install
LDFLAGS+= -L${LOCALBASE}/lib
.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)
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
.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
.if defined(WITH_IPV6)
PKGNAMESUFFIX= -ipv6
CONFIGURE_ARGS+= --enable-ipv6
PLIST_SUB+= WITH_IPV6=""
.else
PLIST_SUB+= WITH_IPV6="@comment "
.endif
MAN1= gnunet-chat.1 gnunet-check.1 gnunet-convert.1 \
gnunet-delete.1 gnunet-directory.1 \
gnunet-download.1 gnunet-gtk.1 gnunet-insert.1 \
gnunet-peer-info.1 gnunet-pseudonym.1 \
gnunet-search.1 gnunet-stats.1 gnunet-tbench.1 \
gnunet-testbed.1 gnunet-tracekit.1 gnunet-transport-check.1 \
gnunet-update.1 gnunetd.1
MAN5= gnunet.conf.5
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_BDB3=yes Turn on Berkely DB library support"
@${ECHO_MSG} " WITH_GDBM=yes Turn on GNU dbm support"
@${ECHO_MSG} " WITH_IPV6=yes Turn on to enable IPv6 support"
@${ECHO_MSG} ""
post-patch:
@${FIND} ${WRKSRC} -name configure | ${XARGS} \
${REINPLACE_CMD} -e \
's|-pthread [\$$]CFLAGS|${PTHREAD_CFLAGS} \$$CFLAGS|g ; \
s|-lpthread|${PTHREAD_LIBS}|g'
${REINPLACE_CMD} -e \
's|^#include <values.h>|#include <limits.h>|g' \
${WRKSRC}/src/applications/afs/module/manager.c
.include <bsd.port.mk>
|