From nobody Wed Aug 02 18:53:55 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 4RGLjn6JkbzZgNN; Wed, 2 Aug 2023 18:53:56 +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 4RGLjb3YSLz4Xxx; Wed, 2 Aug 2023 18:53:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691002435; 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=cI7SOMDAEL8NDQ3WJ/1WKb+pYCRqooEqo9PJ2XqNDhA=; b=dKaOF/cp27EhtmUtmJP+z0OHL60o9EG7l3I8VM00dshzTz2aB350fVZKiqHUvroa+jO0xH 6znl3A/ZvGUzQ5wFaBdLu+MXX7OM9KC8remLl+HcGr6brjFEYLAzW522FRtVRhrfQGVPcq OcEJkaEFdh3oPwpMasMRDF1/3E0kGALVeejt/9lCxyJ0311tVX2SuWlYxojK/+b0RobIGB g4EI9P2dz+2agszbKkfRZyOf0dd5Gu2m2Fj+TmvYtZVL4bf8wxwp4Vht/7kGFyagUjLdQ4 bJSI0Lu1C/Nz/7rA3vbJNqQzMl1MsTtWFZrA/Pet0nYaL0zoIv6HUnCWG2i7Zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691002435; a=rsa-sha256; cv=none; b=OVbq3JzKdPOy00SBiMojHpmhdSmr2Eu4F2Dc2LSQmVXpuoljVUwzfRHRa78s0XPDMGWLNA J0FjTO0R1KPjq6mBN1YDppLkBS45ZPx9ws1VVTFICceS2v5F0T7gEsBOBd7UsPbJLclKX9 WzGkoqvPLcWVGZv8gXrZWK93HXVnshzMookj9ghkwZARgWBaSzEtzidmikYe1o+eo21WH1 NzSjjamhzAr4ODsgflsZZ8CS13d+e7UQvkeO1iE0oqaR2PprcJKU+dQuCi6gvADgQ672sP 5S333rNG8R6q9MrD/7rR8u6kGpaEptBkW+D0KA8GWlSbW2EJpPx04B3Eiua7NA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691002435; 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=cI7SOMDAEL8NDQ3WJ/1WKb+pYCRqooEqo9PJ2XqNDhA=; b=X/Ue6Cc6lJHmdZja1DK57fk7symFWtVXu8aSBtDuXAmPewSeIR3iJae6KjC5KO3N51+2VM smj6dfMkv/L/1TOsXQfpQC9tHSiBx/NwB9RNzZty29erTCMJFR99UzsXGs8oUd49G+JrV3 TwB5Sf0D2aXxntUkpPceFwb8aoJ8vkIT268TmXKPxoEMPmdVmflRplu1mH9X6fSII7fLK1 9TJfEVrUY7lQ+jMqpLVuHevbfo6TrlxuLfcONW6iVPdrIs+gxbQM0gLDEAGjqik+Yfsk56 Gy5jBiQPMTz/YEyr9LR2VZL7dgIDtdzO4BHheky986tay0hHtAX/UK0QkiSz9A== 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 4RGLjb2Ns5zVY1; Wed, 2 Aug 2023 18:53:55 +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 372Irt8m084527; Wed, 2 Aug 2023 18:53:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 372IrtXC084526; Wed, 2 Aug 2023 18:53:55 GMT (envelope-from git) Date: Wed, 2 Aug 2023 18:53:55 GMT Message-Id: <202308021853.372IrtXC084526@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: ec698dcda7b9 - main - games/miscom: 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: ec698dcda7b9b4817fbb083a8e06629482553e02 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=ec698dcda7b9b4817fbb083a8e06629482553e02 commit ec698dcda7b9b4817fbb083a8e06629482553e02 Author: Muhammad Moinur Rahman AuthorDate: 2023-08-02 17:14:58 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-02 18:53:44 +0000 games/miscom: Fix build with llvm16 - Utilize DOCSDIR/DATADIR macros where possible Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/miscom/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/games/miscom/Makefile b/games/miscom/Makefile index 450b0956f562..60634644454d 100644 --- a/games/miscom/Makefile +++ b/games/miscom/Makefile @@ -30,14 +30,20 @@ OPTIONS_DEFINE= DOCS CFLAGS+= -DSOUNDSDIR='\"${DATADIR}\"' -DSOUND_SUPPORT -DMORE_SOUNDBUF .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/miscom ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/miscom.6 ${STAGEDIR}${PREFIX}/man/man6 - @${MKDIR} ${STAGEDIR}${PREFIX}/share/miscom - ${INSTALL_DATA} ${WRKSRC}/sounds/* ${STAGEDIR}${PREFIX}/share/miscom - @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/miscom + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/sounds/* ${STAGEDIR}${DATADIR} + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in COPYING ChangeLog README TODO - ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/doc/miscom + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor .include