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 |
qt4_CONFLICTS_INSTALL= transmission-qt5 |
17 |
qt5_CONFLICTS_INSTALL= transmission-qt4 |
18 |
|
19 |
USES= gettext-runtime:run desktop-file-utils |
20 |
|
21 |
.if ${FLAVOR} == qt4 |
22 |
USE_QT4= moc_build qmake_build uic_build rcc_build \ |
23 |
corelib gui dbus network xml |
24 |
.endif |
25 |
|
26 |
.if ${FLAVOR} == qt5 |
27 |
USE_QT5= buildtools_build linguisttools_build qmake_build \ |
28 |
core dbus gui network widgets |
29 |
.endif |
30 |
|
31 |
QT_NONSTANDARD= yes |
32 |
|
33 |
EXTRA_CONF_ARGS=--disable-cli \ |
34 |
--disable-daemon \ |
35 |
--without-gtk \ |
36 |
--disable-mac \ |
37 |
--disable-nls |
38 |
|
39 |
PLIST_SUB= QT_SUFFIX=${_QT_RELNAME} |
40 |
|
41 |
MASTERDIR= ${.CURDIR}/../transmission-cli |
42 |
DESCR= ${.CURDIR}/pkg-descr |
43 |
PLIST= ${.CURDIR}/pkg-plist |
44 |
|
45 |
SLAVEPORT= qt |
46 |
|
47 |
post-patch: general-patch |
48 |
@${REINPLACE_CMD} -e 's|/share/man|/man|g ; /PKGCONFIG/s| openssl||g' \ |
49 |
${WRKSRC}/qt/qtr.pro |
50 |
@${ECHO_CMD} 'LIBS += -l${PORT_OPTIONS:M*SSL:tl:S/openssl/crypto/}' \ |
51 |
>>${WRKSRC}/qt/qtr.pro |
52 |
|
53 |
post-build: |
54 |
@(cd ${WRKSRC}/qt && ${QMAKE} ${QMAKE_ARGS} qtr.pro && ${MAKE_CMD}) |
55 |
|
56 |
do-install: |
57 |
@(cd ${WRKSRC}/qt && \ |
58 |
${SETENV} INSTALL_ROOT=${STAGEDIR}${PREFIX} ${MAKE_CMD} install) |
59 |
|
60 |
post-install: general-install |
61 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/transmission-qt |
62 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
63 |
${INSTALL_DATA} ${WRKSRC}/qt/README.txt \ |
64 |
${STAGEDIR}${DOCSDIR}/README-${FLAVOR} |
65 |
${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \ |
66 |
${STAGEDIR}${PREFIX}/share/applications/ |
67 |
${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \ |
68 |
${STAGEDIR}${PREFIX}/share/pixmaps/transmission-qt.png |
69 |
|
70 |
.include "${MASTERDIR}/Makefile" |