summaryrefslogtreecommitdiff
path: root/filesystems/simple-mtpfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/simple-mtpfs/Makefile')
-rw-r--r--filesystems/simple-mtpfs/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/filesystems/simple-mtpfs/Makefile b/filesystems/simple-mtpfs/Makefile
new file mode 100644
index 000000000000..2c04141d0886
--- /dev/null
+++ b/filesystems/simple-mtpfs/Makefile
@@ -0,0 +1,46 @@
+PORTNAME= simple-mtpfs
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.4.0
+PORTREVISION= 1
+CATEGORIES= filesystems
+PKGNAMEPREFIX= fusefs-
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Simple MTP fuse filesystem driver
+WWW= https://github.com/phatina/simple-mtpfs
+
+LICENSE= GPLv2+
+
+BUILD_DEPENDS= autoconf-archive>0.2017:devel/autoconf-archive
+LIB_DEPENDS= libmtp.so:multimedia/libmtp
+
+USE_GITHUB= yes
+GH_ACCOUNT= phatina
+
+USES= autoreconf compiler:c++17-lang fuse localbase pkgconfig
+GNU_CONFIGURE= yes
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
+MAKEFILE= makefile
+INSTALL_TARGET= install-strip
+PLIST_FILES= bin/${PORTNAME} \
+ share/man/man1/${PORTNAME}.1.gz
+PORTDOCS= AUTHORS NEWS README.md
+
+OPTIONS_DEFINE= DOCS
+
+# XXX move to PREFIX when bug 193596 lands
+.if exists(/etc/autofs)
+PLIST_FILES+= /etc/autofs/special_${PORTNAME}
+SUB_FILES+= special_${PORTNAME}
+.endif
+
+post-install:
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} \
+ "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
+.if exists(/etc/autofs)
+ @${MKDIR} ${STAGEDIR}/etc/autofs
+ ${INSTALL_SCRIPT} ${WRKDIR}/special_${PORTNAME} \
+ ${STAGEDIR}/etc/autofs
+.endif
+
+.include <bsd.port.mk>