aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/transmission-qt4/Makefile
blob: 42af2b1abd528fef589bb9e97327b5ee1ae2d824 (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
55
56
57
58
# New ports collection makefile for:    transmission-qt4
# Date created:             23 October 2010
# Whom:                 Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#

PORTREVISION=   0
PKGNAMESUFFIX=  -qt4

MAINTAINER= crees@FreeBSD.org
COMMENT=    A fast and lightweight QT4 BitTorrent client

LIB_DEPENDS=    ${GEN_LIB_DEPENDS}
RUN_DEPENDS=    ${GEN_RUN_DEPENDS}

DESCR=      ${.CURDIR}/pkg-descr
MASTERDIR=  ${.CURDIR}/../transmission-cli
PLIST=      ${.CURDIR}/pkg-plist
SLAVEPORT=  qt4

USE_QT_VER= 4
QT_NONSTANDARD= yes
QT_COMPONENTS=  moc_build qmake_build rcc_build uic_build gui dbus network
USE_GNOME=  desktopfileutils

EXTRA_CONF_ARGS=--disable-cli \
        --disable-daemon \
        --without-gtk \
        --disable-mac \
        --disable-nls

MAN1=       transmission-qt.1

post-patch: general-patch
    @${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \
        ${WRKSRC}/qt/qtr.pro

post-build:
    @(cd ${WRKSRC}/qt ; ${QMAKE} ${QMAKEFLAGS} qtr.pro ; gmake)

do-install:
    @(cd ${WRKSRC}/qt ; ${SETENV} INSTALL_ROOT=${PREFIX} ${MAKE} install)

post-install: general-install
.ifndef (NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/qt/README.txt ${DOCSDIR}/README-qt4
.endif
    @${MKDIR} ${PREFIX}/share/applications
    @${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \
        ${PREFIX}/share/applications/
    @${MKDIR} ${PREFIX}/share/pixmaps
    @${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
        ${PREFIX}/share/pixmaps/transmission-qt.png
    @-update-desktop-database

.include "${MASTERDIR}/Makefile"