Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Oct 2023 19:50:17 GMT
From:      Daniel Engberg <diizzy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d1266382c292 - main - benchmarks/unixbench: Remove custom optimization and clean up Makefile
Message-ID:  <202310021950.392JoHfr028322@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d1266382c292f5f6731f0e29591cabbbd13f9f93

commit d1266382c292f5f6731f0e29591cabbbd13f9f93
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-09-30 21:32:02 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-10-02 19:50:13 +0000

    benchmarks/unixbench: Remove custom optimization and clean up Makefile
    
    * Define LICENSE_FILE
    * Use USES= localbase:ldflags helper
    * Drop OPTIMIZED_CFLAGS
    * Some changes to Makefile to improve readability
    
    PR:             272705
    Reviewed by:    pizzamig (maintainer)
---
 benchmarks/unixbench/Makefile | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/benchmarks/unixbench/Makefile b/benchmarks/unixbench/Makefile
index 71b578e03425..4cfcae1b486d 100644
--- a/benchmarks/unixbench/Makefile
+++ b/benchmarks/unixbench/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	unixbench
 DISTVERSIONPREFIX=	v
 DISTVERSION=	5.1.3-51
 DISTVERSIONSUFFIX=	-g6705203
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	benchmarks
 
 MAINTAINER=	pizzamig@FreeBSD.org
@@ -10,27 +10,24 @@ COMMENT=	BYTE magazine's Public Domain benchmark for UNIX
 WWW=		https://github.com/kdlucas/byte-unixbench
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 RUN_DEPENDS=	x11perf:x11/x11perf
 
-USES=		gmake gl perl5 shebangfix xorg
+USES=		gmake gl localbase:ldflags perl5 shebangfix xorg
+USE_GL=		gl
+SHEBANG_FILES=	Run pgms/gfx-x11
+USE_XORG=	x11 xext
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	kdlucas
 GH_PROJECT=	byte-unixbench
+
 WRKSRC_SUBDIR=	UnixBench
-USE_GL=	gl
-USE_XORG=	x11 xext
-CFLAGS+=	-I${LOCALBASE}/include \
-			-L${LOCALBASE}/lib
 
-OPTIONS_DEFINE=	OPTIMIZED_CFLAGS
-OPTIONS_EXCLUDE_aarch64=	OPTIMIZED_CFLAGS
-MAKE_ENV=	"UB_GCC_OPTIONS=-O3 -ffast-math -fomit-frame-pointer"
-#march generates code that can be incompatibe with previous CPU generations
-OPTIMIZED_CFLAGS_MAKE_ENV=	"UB_GCC_OPTIONS=-O3 -ffast-math -fomit-frame-pointer -march=native"
+MAKE_ENV=	UB_GCC_OPTIONS=" "
 
 SUB_FILES=	unixbench
-SHEBANG_FILES=	Run pgms/gfx-x11
 
 post-patch:
 	${REINPLACE_CMD} -e 's/^CC=gcc/#CC=gcc/' ${WRKSRC}/Makefile



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310021950.392JoHfr028322>