summaryrefslogtreecommitdiff
path: root/net/megatools/Makefile
blob: 1988e997d7b5721e202a16ac0cfc3423cf968a72 (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
# Created by: Max V. Kostikov <max@kostikov.co>
# $FreeBSD$

PORTNAME=	megatools
PORTVERSION=	1.10.2
CATEGORIES=	net
MASTER_SITES=	https://megatools.megous.com/builds/

MAINTAINER=	max@kostikov.co
COMMENT=	Command line tools for MEGA.NZ cloud drive

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libcurl.so:ftp/curl
BUILD_DEPENDS=	asciidoc:textproc/asciidoc

CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
USES=		gettext-runtime gmake gnome libtool pathfix pkgconfig ssl
GNU_CONFIGURE=	yes
USE_GNOME=	glib20

INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	DOCS

post-patch:
# Unsilence build
	${REINPLACE_CMD} -e '/^export\ MAKEFLAGS/s|^|#|' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>