aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/scythia/Makefile
blob: abfab1f61271810be7fa5d08cafd06b1c709f0ac (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
# New ports collection makefile for:    scythia
# Date created:     30 Jun 2007
# Whom:         Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   scythia
DISTVERSION=    0.9.3
PORTREVISION=   3
CATEGORIES= ftp
MASTER_SITES=   http://scythia.free.fr/wp-content/ \
        ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
DISTNAME=   ${PORTNAME}_${PORTVERSION}-2-src

MAINTAINER= dhn@FreeBSD.org
COMMENT=    Small ftp client unpretentious based on Qt4

USE_QT4=    gui network corelib qmake_build uic_build moc_build rcc_build
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
WRKSRC=     ${WRKDIR}/${PORTNAME}

.if defined(NOPORTDOCS)
INSTALL_TARGET=install_lang install_icon install_icon2 install_target
.endif

DESKTOP_ENTRIES=    "Scythia" \
            "Small ftp client unpretentious" \
            "scythia" \
            "scythia" \
            "Network;FileTransfer;Qt;" \
            "false"

post-patch:
    @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
        -e '/unix:desktop/d' \
        ${WRKSRC}/scythia.pro
    @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
        ${WRKSRC}/src/main.cpp

pre-build:
    @cd ${BUILD_WRKSRC} && \
           ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX} scythia.pro

.include <bsd.port.mk>