aboutsummaryrefslogtreecommitdiffstats
path: root/net/gnunet/Makefile
blob: 1493af21d74cba8ee2876dabda21c7b0f5b4852e (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
# ex:ts=8
# Ports collection makefile for:    GNUnet
# Date created:         Mar 23, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   gnunet
PORTVERSION=    0.4.2
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   GNUnet-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    gdbm.2:${PORTSDIR}/databases/gdbm

USE_BZIP2=  yes
USE_OPENSSL=    yes
USE_GTK=    yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       gnunet-download.1 gnunet-gtk.1 gnunet-insert-multi.1 \
        gnunet-insert.1 gnunet-search.1 gnunetd.1
MAN5=       gnunet.conf.5

post-patch:
    @${REINPLACE_CMD} 's|-pthread [\$$]CFLAGS|\$$CFLAGS|g ; \
         s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
.for file in src/include/server/startup.h src/server/startup.c \
    src/textui/gnunetdownload.c src/textui/insertmain.c \
    src/textui/insertmulti.c src/util/getopt.c src/util/getopt1.c
    @${REINPLACE_CMD} -e 's|"getopt.h"|"util/getopt.h"|g' ${WRKSRC}/${file}
.endfor

.include <bsd.port.mk>