Date: Thu, 2 Oct 2014 10:19:09 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369808 - in head/net-im/tg: . files Message-ID: <201410021019.s92AJ9Di088615@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr Date: Thu Oct 2 10:19:08 2014 New Revision: 369808 URL: https://svnweb.freebsd.org/changeset/ports/369808 QAT: https://qat.redports.org/buildarchive/r369808/ Log: - Fix build on older releases - Add LICENSE and missing dependencies - Bump PORTREVISION Added: head/net-im/tg/files/patch-mtproto-client.c (contents, props changed) head/net-im/tg/files/patch-net.c (contents, props changed) Modified: head/net-im/tg/Makefile Modified: head/net-im/tg/Makefile ============================================================================== --- head/net-im/tg/Makefile Thu Oct 2 09:56:35 2014 (r369807) +++ head/net-im/tg/Makefile Thu Oct 2 10:19:08 2014 (r369808) @@ -3,19 +3,24 @@ 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 \ Added: head/net-im/tg/files/patch-mtproto-client.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/tg/files/patch-mtproto-client.c Thu Oct 2 10:19:08 2014 (r369808) @@ -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 ) | Added: head/net-im/tg/files/patch-net.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/tg/files/patch-net.c Thu Oct 2 10:19:08 2014 (r369808) @@ -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 <string.h> + #include <stdlib.h> + #include <assert.h> ++#include <sys/types.h> + #include <netdb.h> + #include <netinet/in.h> + #include <netinet/tcp.h> + #include <sys/fcntl.h> +-#include <sys/types.h> + #include <sys/socket.h> + #include <errno.h> + #include <stdio.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410021019.s92AJ9Di088615>