blob: 0a94ff985a0a0cea34dd21e739e6d9d3ad9f2fc0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= telegram-cli
DISTVERSION= 20200106
PORTREVISION= 1
CATEGORIES= net-im
MAINTAINER= ports@FreeBSD.org
COMMENT= Command-line interface for Telegram
WWW= https://github.com/kenorb-contrib/tg
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>
|