5b082f8e6a
correctly with sparc64. Make it an option: clamav-experimental. Move all options into the options.mk file.
34 lines
1 KiB
Makefile
34 lines
1 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2007/02/28 20:42:05 xtraeme Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.clamav
|
|
PKG_SUPPORTED_OPTIONS= curl milter clamav-experimental
|
|
PKG_SUGGESTED_OPTIONS= curl
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mmilter)
|
|
# force use of pkgsrc version of libmilter -- clamav uses the sendmail binary
|
|
# to check API compatibility(!), so it must build with as new a version of
|
|
# libmilter as pkgsrc is capable of providing
|
|
USE_BUILTIN.libmilter= no
|
|
. include "../../mail/libmilter/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --enable-milter
|
|
PLIST_SUBST+= MILTER=
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-milter
|
|
# XXX --disable-milter doesn't work as expected, so we need this
|
|
CONFIGURE_ENV+= ac_cv_header_libmilter_mfapi_h=no
|
|
PLIST_SUBST+= MILTER="@comment "
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurl)
|
|
. include "../../www/curl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-libcurl
|
|
BUILDLINK_API_DEPENDS.curl+=curl>=7.10.0
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libcurl
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mclamav-experimental)
|
|
CONFIGURE_ARGS+= --enable-experimental
|
|
.endif
|