diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-09-28 02:25:17 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-09-28 02:25:17 +0800 |
commit | 65e5f08e428b22f40a49df3cd740714c8b6264e9 (patch) | |
tree | f087a592e5c1673bb1690aaf1b7a4a41b384e9e0 /sysutils/android-file-transfer | |
parent | ce5f17d74c6fd4f4f32947453dc961d698b386a1 (diff) | |
download | freebsd-ports-gnome-65e5f08e428b22f40a49df3cd740714c8b6264e9.tar.gz freebsd-ports-gnome-65e5f08e428b22f40a49df3cd740714c8b6264e9.tar.zst freebsd-ports-gnome-65e5f08e428b22f40a49df3cd740714c8b6264e9.zip |
sysutils/android-file-transfer: enslave GUI and expose CLI option
Catering package-only users that want Qt4 flavor or just non-GUI parts.
COMMENT and pkg-descr (both plural) can be improved in future.
Diffstat (limited to 'sysutils/android-file-transfer')
-rw-r--r-- | sysutils/android-file-transfer/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/sysutils/android-file-transfer/Makefile b/sysutils/android-file-transfer/Makefile index 987e52fda202..18bad2aeb914 100644 --- a/sysutils/android-file-transfer/Makefile +++ b/sysutils/android-file-transfer/Makefile @@ -4,6 +4,7 @@ PORTNAME= android-file-transfer DISTVERSIONPREFIX= v DISTVERSION= 3.0-10 DISTVERSIONSUFFIX= -g40640fb +PORTREVISION?= 1 CATEGORIES= sysutils MAINTAINER= jbeich@FreeBSD.org @@ -15,17 +16,24 @@ USE_GITHUB= yes GH_ACCOUNT= whoozle GH_PROJECT= ${PORTNAME}-linux -USES= cmake compiler:c++11-lib localbase pkgconfig readline +USES= cmake compiler:c++11-lib localbase pkgconfig CMAKE_ARGS= -DUSB_BACKEND_LIBUSB=on -DBUILD_QT_UI=off -PLIST_FILES= bin/aft-mtp-cli -OPTIONS_DEFINE= FUSE -OPTIONS_DEFAULT=FUSE QT5 +OPTIONS_DEFAULT=CLI FUSE +OPTIONS_MULTI= COMP +OPTIONS_MULTI_COMP= CLI FUSE OPTIONS_RADIO= GUI OPTIONS_RADIO_GUI= QT4 QT5 +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 @@ -44,4 +52,7 @@ QT5_PLIST_FILES=bin/android-file-transfer \ CONFIGURE_ENV+= PKG_CONFIG_PATH="${FILESDIR}" .endif +post-patch-CLI-off: + @${REINPLACE_CMD} '/subdirectory(cli)/d' ${WRKSRC}/CMakeLists.txt + .include <bsd.port.mk> |