freebsd-ports/net/megatools/Makefile
Dmitry Marakasov a770b14f8e Megatools is a collection of programs for accessing Mega
service from a command line of your desktop or server.

Megatools allow you to copy individual files as well as
entire directory trees to and from the cloud. You can also
perform streaming downloads for example to preview videos
and audio files, without needing to download the entire
file.

WWW: http://megatools.megous.com/

PR:		195723
Submitted by:	max@kostikov.co
2014-12-11 23:06:14 +00:00

41 lines
924 B
Makefile

# Created by: Max V. Kostikov <max@kostikov.co>
# $FreeBSD$
PORTNAME= megatools
PORTVERSION= 1.9.93
CATEGORIES= net
MASTER_SITES= http://megatools.megous.com/builds/
MAINTAINER= max@kostikov.co
COMMENT= Tools for MEGA.CO.NZ cloud drive
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
RUN_DEPENDS= glib-networking>=2.29.18:${PORTSDIR}/net/glib-networking
USES= gmake pkgconfig libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GNOME= glib20
USE_OPENSSL= yes
LIBS+= -lssl -lcrypto
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --enable-introspection=no
OPTIONS_DEFINE= FUSE
OPTIONS_DEFAULT= FUSE
OPTIONS_SUB= yes
FUSE_USES= fuse
FUSE_CONFIGURE_WITH= fuse
post-patch:
@${REINPLACE_CMD} -e '/MEGA_REQUIRES=/ s|openssl||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>