aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/bareftp/Makefile
blob: 013aa6d0f78bd39937fedb80f236491d95ca4609 (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
# Created by: Chris Petrik (chris@officialunix.com)
# $FreeBSD$

PORTNAME=   bareftp
PORTVERSION=    0.3.10
CATEGORIES= ftp
MASTER_SITES=   http://www.bareftp.org/release/

MAINTAINER= c.petrik.sosa@gmail.com
COMMENT=    Ftp client made in C sharp

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --datarootdir="${PREFIX}/share" \
        --libdir="${PREFIX}/lib" \
        --localedir="${PREFIX}/share/locale" \
        --includedir="${LOCALBASE}/include"

INSTALLS_ICONS= yes
USES=       gettext gmake pkgconfig
USE_GNOME=  gtksharp20 gnomesharp20

USE_LDCONFIG=   yes


MAN1=       bareftp.1

OPTIONS_DEFINE= GNOMEKEYRING NLS
OPTIONS_DEFAULT=    GNOMEKEYRING

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGNOMEKEYRING}
KEYRING_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-keyring-sharp-1.0.pc
BUILD_DEPENDS+= ${KEYRING_DETECT}:${PORTSDIR}/security/gnome-keyring-sharp
RUN_DEPENDS+=   ${KEYRING_DETECT}:${PORTSDIR}/security/gnome-keyring-sharp
.else
CONFIGURE_ARGS+=    --without-gnomekeyring
.endif

.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=    --enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.endif

# TODO
# Ugly way but configure ignore "--localedir=" fu* ;/
pre-build:
    @${REINPLACE_CMD} -e 's|$$(prefix)/$$(DATADIRNAME)|${PREFIX}/share|g' \
        ${WRKSRC}/po/Makefile

.include <bsd.port.mk>