Skip to content

Commit

Permalink
Update template for NetBSD.
Browse files Browse the repository at this point in the history
Bump to version 1.10.6c.
Using only C/C++ code for i386.
This allows you to avoid using the
sysctl -w security.pax.mprotect.global=0
command, and also eliminates TEXTREL.
  • Loading branch information
tx00100xt committed Dec 8, 2023
1 parent 32cbf77 commit f7697fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ cmake ..
make -j4
make install
```
The **i386** version will only work with **sysctl -w security.pax.mprotect.global=0**
For **i386** use **cmake .. -DUSE_ASM=OFF**
To build a binary package for installation on the system, you can use the template:
https://github.com/tx00100xt/SeriousSamClassic/tree/main/templates

Expand Down
22 changes: 8 additions & 14 deletions templates/netbsd/pkgsrc/games/serioussam/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# $NetBSD: Makefile,v 1.22 2023/11/25 13:19:11 wiz Exp $
# The source code also contains definitions for
# architectures riscv64 s390x powerpc64le.
# Building code for them workd.
# Work on real hardware has been
# tested for architectures: armv7 aaarch64 under Linux.
V= 1.10.6b

V= 1.10.6c
N= SeriousSamClassic

DISTNAME= ${N}-${V}
Expand All @@ -16,9 +12,9 @@ GITHUB_PROJECT= ${N}
GITHUB_TAG= ${V}
EXTRACT_SUFX= .tar.gz

MAINTAINER= <YOUR MAIL>
MAINTAINER= [email protected]
HOMEPAGE= https://github.com/tx00100xt/SeriousSamClassic
COMMENT= Open spurce version of game Serious Sam Classic
COMMENT= Open source version of game Serious Sam Classic
LICENSE= gnu-gpl-v2

WRKSRC= ${WRKDIR}/${DISTNAME}
Expand All @@ -42,14 +38,12 @@ CXXFLAGS+= -DIOAPI_NO_64
.endif

.if ${MACHINE_ARCH} == "i386"
TOOL_DEPENDS+= nasm>=1.1:../../devel/nasm
CMAKE_ARGS+= -DUSE_I386_NASM_ASM=ON
CMAKE_ARGS+= -DUSE_ASM=OFF
.endif

# Unocmment this for aarch64 and armv7 architectures
#.if ${MACHINE_ARCH} == "armv7" || ${MACHINE_ARCH} == "aarch64"
#CMAKE_ARGS+= -DRPI4=ON
#.endif
.if ${MACHINE_ARCH} == "armv7" || ${MACHINE_ARCH} == "aarch64"
CMAKE_ARGS+= -DRPI4=ON
.endif

INSTALLATION_DIRS+= man
INSTALLATION_DIRS+= man/man1
Expand Down
6 changes: 3 additions & 3 deletions templates/netbsd/pkgsrc/games/serioussam/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.6 2023/11/25 10:43:53 nia Exp $

BLAKE2s (SeriousSamClassic-1.10.6b.tar.gz) = dd40444b8afb92d622ff8f991bbf7cd16cd0c991494656ee441498c894cd7304
SHA512 (SeriousSamClassic-1.10.6b.tar.gz) = 149263779588857a4efb8ceffebede03c1619946d91a19a3cfe9f6446d74caa5cab33bee2d34a46075bff9dbe752d634e846e2278cf2154ed731b0bd6033b3ec
Size (SeriousSamClassic-1.10.6b.tar.gz) = 28933221 bytes
BLAKE2s (SeriousSamClassic-1.10.6c.tar.gz) = 7567759fbc8fbfee2edc6a43286cfd51ebb313cd841ee8b28c3f71ae816136b5
SHA512 (SeriousSamClassic-1.10.6c.tar.gz) = f617d2e73f404cc7f258f7f6ba4b6ef8f590f33633cc38f010d2df2c0b7576bdf282a2dbb19bd5b88e7d03dd231a564f4c077ca431bbd87696d086802befaacd
Size (SeriousSamClassic-1.10.6c.tar.gz) = 28936901 bytes

0 comments on commit f7697fb

Please sign in to comment.