aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/gnunet-gtk/Makefile
blob: 173ee4da23df2b17b9ccd5710034e90464932efb (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
# Created by: bf
# $FreeBSD$

PORTNAME=   gnunet-gtk
PORTVERSION=    0.10.1
CATEGORIES= net-p2p ipv6 security
MASTER_SITES=   GNU/gnunet

MAINTAINER= ports@FreeBSD.org
COMMENT=    GTK interface to GNUnet

LICENSE=    GPLv3

LIB_DEPENDS=    libgladeui-1.so:${PORTSDIR}/devel/glade3 \
        libltdl.so:${PORTSDIR}/devel/libltdl \
        libqrencode.so:${PORTSDIR}/graphics/libqrencode \
        libgnunetutil.so:${PORTSDIR}/net-p2p/gnunet \
        libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique

USES=       gmake iconv libtool pathfix pkgconfig
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-gtktest \
        --with-gtk-version=2 \
        --with-extractor=${LOCALBASE} \
        --with-gnunet=${LOCALBASE} \
        ${ICONV_CONFIGURE_ARG}
INSTALL_TARGET= install-strip
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes

OPTIONS_DEFINE=     DOCS

post-patch:
    @${REINPLACE_CMD} -e \
        's|^\([[:space:]]\)install-docDATA$$|\1|' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e \
        's|"$${mkinstalldirs}"|"$${MKDIR_P}"|' \
        ${WRKSRC}/pixmaps/Makefile.in

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README 
    (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
        ${STAGEDIR}${DOCSDIR})
.endfor

.include <bsd.port.mk>