1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/security/p5-Net-SAML/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

39 lines
972 B
Makefile

PORTNAME= Net-SAML
PORTVERSION= 1.42
CATEGORIES= security perl5
MASTER_SITES= http://zxid.org/ \
CPAN
PKGNAMEPREFIX= p5-
DISTNAME= zxid-${PORTVERSION}
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl extension for using SAML SSO
LICENSE= APACHE20
LIB_DEPENDS= libcurl.so:ftp/curl \
libzxid.so:security/zxid
OPTIONS_DEFINE= EXAMPLES
USES= perl5 shebangfix tar:tgz
USE_PERL5= configure
WRKSRC= ${WRKDIR}/${DISTNAME}/Net
PORTEXAMPLES= zxid.pl zxidhlo.pl
SHEBANG_FILES= ../zxid.pl ../zxidhlo.pl
post-patch:
@${REINPLACE_CMD} -e 's|hexdump|my&|' ${WRKSRC}/../errmac.h
@${REINPLACE_CMD} -e '/INC/ s|-I\.\.|& -I${LOCALBASE}/include|; /LIBS/ s|-L\.\.|-L${LOCALBASE}/lib|; s|-ldl||' ${WRKSRC}/Makefile.PL
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/SAML/SAML.so
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/ && ${INSTALL_SCRIPT} ../zxid.pl ../zxidhlo.pl ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>