pkgsrc/chat/irssi-xmpp/Makefile
nia 2fd583386e irssi-xmpp: fix fetch
the original download site now redirects to an autogenerated github
tag tarball, which means the checksums no longer match.

poked by wiz.
2021-04-29 07:55:06 +00:00

49 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2021/04/29 07:55:06 nia Exp $
#
DISTNAME= irssi-xmpp-0.54
PKGREVISION= 3
CATEGORIES= chat
DISTFILES= ${DISTNAME}.tar.gz ${IRSSI_DISTFILE}
# XXX: remove when updating
DIST_SUBDIR= ${PKGNAME_NOREV}
SITES.${DISTNAME}.tar.gz=\
-https://github.com/cdidier/irssi-xmpp/archive/refs/tags/v${PKGVERSION_NOREV}.tar.gz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://cybione.org/~irssi-xmpp/
COMMENT= Irssi plugin to connect to the Jabber network
LICENSE= gnu-gpl-v2
DEPENDS+= irssi>=${IRSSI_VERSION}:../../chat/irssi
.include "../../mk/bsd.prefs.mk"
.include "../../chat/irssi/Makefile.common"
MAKE_JOBS_SAFE= no
USE_TOOLS+= pkg-config
WRKSRC= ${WRKDIR}/${IRSSI_DISTNAME}/${DISTNAME}
MAKE_ENV+= IRSSI_INCLUDE="${WRKDIR}/${IRSSI_DISTNAME}"
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-build
SUBST_MESSAGE.makefile= Fixing doc-install Makefile target.
SUBST_FILES.makefile= Makefile
SUBST_SED.makefile+= -e '/docs/s/install/install -m 644/'
SUBST_CLASSES.Darwin+= osxmk
SUBST_STAGE.osxmk= pre-build
SUBST_FILES.osxmk= config.mk
SUBST_SED.osxmk= -e 's,-shared,-dynamiclib -undefined dynamic_lookup,'
CFLAGS.SunOS+= -D__BEGIN_DECLS= -D__END_DECLS=
post-extract:
${MV} ${WRKDIR}/${DISTNAME} ${WRKDIR}/${IRSSI_DISTNAME}
${CP} ${IRSSI_CONFIG_H} ${WRKSRC}/src/config.h
.include "../../chat/loudmouth/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"