mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Fixed build error that occurs when libsavi is installed and added
ONLY_FOR_ARCHS since this port is for i386 only (reported by Kris) Approved by: nectar (mentor), maintainer
This commit is contained in:
parent
cec82227a1
commit
c3129ccd66
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126430
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user