Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PKGNAMESUFFIX= -${FLAVOR} |
4 |
|
5 |
MAINTAINER= crees@FreeBSD.org |
6 |
COMMENT= Fast and lightweight Qt4 BitTorrent client |
7 |
|
8 |
LIB_DEPENDS= ${GEN_LIB_DEPENDS} \ |
9 |
libfontconfig.so:x11-fonts/fontconfig \ |
10 |
libfreetype.so:print/freetype2 |
11 |
RUN_DEPENDS= ${GEN_RUN_DEPENDS} |
12 |
|
13 |
FLAVORS= qt4 qt5 |
14 |
FLAVOR?= ${FLAVORS:[1]} |
15 |
|
16 |
DESCR= ${.CURDIR}/pkg-descr |
17 |
MASTERDIR= ${.CURDIR}/../transmission-cli |
18 |
PLIST= ${.CURDIR}/pkg-plist |
19 |
SLAVEPORT= qt |
20 |
|
21 |
.if ${FLAVOR} == qt4 |
22 |
USES= gettext-runtime:run desktop-file-utils |
23 |
USE_QT4= moc_build qmake_build uic_build rcc_build \ |
24 |
corelib gui dbus network xml |
25 |
.endif |
26 |
|
27 |
.if ${FLAVOR} == qt5 |
28 |
USES= gettext-runtime:run desktop-file-utils |
29 |
USE_QT5= buildtools_build linguisttools_build qmake_build \ |
30 |
core dbus gui network widgets |
31 |
.endif |
32 |
|
33 |
QT_NONSTANDARD= yes |
34 |
|
35 |
EXTRA_CONF_ARGS=--disable-cli \ |
36 |
--disable-daemon \ |
37 |
--without-gtk \ |
38 |
--disable-mac \ |
39 |
--disable-nls |
40 |
|
41 |
qt4_CONFLICTS_INSTALL= qt5 |
42 |
|
43 |
qt4_PLIST= pkg-plist.qt4 |
44 |
qt5_PLIST= pkg-plist.qt5 |
45 |
|
46 |
post-patch: general-patch |
47 |
@${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \ |
48 |
${WRKSRC}/qt/qtr.pro |
49 |
@${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \ |
50 |
>>${WRKSRC}/qt/qtr.pro |
51 |
|
52 |
post-build: |
53 |
@(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD}) |
54 |
|
55 |
do-install: |
56 |
@(cd ${WRKSRC}/qt && \ |
57 |
${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install) |
58 |
|
59 |
post-install: general-install |
60 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/transmission-qt |
61 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
62 |
@${INSTALL_DATA} ${WRKSRC}/qt/README.txt \ |
63 |
${STAGEDIR}${DOCSDIR}/README-${FLAVOR} |
64 |
@${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \ |
65 |
${STAGEDIR}${PREFIX}/share/applications/ |
66 |
@${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \ |
67 |
${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png |
68 |
|
69 |
.include "${MASTERDIR}/Makefile" |