blob: 6f1e66df7e20d31a51a196c0a2e8fd6b7a20b2fd (
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
|
# $FreeBSD$
PORTNAME= android-file-transfer
DISTVERSIONPREFIX= v
DISTVERSION= 3.1
PORTREVISION?= 0
CATEGORIES= sysutils
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 7a1db96cd2e2.patch:-p1
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Android MTP client with minimalistic UI
LICENSE= GPLv3+
USE_GITHUB= yes
GH_ACCOUNT= whoozle
GH_PROJECT= ${PORTNAME}-linux
USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig
CMAKE_ARGS= -DUSB_BACKEND_LIBUSB=on -DBUILD_QT_UI=off
OPTIONS_DEFAULT=CLI FUSE
OPTIONS_MULTI= COMP
OPTIONS_MULTI_COMP= CLI FUSE
OPTIONS_RADIO= GUI
OPTIONS_RADIO_GUI= QT4 QT5
OPTIONS_EXCLUDE:= ${OPTIONS_EXCLUDE} ${OPTIONS_RADIO_GUI}
# XXX http://lists.dragonflybsd.org/pipermail/users/2016-September/313064.html
OPTIONS_EXCLUDE_DragonFly= FUSE
COMP_DESC= Components
CLI_DESC= CLI (Command-Line Interface) support
CLI_USES= readline
CLI_PLIST_FILES=bin/aft-mtp-cli
FUSE_USES= fuse
FUSE_CMAKE_BOOL=BUILD_FUSE
FUSE_PLIST_FILES=bin/aft-mtp-mount
QT4_USE= QT4=qmake_build,moc_build,rcc_build,uic_build,corelib,gui
QT4_CMAKE_ON= -DBUILD_QT_UI=on -DDESIRED_QT_VERSION=4
QT4_PLIST_FILES=${QT5_PLIST_FILES}
QT5_USE= QT5=qmake_build,buildtools_build,core,gui,widgets
QT5_CMAKE_ON= -DBUILD_QT_UI=on -DDESIRED_QT_VERSION=5
QT5_PLIST_FILES=bin/android-file-transfer \
share/applications/android-file-transfer.desktop \
share/icons/hicolor/128x128/apps/android-file-transfer.png
post-patch-CLI-off:
@${REINPLACE_CMD} '/subdirectory(cli)/d' ${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>
|