aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/weex/Makefile
blob: 5dcd6371be9cf1651fe5148c02874cc41cc6710a (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
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   weex
PORTVERSION=    2.6.1.5
PORTREVISION=   2
CATEGORIES= ftp
MASTER_SITES=   SF

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Non-interactive FTP client

GNU_CONFIGURE=  yes
MANCOMPRESSED=  no
MAKE_JOBS_SAFE= yes

PORTDOCS=   ChangeLog README
MAN1=       weex.1

OPTIONS_DEFINE= DOCS NLS

.include <bsd.port.options.mk>

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

post-patch:
    @${REINPLACE_CMD} -e 's|^\(SUBDIRS.*\)debian|\1|' \
        ${WRKSRC}/Makefile.in

post-install:
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/sample.weexrc ${EXAMPLESDIR}

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>