Index: head/net-im/tg/Makefile =================================================================== --- head/net-im/tg/Makefile (revision 369807) +++ head/net-im/tg/Makefile (revision 369808) @@ -1,31 +1,36 @@ # Created by: gahr # $FreeBSD$ PORTNAME= tg PORTVERSION= 1.0.5.1 +PORTREVISION= 1 CATEGORIES= net-im MAINTAINER= gahr@FreeBSD.org COMMENT= Command-line interface for Telegram -LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig +LICENSE= GPLv2 +LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig \ + libevent.so:${PORTSDIR}/devel/libevent2 + USE_GITHUB= yes GH_ACCOUNT= vysheng GH_TAGNAME= 1.0.5.1 GH_COMMIT= 77bbb4c -USES= execinfo gmake lua:52 readline +USES= execinfo gmake lua:52 ncurses pkgconfig readline +USE_OPENSSL= yes GNU_CONFIGURE= yes PLIST_FILES= bin/telegram-cli \ etc/tg-server.pub post-patch: ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/main.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc .include Index: head/net-im/tg/files/patch-mtproto-client.c =================================================================== --- head/net-im/tg/files/patch-mtproto-client.c (nonexistent) +++ head/net-im/tg/files/patch-mtproto-client.c (revision 369808) @@ -0,0 +1,11 @@ +--- mtproto-client.c.orig 2014-10-02 12:07:49.000000000 +0200 ++++ mtproto-client.c 2014-10-02 12:08:13.000000000 +0200 +@@ -80,7 +80,7 @@ + #define MAX_NET_RES (1L << 16) + //extern int log_level; + +-#ifndef HAVE___BUILTIN_BSWAP32 ++#if !defined(HAVE___BUILTIN_BSWAP32) && !defined(__FreeBSD__) && !defined(__OpenBSD__) + static inline unsigned __builtin_bswap32(unsigned x) { + return ((x << 24) & 0xff000000 ) | + ((x << 8) & 0x00ff0000 ) | Property changes on: head/net-im/tg/files/patch-mtproto-client.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/tg/files/patch-net.c =================================================================== --- head/net-im/tg/files/patch-net.c (nonexistent) +++ head/net-im/tg/files/patch-net.c (revision 369808) @@ -0,0 +1,15 @@ +--- net.c.orig 2014-10-02 12:12:58.000000000 +0200 ++++ net.c 2014-10-02 12:13:09.000000000 +0200 +@@ -26,11 +26,11 @@ + #include + #include + #include ++#include + #include + #include + #include + #include +-#include + #include + #include + #include Property changes on: head/net-im/tg/files/patch-net.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property