blob: 2e137d47595c2019b2775bf00ffdde2eb48713cc (
plain)
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
|
# $NetBSD: Makefile,v 1.5 2017/05/12 22:35:52 khorben Exp $
DISTNAME= telegram-purple_1.3.0.orig
PKGNAME= telegram-purple-1.3.0
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_GITHUB:=majn/}
GITHUB_PROJECT= telegram-purple
GITHUB_RELEASE= v1.3.0
MAINTAINER= khorben@defora.org
HOMEPAGE= https://github.com/majn/telegram-purple/
COMMENT= libpurple protocol plugin for the Telegram messenger
LICENSE= gnu-gpl-v3
WRKSRC= ${WRKDIR}/${PKGBASE}
USE_TOOLS+= gmake msgfmt pkg-config
GNU_CONFIGURE= yes
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/server.tglpub \
${PKG_SYSCONFDIR}/${PKGBASE}/server.tglpub
INSTALLATION_DIRS+= ${EGDIR}
OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE}
SUBST_CLASSES+= tglpub
SUBST_STAGE.tglpub= post-patch
SUBST_MESSAGE.tglpub= Adjust path to server.tglpub
SUBST_FILES.tglpub= telegram-purple.c
SUBST_SED.tglpub= -e "s|/etc/|${PKG_SYSCONFDIR}/|g"
post-install:
${INSTALL_DATA} ${WRKSRC}/tg-server.tglpub ${DESTDIR}${EGDIR}/server.tglpub
.include "../../chat/libpurple/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|