aboutsummaryrefslogtreecommitdiff
path: root/net/megatools/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-12-11 23:06:14 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-12-11 23:06:14 +0000
commita770b14f8eba194c3a5c77710f374934dd79647e (patch)
tree5de8c49af08f44b6ea5d1c155a465ef0a1ee884e /net/megatools/Makefile
parent51ef8cc1d1e8ddb1cab31958938f4ca53f4632b7 (diff)
downloadports-a770b14f8eba194c3a5c77710f374934dd79647e.tar.gz
ports-a770b14f8eba194c3a5c77710f374934dd79647e.zip
Notes
Diffstat (limited to 'net/megatools/Makefile')
-rw-r--r--net/megatools/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/net/megatools/Makefile b/net/megatools/Makefile
new file mode 100644
index 000000000000..7b4fb3d2939f
--- /dev/null
+++ b/net/megatools/Makefile
@@ -0,0 +1,40 @@
+# 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>