From nobody Sun Aug 6 12:30:49 2023 X-Original-To: dev-commits-ports-all@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 4RJf1j5MYRz4pybx; Sun, 6 Aug 2023 12:30:49 +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 4RJf1j4Qn2z4PHR; Sun, 6 Aug 2023 12:30:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691325049; 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=1yX/c86/CCUI/0e4xxe2uK5gx5OvzPwLjru3K3zTRoA=; b=dRKg/YWdYerKHZDOnN/ZAeBV4SuKng2ZJGprVZhpFq+f8P83JHk55CExoDtTcjGbLptnsd dZRvw2qGVJXSugiN/yKclDehQiLD7BLnOYk2i+O3/SH/X4c8D0NTfzM+u9yiRiincGFxAY 5/aMPtJjyktLHERWBYvC8DoowjQmd3HCHobyRA6PPjZWcHVadXi2FrknYoHujxoi7VD1d9 rEOjXlSMJrm1vvBz53SpbaEThZtCPBSTsrEmeGzBe3kwjwDgKfQVVPWxqxchBs7HYBKsTW L1XCcEQCd1Hq9UE/OGnDvClEnoXOvAXs4wIyRRgeEhoWO2kZEKs/dl23ZwlSmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691325049; 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=1yX/c86/CCUI/0e4xxe2uK5gx5OvzPwLjru3K3zTRoA=; b=XDTZ8phpE3debdALY+CQSyUXyg1SHQU3CiWFamabKiZFFBkzcEZT5u4MuATe7EXxZV9cd6 P5/DElg20YY1sTqzr5O23j/CKCW0LeGr1zkwV+kvsVLaM9H0IwCzO3XFxlM4GgP4zNUX3b 5pKvf6l2q0GT34eAshvGhJ2t3yUVebUDurcDV4NjQI7WsD0SrI+SKAbek61/QXW7plJGFd XLy0FMCDXKjgdm9Ec9iwfGddJcyNXbiMdgO+QcWSoLbttLp6igAKx+TJHuxiwny6jIG+oh 5F7Dwf//ZkQtgVmcnj/Z1iwx9rF86//sTZlV05GqaolZ5rzdMFaaZV298s1Q9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691325049; a=rsa-sha256; cv=none; b=ne52YMlXz1tiduv0j+4p0qiThK+CKLmMAqO2LUAAnLJe+42vW8taBR8hmmn4cvGfwOv0Za rdL74Qj+iJ3nTp/b3H554ZwO/CbEn0LQ3SkRNOVPtVUThyZIsh4IlxK+et8NqxmtIXHAmA 0LyNnlajc7cYb1axdESkMSDIQSjInMEsguIQlQ/Yu3Uf//MGnp4XFQcxDporKzICWkuNPr +ojmhBnal5AlVu0tQX/i7a1qGSo9IDPcab+yq50t6OAV2HbSC72r3CS324rlR62s5gqvgx sRPg0ScVw1XqaYobDJXfv9NZRcchlXDWlYzn6ig2/jg2nbY/qykpcxFKL1jV7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RJf1j3W48z18vF; Sun, 6 Aug 2023 12:30:49 +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 376CUn4j034953; Sun, 6 Aug 2023 12:30:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 376CUnUU034952; Sun, 6 Aug 2023 12:30:49 GMT (envelope-from git) Date: Sun, 6 Aug 2023 12:30:49 GMT Message-Id: <202308061230.376CUnUU034952@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: d841a36e5fd7 - main - games/glsfcave: Fix build with llvm16 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: d841a36e5fd7495df066beb9ba61ca0451ac57c8 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=d841a36e5fd7495df066beb9ba61ca0451ac57c8 commit d841a36e5fd7495df066beb9ba61ca0451ac57c8 Author: Muhammad Moinur Rahman AuthorDate: 2023-08-06 12:10:55 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-06 12:30:36 +0000 games/glsfcave: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/glsfcave/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/games/glsfcave/Makefile b/games/glsfcave/Makefile index 8ce67d092a04..d7054d3d9ac5 100644 --- a/games/glsfcave/Makefile +++ b/games/glsfcave/Makefile @@ -19,9 +19,17 @@ PORTDOCS= * OPTIONS_DEFINE= DOCS +.include + do-build: +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) + cd ${WRKSRC} && ${CC} -o glsfcave main.c -I${LOCALBASE}/include \ + -Wno-error=incompatible-function-pointer-types \ + -L${LOCALBASE}/lib -lglut -lGL -lGLU +.else cd ${WRKSRC} && ${CC} -o glsfcave main.c -I${LOCALBASE}/include \ -L${LOCALBASE}/lib -lglut -lGL -lGLU +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/glsfcave ${STAGEDIR}${PREFIX}/bin