aboutsummaryrefslogtreecommitdiff
path: root/irc/znc-push/Makefile
blob: e0854a641eb941ee905aa2ac767a9d09c207b055 (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=	znc-push
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.0-173
DISTVERSIONSUFFIX=	-g78d0385
PORTREVISION=	1
CATEGORIES=	irc

MAINTAINER=	dor.bsd@xm0.uk
COMMENT=	Push notification service module for ZNC

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	znc:irc/znc
LIB_DEPENDS=	libicudata.so:devel/icu
RUN_DEPENDS=	znc:irc/znc

USES=		compiler:c++11-lang gmake localbase:ldflags ssl

USE_GITHUB=	yes
GH_ACCOUNT=	jreese

MAKE_ENV=	version=${PORTVERSION}

# v2.0.0-{rc,dev} are ancient release candidates from 2014 for the seemingly
# abandoned Python branch.
PORTSCOUT=	skipv:v2.0.0-rc,v2.0.0-dev

PLIST_FILES=	lib/znc/push.so
PORTDOCS=	*.md

OPTIONS_DEFINE=	CURL DOCS

CURL_DESC=		Use curl for HTTP requests
CURL_LIB_DEPENDS=	libcurl.so:ftp/curl
CURL_MAKE_ENV=		curl=yes

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/znc
	${INSTALL_PROGRAM} ${WRKSRC}/push.so ${STAGEDIR}${PREFIX}/lib/znc/push.so
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/znc/push.so

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README.md ${WRKSRC}/doc/*.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>