aboutsummaryrefslogtreecommitdiff
path: root/net/onedrive/Makefile
blob: 03f5014f1d7f96811f0731e146b23e224774af27 (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
50
51
52
53
54
55
PORTNAME=	onedrive
DISTVERSIONPREFIX=	v
DISTVERSION=	2.4.15
CATEGORIES=	net

MAINTAINER=	hiroo.ono+freebsd@gmail.com
COMMENT=	OneDrive Free client

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	ldc2:lang/ldc
LIB_DEPENDS=	libcurl.so:ftp/curl \
		libinotify.so:devel/libinotify
RUN_DEPENDS=	${LOCALBASE}/sbin/logrotate:sysutils/logrotate

USES=		autoreconf gmake pkgconfig sqlite

USE_GITHUB=	yes
GH_ACCOUNT=	abraunegg

GNU_CONFIGURE=	yes
PKGCONFIG=		pkgconf

OPTIONS_DEFINE=		DOCS NOTIFY COMPLETION
OPTIONS_DEFAULT=	NOTIFY COMPLETION
OPTIONS_SUB=		yes

NOTIFY_CONFIGURE_ENABLE=	notifications
NOTIFY_USES=		gnome
NOTIFY_USE=		GNOME=glib20,gdkpixbuf2
NOTIFY_LIB_DEPENDS=	libnotify.so:devel/libnotify

COMPLETION_DESC=		Install completion for BASH, FISH and ZSH
COMPLETION_CONFIGURE_ENABLE=	completions
COMPLETION_BUILD_DEPENDS=	bash-completion>0:shells/bash-completion
COMPLETION_RUN_DEPENDS=		bash-completion>0:shells/bash-completion

ONEDRIVE_LOGDIR=	/var/log/${PORTNAME}

PORTDOCS=	*

post-extract:
	${CP} ${FILESDIR}/freebsd_inotify.d ${WRKSRC}/src

post-install:
	${INSTALL} -d -m 0775 ${STAGEDIR}${ONEDRIVE_LOGDIR}

.include <bsd.port.pre.mk>

.if (${OSVERSION} >= 1400042)
CONFIGURE_ARGS+=	DCFLAGS=-L=-Wl,-z,nostart-stop-gc
.endif

.include <bsd.port.post.mk>