forked from Lainports/freebsd-ports
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= android-file-transfer
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.7
|
|
PORTREVISION?= 1
|
|
CATEGORIES= sysutils
|
|
|
|
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_ON= USB_BACKEND_LIBUSB
|
|
PLIST_FILES= "@comment lib/libmtp-ng-static.a"
|
|
|
|
OPTIONS_DEFAULT=CLI FUSE
|
|
OPTIONS_MULTI= COMP
|
|
OPTIONS_MULTI_COMP= CLI FUSE
|
|
OPTIONS_RADIO= GUI
|
|
OPTIONS_RADIO_GUI= QT QT4 QT5
|
|
OPTIONS_SLAVE:= ${OPTIONS_SLAVE} ${OPTIONS_SLAVE:MQT*:C/.+/QT/} # XXX ports/202701
|
|
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
|
|
|
|
QT_CMAKE_BOOL= BUILD_QT_UI
|
|
QT_PLIST_FILES= bin/android-file-transfer \
|
|
share/applications/android-file-transfer.desktop \
|
|
share/icons/hicolor/512x512/apps/android-file-transfer.png \
|
|
share/metainfo/android-file-transfer.appdata.xml
|
|
|
|
QT4_USES= qt:4
|
|
QT4_USE= QT=qmake_build,moc_build,rcc_build,uic_build,corelib,gui
|
|
QT4_CMAKE_ON= -DDESIRED_QT_VERSION:STRING=4
|
|
QT4_IMPLIES= QT
|
|
|
|
QT5_USES= qt:5
|
|
QT5_USE= QT=qmake_build,buildtools_build,core,gui,widgets
|
|
QT5_CMAKE_ON= -DDESIRED_QT_VERSION:STRING=5
|
|
QT5_IMPLIES= QT
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
DEPRECATED= Qt4 has been EOL since december 2015
|
|
EXPIRATION_DATE= 2019-03-15
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} '/set.*AFT_VERSION/s/".*"/"${GH_TAGNAME}"/' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
post-patch-CLI-off:
|
|
@${REINPLACE_CMD} '/subdirectory(cli)/d' ${WRKSRC}/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|