# $MidnightBSD: trunk/net-im/sendxmpp/Makefile 19606 2015-07-16 03:02:03Z laffer1 $

PORTNAME=	sendxmpp
PORTVERSION=	1.24
DISTVERSIONPREFIX=	v
CATEGORIES=	net-im perl5

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Perl-script to send xmpp (jabber) messages

LICENSE=	gpl2

BUILD_DEPENDS=	p5-Net-XMPP>0.0:${PORTSDIR}/net-im/p5-Net-XMPP
RUN_DEPENDS=	p5-Getopt-Long>0.0:${PORTSDIR}/devel/p5-Getopt-Long

USE_GITHUB=	yes
GH_ACCOUNT=	lhost

PERL_CONFIGURE=	yes
USES=		perl5
USE_PERL5=	configure
NO_ARCH=	yes

PORTEXAMPLES=	send-url.xml sendxmpp-raw-messages
PLIST_FILES=	bin/sendxmpp man/man1/sendxmpp.1.gz

OPTIONS_DEFINE=	EXAMPLES

post-install:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
