From nobody Mon Jul 24 14:46:10 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R8jdt62v2z4p089; Mon, 24 Jul 2023 14:46:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R8jdt5cDcz4bdN; Mon, 24 Jul 2023 14:46:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690209970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ePouixJ0Kb8nyzo6/4vf4h8wqzvpg3EwvyqBV+nbZsk=; b=h+W/PIZdIf4h8ohszpJ3yJkJUZfYa9XpxnTXS3Ia9a8SGzrSIFmdgkZAGjlRVUYOuW6Ghi yN/0ohukg+UvSwDK7PrjiYrjSpWhO5I+6EMP3k+nn5tWlgpHtNppllXC6EC3vWVDL1nYGi 4/qjmc9a/Ba7HL08UbvNiJ2l/PI+JG/BNVFZDEG2zmcHgEmP9WD+B7PG6vgeYKRP1pyDwm ksuBfaJyiDbMJGhkNchoMjXSB680bMHf0F9UNh8ACP5rQurPkdex62XwW8eJKgkB6ZpZLm KltkHtEpeB0OCk23merOPpsdgENNnZFMCgUNsJ1LQFuBM7DY8jXHKrf8T6zl3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690209970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ePouixJ0Kb8nyzo6/4vf4h8wqzvpg3EwvyqBV+nbZsk=; b=Fru1eOuUVWZ318BuyQzEcWRuO3yaU37DKsHYGU5MjEqk0vMw+ZRbE0mfZt3QwTkIU5VOZ1 MHFYEPvSHJCwzzMGSgktuMt4mLysKzsBYGrncm+C/4S59NMioiNusFusHpXAmyuYnrIeGd mZXRPH7xJeAwIJLi+x8yEHs34cGUKTF7mq0b1fhwkrIlTk3ljL3uUI2M9Mxg257Mg5+7Hx fgKCO2d4ZtmJmPw3zqSL043r7qoxlhYwqjmRBsKMsjvOatfPccdWAWkcXCK9zMomZOwFmy 20/AXB2pIRz2Wzju5ThkQ7pYH1DfYa78qZ/Pc00IZ7pZJhGlKtm/wCKB2xYzZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690209970; a=rsa-sha256; cv=none; b=x851yiyndCVy4pyw5uF207Dq8GYI6T2pdaKAAISUTnumrKY1br48LX08uC5sUBtpOE3e4a eDFxLFY+JhF//z/oI1wfCS/ksHV2p7xr1/cOfQsbL0fsHQ2J4WZbjSrWd6E22I2UHvgJSX fP67onPRtasbZy4k6QB7zc6h7hrU3XaA4lUjNECoS+18+/ISG5Glv33H9EDvdyFwsUB0jv 4YrLTBWgvmBoiALlxVN1k5MdUYMxF6CUr61QNnQbYK1oPuN9MOiHbt+xhB9SFFgJUbqJG5 GaCL9YPjp5cmt2pukY7Q9po3D+eQARRKLdO1GeB1TepvFIi9c+dgcz+24NM9kg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R8jdt4jzJzMQV; Mon, 24 Jul 2023 14:46:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36OEkA0F080138; Mon, 24 Jul 2023 14:46:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36OEkAdg080137; Mon, 24 Jul 2023 14:46:10 GMT (envelope-from git) Date: Mon, 24 Jul 2023 14:46:10 GMT Message-Id: <202307241446.36OEkAdg080137@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 1c1f78885f8b - main - mail/spamprobe: Fix build with llvm16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1c1f78885f8bacfb70e02d7a3cd02991ad79dc32 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=1c1f78885f8bacfb70e02d7a3cd02991ad79dc32 commit 1c1f78885f8bacfb70e02d7a3cd02991ad79dc32 Author: Muhammad Moinur Rahman AuthorDate: 2023-07-24 13:56:58 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-07-24 14:46:02 +0000 mail/spamprobe: Fix build with llvm16 - Utilize USES=localbase - Pet portclippy Sponsored by: The FreeBSD Foundation --- mail/spamprobe/Makefile | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/mail/spamprobe/Makefile b/mail/spamprobe/Makefile index b76a2e9c4548..48696bea3b38 100644 --- a/mail/spamprobe/Makefile +++ b/mail/spamprobe/Makefile @@ -8,49 +8,44 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Spam detector using Bayesian analysis of word counts WWW= http://spamprobe.sourceforge.net/ +USES= localbase:ldflags +USE_CXXSTD= c++14 + GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-default-8bit PLIST_FILES= bin/spamprobe man/man1/spamprobe.1.gz OPTIONS_DEFINE= GIF JPEG PNG +OPTIONS_DEFAULT=PBL GIF JPEG PNG OPTIONS_MULTI= DATABASE OPTIONS_MULTI_DATABASE= PBL BDB -OPTIONS_DEFAULT=PBL GIF JPEG PNG -PBL_DESC= PBL database support (author's recommended data store) -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - -# PBL support -PBL_BUILD_DEPENDS= ${LOCALBASE}/lib/libpbl.a:databases/libpbl -PBL_RUN_DEPENDS+= ${PBL_BUILD_DEPENDS} -PBL_CONFIGURE_WITH= pbl -PBL_LDFLAGS= -lpbl +PBL_DESC= PBL database support (author's recommended data store) # BerkleyDB support +BDB_USES= bdb BDB_CONFIGURE_ENABLE= cdb BDB_CONFIGURE_WITH= db -BDB_CPPFLAGS= -DUSE_DB=1 +BDB_CPPFLAGS= -DUSE_DB=1 -I${BDB_INCLUDE_DIR} +BDB_LDFLAGS= -l${BDB_LIB_NAME} # giflib support -GIF_CONFIGURE_WITH= gif GIF_LIB_DEPENDS= libgif.so:graphics/giflib - -# PNG support -PNG_CONFIGURE_WITH= png -PNG_LIB_DEPENDS= libpng.so:graphics/png +GIF_CONFIGURE_WITH= gif # JPEG support -JPEG_CONFIGURE_WITH=jpeg JPEG_USES= jpeg +JPEG_CONFIGURE_WITH=jpeg -.include +# PBL support +PBL_BUILD_DEPENDS= ${LOCALBASE}/lib/libpbl.a:databases/libpbl +PBL_RUN_DEPENDS+= ${PBL_BUILD_DEPENDS} +PBL_CONFIGURE_WITH= pbl +PBL_LDFLAGS= -lpbl -.if ${PORT_OPTIONS:MBDB} -USES+= bdb -CPPFLAGS+= -I${BDB_INCLUDE_DIR} -LDFLAGS+= -l${BDB_LIB_NAME} -.endif +# PNG support +PNG_LIB_DEPENDS= libpng.so:graphics/png +PNG_CONFIGURE_WITH= png .include