aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-simple-mtpfs/Makefile
blob: e70a72fd39b9a18bb2c85ed36d27c6cd34fe48f7 (plain) (blame)
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
45
46
47
48
49
# $FreeBSD$

PORTNAME=   simple-mtpfs
DISTVERSION=    0.2-24
DISTVERSIONSUFFIX=  -ga7ab64c
CATEGORIES= sysutils
PKGNAMEPREFIX=  fusefs-

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

LICENSE=    GPLv2+

LIB_DEPENDS=    libmtp.so:${PORTSDIR}/multimedia/libmtp

USE_GITHUB= yes
GH_ACCOUNT= phatina

USES=       autoreconf compiler:c++11-lib fuse localbase pkgconfig
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-silent-rules
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

# 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>