Lines 2-35
Link Here
|
2 |
# $FreeBSD: head/net-im/telegram/Makefile 385640 2015-05-07 17:26:05Z mat $ |
2 |
# $FreeBSD: head/net-im/telegram/Makefile 385640 2015-05-07 17:26:05Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= telegram |
4 |
PORTNAME= telegram |
5 |
PORTVERSION= 1.0.5.1 |
5 |
PORTVERSION= 1.3.1 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= net-im |
6 |
CATEGORIES= net-im |
|
|
7 |
MASTER_SITES= http://github.com/vysheng/tg/archive/:source1 \ |
8 |
http://github.com/vysheng/tgl/archive/:source2 \ |
9 |
http://github.com/vysheng/tl-parser/archive/:source3 |
10 |
DISTFILES= 1.3.1.tar.gz:source1 2.0.1.tar.gz:source2 master.zip:source3 |
8 |
|
11 |
|
9 |
MAINTAINER= ports@FreeBSD.org |
12 |
MAINTAINER= cpm@fbsd.es |
10 |
COMMENT= Command-line interface for Telegram |
13 |
COMMENT= Command-line interface for Telegram |
11 |
|
14 |
|
12 |
LICENSE= GPLv2 |
15 |
LICENSE= GPLv2 |
|
|
16 |
LICENSE_FILES= ${WRKSRC}/LICENSE |
13 |
|
17 |
|
14 |
LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig \ |
18 |
LIB_DEPENDS= libconfig.so:${PORTSDIR}/devel/libconfig \ |
15 |
libevent.so:${PORTSDIR}/devel/libevent2 |
19 |
libevent.so:${PORTSDIR}/devel/libevent2 |
16 |
|
20 |
|
17 |
USE_GITHUB= yes |
|
|
18 |
GH_ACCOUNT= vysheng |
19 |
GH_PROJECT= tg |
20 |
|
21 |
USES= execinfo gmake lua:52 ncurses pkgconfig readline |
21 |
USES= execinfo gmake lua:52 ncurses pkgconfig readline |
22 |
USE_OPENSSL= yes |
22 |
USE_OPENSSL= yes |
23 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
24 |
|
24 |
|
|
|
25 |
WRKSRC= ${WRKDIR}/tg-1.3.1 |
26 |
|
25 |
PLIST_FILES= bin/telegram-cli \ |
27 |
PLIST_FILES= bin/telegram-cli \ |
26 |
etc/tg-server.pub |
28 |
etc/telegram-cli/server.pub |
27 |
|
29 |
|
28 |
post-patch: |
30 |
post-extract: |
29 |
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/main.c |
31 |
@${MV} ${WRKDIR}/tgl-2.0.1/* ${WRKSRC}/tgl |
|
|
32 |
@${MV} ${WRKDIR}/tl-parser-master/* ${WRKSRC}/tgl/tl-parser |
30 |
|
33 |
|
31 |
do-install: |
34 |
do-install: |
|
|
35 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/telegram-cli |
32 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin |
36 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin |
33 |
${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc |
37 |
${INSTALL_DATA} ${WRKSRC}/tg-server.pub ${STAGEDIR}${PREFIX}/etc/telegram-cli/server.pub |
34 |
|
38 |
|
35 |
.include <bsd.port.mk> |
39 |
.include <bsd.port.mk> |