From nobody Fri Jul 21 19:58:04 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 4R70j84l47z4dW1v; Fri, 21 Jul 2023 19:58:04 +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 4R70j83bD5z3JTy; Fri, 21 Jul 2023 19:58:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689969484; 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=DYmrv/ULHCPRalm02gm+8l/L2X3fZW8wL/UTh4RUoX8=; b=dsAVCltYmRL7DN0Hxnvf7SZWM+qMSifHcWjYLGm/ZMAVlLYiNyewf2FZncIeLs6BkurgDX rAZ5wDCp4epezRDesUDi8Eh9oni3usEn5p1d62KpbQ6RgD/3WYgQb6jc7nWyhgmvl7nwZz HRGuoVsRN7iqPU/prHXU9L/LLDb6IDJht2XplRqtJRPRoD4GO+Gw/ffTnNqwioR8Gt++Vt Je/mJlnmvBvz3DYZx6gF2hXHqTKSSyT++kELzYYaxClibMamqbfB1+2s9bFEF+1LuZSeBW eSK/0lD4twlYyObIedlrK4Kg5ESJROHZoDgyXzbCGFT1doGtn58NR/7S+Kv4cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689969484; 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=DYmrv/ULHCPRalm02gm+8l/L2X3fZW8wL/UTh4RUoX8=; b=Lwozq4YyxXObmRuol1pDqCrjOBE6DuEVDKfCuzuWCVIJRUeMj7SyJYUS+4ue80iQinKNPX vXZS9erJe4oYTxtVukwrSJEMACtq+ovs2NrZY2xez4FHAsGyy0ATheGKbAfOQ4I1rDJltN JU8u62S23VbwpSFhfF+3uWW2W7DXUgtCJDad089kp8+k5KFZt5PllRt8ltm2/OgGqVDF5Z jLjjdwmzV1tAtBdLV4WBFa4Bq7/tdeI88pcekO6H2QKuZUjWvxOKigVd8ahXdgFh0y8i9x kJYvI+nvkdqP3XIGHQM++Fw6vEpl31RhbRdtFE1HSIpyebm9FjCzzqW21L1kRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689969484; a=rsa-sha256; cv=none; b=reUPvHZuuYMvoRocnWJ3TmAeaxzVnXtUbJeOKmnwUyCGpxG/8Ih0tBYDPBBanb6JFt7v8d vj9p2bZ7o+nMRqmMjuSOYdqsr7do54MFco80kTfRCjKs8MPFe8V4DcJdEl6ZR7+0F6iGYc 3VNb1921Ds+ApvVchgyMjLhANyvKI0p6AC2VBCAE/RAnbXkenBiU+yl5/zDyRJtd4o9jPm L/adtuJi8BAbHpjkb92Vqx6l29sY8afeWW+Zq+GSnRabKJke20tobptflfwKoa200VN44/ FpZcVCCpr/Sur3r6Z6GiqYpRdo1nAx8pMJT30r/aUpYZIufTuyzyIZvWeThaGQ== 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 4R70j82fVSzQxr; Fri, 21 Jul 2023 19:58:04 +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 36LJw4jA041222; Fri, 21 Jul 2023 19:58:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36LJw41V041221; Fri, 21 Jul 2023 19:58:04 GMT (envelope-from git) Date: Fri, 21 Jul 2023 19:58:04 GMT Message-Id: <202307211958.36LJw41V041221@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: 681db9df6bae - main - converters/xdeview: 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: 681db9df6bae3fcf0be032e3be44b0eaadd8a189 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=681db9df6bae3fcf0be032e3be44b0eaadd8a189 commit 681db9df6bae3fcf0be032e3be44b0eaadd8a189 Author: Muhammad Moinur Rahman AuthorDate: 2023-07-21 19:21:26 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-07-21 19:57:52 +0000 converters/xdeview: Fix build with llvm16 - Utilize USES=localbase - Pet portclippy Sponsored by: The FreeBSD Foundation --- converters/xdeview/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/converters/xdeview/Makefile b/converters/xdeview/Makefile index 5b086633000a..b202f2a2d125 100644 --- a/converters/xdeview/Makefile +++ b/converters/xdeview/Makefile @@ -14,7 +14,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libuu.so:converters/uulib -USES= desthack tk +USES= desthack localbase:ldflags tk + GNU_CONFIGURE= yes # Explicitly disable Tcl otherwise the configure script picks-up # crud from the $PATH like /usr/opt/Simili/tcl/. @@ -23,17 +24,21 @@ ALL_TARGET= xdeview INSTALL_TARGET= install-tcl CPPFLAGS+= -I${TCL_INCLUDEDIR} -DHAVE_TCL \ - -I${TK_INCLUDEDIR} -DHAVE_TK \ - -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib \ - -lX11 -ltcl${TCL_VER:S/.//} \ + -I${TK_INCLUDEDIR} -DHAVE_TK +LDFLAGS+= -lX11 -ltcl${TCL_VER:S/.//} \ -ltk${TCL_VER:S/.//} -lm -PORTDOCS= * PLIST_FILES= bin/uuwish bin/xdeview man/man1/xdeview.1.gz +PORTDOCS= * OPTIONS_DEFINE= DOCS +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uuwish ${INSTALL_MAN} ${WRKSRC}/man/xdeview.1 ${STAGEDIR}${MANPREFIX}/man/man1