emulators/dps8m: Restore various port and build fixes

* Restore verbose build output
* Restore build fixes for PPC64 and RISC-V
* Disable optimization that overrides framework

Approved by:	portmgr (blanket, build fix)
This commit is contained in:
Daniel Engberg 2023-08-19 19:52:41 +02:00
parent a13e8d285c
commit 37e7d652f2
2 changed files with 18 additions and 0 deletions

View file

@ -1,6 +1,7 @@
PORTNAME= dps8m
DISTVERSIONPREFIX= R
DISTVERSION= 3.0.1
PORTREVISION= 1
CATEGORIES= emulators
MAINTAINER= gspurki@gmail.com
@ -20,12 +21,18 @@ LIB_DEPENDS= libuv.so:devel/libuv
USES= gmake
USE_GITLAB= yes
CFLAGS_powerpc64= -Datomic_testandset_64=atomic_testandset_long
CFLAGS_powerpc64le= -Datomic_testandset_64=atomic_testandset_long
CFLAGS_riscv64= -Datomic_testandset_64=atomic_testandset_long
MAKEFILE= GNUmakefile
PLIST_FILES= bin/dps8 \
bin/prt2pdf \
bin/punutil
MAKE_ARGS= V=1 NO_LTO=1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/dps8/dps8 ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/prt2pdf/prt2pdf ${STAGEDIR}${PREFIX}/bin

View file

@ -0,0 +1,11 @@
--- src/Makefile.mk.orig 2023-08-13 10:22:22 UTC
+++ src/Makefile.mk
@@ -294,7 +294,7 @@ endif
_DEBUGOPTFLAG := -g
ifndef TESTING
- OPTFLAGS = -O3 $(_DEBUGOPTFLAG) -U_FORTIFY_SOURCE -fno-stack-protector
+# OPTFLAGS = -O3 $(_DEBUGOPTFLAG) -U_FORTIFY_SOURCE -fno-stack-protector
ifdef DUMA
CFLAGS += -I../dps8 -I. -include dps8_duma.h
OPTFLAGS += -DDUMA=1