freebsd-ports/net-im/telegram-cli/Makefile
Mateusz Piotrowski 20101b8a1d Add net-im/telegram-cli
Telegram-cli is a command-line interface
for the Telegram instant-messaging network.

WWW: https://github.com/kenorb-contrib/tg

This is a repocopy of net-im/telegram. There are 2 reasons for it:

1. net-im/telegram upstream (https://github.com/vysheng/tg) is not active
   anymore. Telegram CLI is being maintained by a community gathered around
   a fork on GitHub: https://github.com/kenorb-contrib/tg. People might
   want to stick to the original version of Telegram CLI, so let's give
   them an option to do that.
2. Most other packaging systems package this piece of software as
   telegram-cli (see https://repology.org/project/telegram-cli/versions).
   Let's take this opportunity to have a package name consistent with other
   projects.
2020-10-05 22:45:14 +00:00

48 lines
1.1 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= telegram-cli
DISTVERSION= 20200106
CATEGORIES= net-im
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Command-line interface for Telegram
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libconfig.so:devel/libconfig \
libevent.so:devel/libevent \
libjansson.so:devel/jansson
USES= gmake lua pkgconfig readline ssl
USE_GITHUB= yes
GH_ACCOUNT= kenorb-contrib
GH_PROJECT= tg
GH_TUPLE= kenorb-contrib:tgl:57f1bc4:tgl/tgl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-python
CFLAGS+= -fcommon
CONFLICTS_INSTALL= telegram
PLIST_FILES= ${ETCDIR}/server.pub \
bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz
PORTDOCS= CHANGELOG README-LUA README.es README.md
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${ETCDIR}/server.pub
${INSTALL_MAN} ${WRKSRC}/telegram.1 ${STAGEDIR}${PREFIX}/share/man/man1/${PORTNAME}.1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>