1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/net-im/telegram/Makefile
Carlos J. Puga Medina 57337ac932 - Add LICENSE_FILE
- Remove duplicate BROKEN_powerpc64 line
- Switch to USES=ssl

Reviewed by:	junovitch (mentor)
Approved by:	junovitch (mentor)
Differential Revision:	D7385
2016-08-01 03:22:21 +00:00

53 lines
1.2 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= telegram
PORTVERSION= 1.3.1
CATEGORIES= net-im
MAINTAINER= cpm@FreeBSD.org
COMMENT= Command-line interface for Telegram
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libconfig.so:devel/libconfig \
libevent.so:devel/libevent2 \
libjansson.so:devel/jansson
BROKEN_mips= Missing header
BROKEN_mips64= Missing header
BROKEN_powerpc64= Does not build
USES= execinfo gmake lua:52 ncurses pkgconfig readline ssl
GNU_CONFIGURE= yes
USE_GITHUB= yes
GH_ACCOUNT= vysheng
GH_PROJECT= tg tgl:tgl tl-parser:tlparser
GH_TAGNAME= 1.3.1 2.0.1:tgl 1659d87:tlparser
PLIST_FILES= bin/telegram-cli \
etc/telegram-cli/server.pub
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1000024
USE_GCC= yes
.endif
post-extract:
@${MV} ${WRKSRC_tgl}/* ${WRKSRC}/tgl
@${MV} ${WRKSRC_tlparser}/* ${WRKSRC}/tgl/tl-parser
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/telegram-cli
${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc/telegram-cli/server.pub
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGELOG README-LUA README.es README.md \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.post.mk>