diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/p5-SAVI-Perl/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/security/p5-SAVI-Perl/Makefile b/security/p5-SAVI-Perl/Makefile index 60b03fb7d3de..756e342abead 100644 --- a/security/p5-SAVI-Perl/Makefile +++ b/security/p5-SAVI-Perl/Makefile @@ -6,6 +6,7 @@ PORTNAME= SAVI-Perl PORTVERSION= 0.30 +PORTREVISION= 1 CATEGORIES= security perl5 MASTER_SITES= http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/dist/ MASTER_SITE_SUBDIR= security @@ -17,6 +18,7 @@ COMMENT= Perl5 module interface to Sophos AntiVirus MAN= SAVI.3 PERL_CONFIGURE= yes +ONLY_FOR_ARCHS= i386 .include <bsd.port.pre.mk> @@ -26,4 +28,15 @@ IGNORE= Port requires perl 5.6 or newer. Upgrade your perl and try again. \ yet. .endif +.if exists(${PREFIX}/lib/libsavi.so.3) && !exists(${PREFIX}/lib/libsavi.so) +FAKELIBDIR=${WRKDIR}/lib +CONFIGURE_ARGS+= LDDLFLAGS='-shared -L ${FAKELIBDIR}' +.endif + +.if defined(FAKELIBDIR) +pre-configure: + ${MKDIR} ${FAKELIBDIR} + ${LN} -s ${PREFIX}/lib/libsavi.so.3 ${FAKELIBDIR}/libsavi.so +.endif + .include <bsd.port.post.mk> |