2014-08-24 18:14:28 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= simple-mtpfs
|
2015-09-03 21:37:46 +02:00
|
|
|
DISTVERSION= 0.2-24
|
|
|
|
DISTVERSIONSUFFIX= -ga7ab64c
|
2014-08-24 18:14:28 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
PKGNAMEPREFIX= fusefs-
|
|
|
|
|
2015-01-20 23:03:55 +01:00
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
2014-08-24 18:14:28 +02:00
|
|
|
COMMENT= Simple MTP fuse filesystem driver
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2014-08-24 18:14:28 +02:00
|
|
|
|
2016-03-16 13:58:16 +01:00
|
|
|
LIB_DEPENDS= libmtp.so:multimedia/libmtp
|
2014-08-24 18:14:28 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= phatina
|
|
|
|
|
2015-09-26 22:26:21 +02:00
|
|
|
USES= autoreconf compiler:c++11-lib fuse localbase pkgconfig
|
2014-09-25 19:03:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-08-24 18:14:28 +02:00
|
|
|
MAKEFILE= makefile
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
man/man1/${PORTNAME}.1.gz
|
|
|
|
PORTDOCS= AUTHORS NEWS README.md
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.if !exists(/usr/libdata/pkgconfig/libusb-1.0.pc)
|
|
|
|
CONFIGURE_ENV+= LIBUSB1_CFLAGS=" " LIBUSB1_LIBS="-lusb"
|
|
|
|
.endif
|
|
|
|
|
2014-09-25 19:03:22 +02:00
|
|
|
# XXX move to PREFIX when bug 193596 lands
|
2014-08-24 18:53:20 +02:00
|
|
|
.if exists(/etc/autofs)
|
2014-09-25 19:03:22 +02:00
|
|
|
PLIST_FILES+= /etc/autofs/special_${PORTNAME}
|
|
|
|
SUB_FILES+= special_${PORTNAME}
|
2014-08-24 18:53:20 +02:00
|
|
|
.endif
|
|
|
|
|
2014-08-24 18:14:28 +02:00
|
|
|
post-install:
|
2015-02-16 09:12:16 +01:00
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
|
|
|
|
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
2014-08-24 18:53:20 +02:00
|
|
|
.if exists(/etc/autofs)
|
|
|
|
@${MKDIR} ${STAGEDIR}/etc/autofs
|
2014-09-25 19:03:22 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/special_${PORTNAME} \
|
|
|
|
${STAGEDIR}/etc/autofs
|
2014-08-24 18:53:20 +02:00
|
|
|
.endif
|
2014-08-24 18:14:28 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|