summaryrefslogtreecommitdiff
path: root/sysutils/fusefs-simple-mtpfs/Makefile
blob: 011d7e6da90efafea2b0f63e45d3dcaaf127c90b (plain)
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

PORTNAME=	simple-mtpfs
DISTVERSIONPREFIX=	v
DISTVERSION=	0.4.0
CATEGORIES=	sysutils
PKGNAMEPREFIX=	fusefs-

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple MTP fuse filesystem driver

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
MAKEFILE=	makefile
INSTALL_TARGET=	install-strip
PLIST_FILES=	bin/${PORTNAME} \
		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>