freebsd-ports/security/p5-Net-SAML/Makefile
Mathieu Arnold 597afc47ba Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:25:16 +00:00

40 lines
985 B
Makefile

# $FreeBSD$
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>