freebsd-ports/net-im/libstrophe/Makefile
Daniel Engberg a3557f3899 net-im/libstrophe: Use upstream release archive and improve port
- Use upstream release archive as recommended in USE_GITHUB section
  in Porters Handbook
- Add option to use libxml2
- Rearrange Makefile to follow Porters Handbook more closely

PR:		266429
Reviewed by:	ashish (maintainer)
2022-09-26 00:46:47 +02:00

32 lines
712 B
Makefile

PORTNAME= libstrophe
DISTVERSION= 0.12.2
CATEGORIES= net-im
MASTER_SITES= https://github.com/strophe/${PORTNAME}/releases/download/${DISTVERSION}/
MAINTAINER= ashish@FreeBSD.org
COMMENT= Lightweight XMPP library
WWW= https://strophe.im/libstrophe/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/MIT-LICENSE.txt
USES= gmake libtool pkgconfig ssl tar:xz
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
OPTIONS_DEFAULT= EXPAT
OPTIONS_SINGLE= XML
OPTIONS_SINGLE_XML= EXPAT LIBXML2
EXPAT_LIB_DEPENDS= libexpat.so:textproc/expat2
LIBXML2_USE= GNOME=libxml2
LIBXML2_USES= gnome
LIBXML2_CONFIGURE_WITH= libxml2
.include <bsd.port.mk>