Files
ports/security/p5-PerlCryptLib/Makefile
T
Marcelo Araujo 4aaab89f57 - Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_CPAN} to CPAN.
PR:		ports/122674
Submitted by:	Philip M. Gollucci <pgollucci@p6m7g8.com>
Reworked by:	araujo (myself)
Approved by:	portmgr (pav)
2008-04-17 14:30:31 +00:00

40 lines
1.0 KiB
Makefile

# New ports collection makefile for: p5-PerlCryptLib
# Date created: 2006-08-08
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= PerlCryptLib
PORTVERSION= 1.04
CATEGORIES= security perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/A/AL/ALVAROL
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl interface to Peter Guttman cryptlib API
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= cl:${PORTSDIR}/security/cryptlib
RUN_DEPENDS= ${SITE_PERL}/enum.pm:${PORTSDIR}/devel/p5-enum
PERL_CONFIGURE= yes
USE_OPENSSL= yes
MAN3= PerlCryptLib.3
post-patch:
${PERL} -pi -e 's,^#!/bin/bash,#!${LOCALBASE}/bin/bash,;' \
-e 's,^read .* cl_path_in .*$$,cl_path_in=${LOCALBASE}/include,' \
${WRKSRC}/configure
${PERL} -pi -e 's,^use 5\.008.*$$,,;' \
-e 's,'\''$$, -L${OPENSSLINC} $$&, if /INC/' ${WRKSRC}/Makefile.PL
${PERL} -pi -e 's,\.\./cryptlib322,${LOCALBASE}/include,' \
${WRKSRC}/PerlCryptLib.xs
post-configure:
${PERL} -pi -e 's,-lpthread,${PTHREAD_LIBS},' ${WRKSRC}/Makefile
.include <bsd.port.mk>