aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/ftpcopy/Makefile
blob: af95387af1626f80c9bc4c0e74392b70059137f3 (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ftpcopy
PORTVERSION=    0.6.7
CATEGORIES= ftp ipv6
MASTER_SITES=   http://www.ohse.de/uwe/ftpcopy/

MAINTAINER= mandree@FreeBSD.org
COMMENT=    Command line ftp tools for listing and mirroring

BROKEN_aarch64= Fails to build: regparm is not valid on this platform

USES=       perl5
USE_PERL5=  build

WRKSRC=     ${WRKDIR}/web/${DISTNAME}

OPTIONS_DEFINE= DOCS

pre-build:
    ${ECHO} "${CC}" >${WRKSRC}/src/conf-cc
    ${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags
    ${ECHO} "${LDFLAGS}" >${WRKSRC}/src/conf-ldflags

do-install:
    cd ${WRKSRC}/compile && \
        ${INSTALL_PROGRAM} ftpcopy ftpls ${STAGEDIR}${PREFIX}/bin && \
        ${INSTALL_MAN} *.1 ${STAGEDIR}${PREFIX}/man/man1 && \
        ${INSTALL_SCRIPT} ftpcp ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DOCSDIR} && \
    cd ${WRKSRC}/compile && \
        ${INSTALL_DATA} ChangeLog NEWS \
            README THANKS ftpcopy.html ftpls.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>