Skip to content

Commit

Permalink
emulators/dps8m: Restore various port and build fixes
Browse files Browse the repository at this point in the history
* Restore verbose build output
* Restore build fixes for PPC64 and RISC-V
* Disable optimization that overrides framework

Approved by:	portmgr (blanket, build fix)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Aug 19, 2023
1 parent a13e8d2 commit 37e7d65
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions emulators/dps8m/Makefile
@@ -1,6 +1,7 @@
PORTNAME= dps8m
DISTVERSIONPREFIX= R
DISTVERSION= 3.0.1
PORTREVISION= 1
CATEGORIES= emulators

MAINTAINER= gspurki@gmail.com
Expand All @@ -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
Expand Down
11 changes: 11 additions & 0 deletions emulators/dps8m/files/patch-src_Makefile.mk
@@ -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

0 comments on commit 37e7d65

Please sign in to comment.