it seems something was fixed between 0.95 and 0.95.1 meaning the bundled

libltdl no longer needs be used, so switch back to the usual one and add
the dependency on ports-tree libltdl.

prompted by a diff from Mikolaj Kucharski, ok with mbalmer (maintainer).
This commit is contained in:
sthen 2009-04-12 09:28:45 +00:00
parent 3cd037f926
commit 650ff6f285

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.42 2009/04/11 14:13:58 sthen Exp $
# $OpenBSD: Makefile,v 1.43 2009/04/12 09:28:45 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.95.1
PKGNAME= ${DISTNAME}p0
CATEGORIES= security
SHARED_LIBS= clamav 11.0 \
clamunrar 2.0 \
@ -22,7 +23,8 @@ WANTLIB= c milter ncurses pthread z
BUILD_DEPENDS= ::devel/check
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
iconv.>=4::converters/libiconv
iconv.>=4::converters/libiconv \
ltdl:libltdl-*:devel/libtool,-ltdl
RUN_DEPENDS= :lha-*:archivers/lha \
:zoo-*:archivers/zoo \
@ -31,11 +33,6 @@ RUN_DEPENDS= :lha-*:archivers/lha \
USE_LIBTOOL= Yes
# XXX dlopen() of modules fails with the ports-tree libltdl.
# the bundled libltdl won't build with ports-tree libtool;
# use bundled versions of both for now.
LIBTOOL= ${WRKSRC}/libtool
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
CONFIGURE_STYLE= gnu
@ -48,7 +45,9 @@ CONFIGURE_ARGS+= --disable-clamav \
--with-user=_clamav \
--with-group=_clamav \
--disable-cr \
--with-dbdir=/var/db/clamav
--with-dbdir=/var/db/clamav \
--with-ltdl-include=${LOCALBASE}/include \
--with-ltdl-lib=${LOCALBASE}/lib
REGRESS_TARGET= check