Skip to content

Commit

Permalink
Update OpenBSD templates.
Browse files Browse the repository at this point in the history
Update OpenBSD templates.
Added fixes from Stefan Hagen.
https://marc.info/?l=openbsd-ports&m=170161542700837
  • Loading branch information
tx00100xt committed Dec 4, 2023
1 parent 70b3d5e commit 3123ad7
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 72 deletions.
72 changes: 33 additions & 39 deletions templates/openbsd/ports/games/serioussam/Makefile
Original file line number Diff line number Diff line change
@@ -1,63 +1,57 @@
# 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
COMMENT = open source version of the classic Serious Sam game
N= serioussam
V= 1.10.6c

ONLY_FOR_ARCHS = amd64 i386
DIST_TUPLE = github tx00100xt SeriousSamClassic ${V} .

GH_ACCOUNT = tx00100xt
GH_PROJECT = SeriousSamClassic
GH_TAGNAME = 1.10.6c
PKGNAME = ${N}-${V}
DISTNAME = SeriousSamClassic-${V}
CATEGORIES = games

COMMENT = Open source version of game Serious Sam Classic
N= serioussam
V= 1.10.6c
PKGNAME = ${N}-${V}
DISTNAME = SeriousSamClassic-${V}
CATEGORIES = games
REVISION = 1
HOMEPAGE = https://github.com/tx00100xt/SeriousSamClassic

HOMEPAGE = https://github.com/tx00100xt/SeriousSamClassic

MAINTAINER = YOUR NAME <YOUR MAIL>
MAINTAINER = Alexander Pavlov <[email protected]>

# GPLv2
PERMIT_PACKAGE = Yes

WANTLIB += ${COMPILER_LIBCXX} SDL2 c m z ogg \
pthread vorbis vorbisfile
# Extra: ogg.6 vorbis.9 vorbisfile.6 (dlopen)
WANTLIB = ${COMPILER_LIBCXX} SDL2 c m ogg pthread vorbis vorbisfile z

MODULES = devel/cmake
MODULES = devel/cmake

COMPILER = base-clang ports-gcc
COMPILER = base-clang ports-gcc

CONFIGURE_ARGS += -DUSE_SYSTEM_INSTALL=ON

BUILD_DEPENDS = devel/sdl2 \
devel/bison \
audio/libvorbis \
audio/libogg \
graphics/ImageMagick
BUILD_DEPENDS = audio/libogg \
audio/libvorbis \
devel/bison \
devel/sdl2 \
graphics/ImageMagick

# Libraries loaded with dlopen(3)
LIB_DEPENDS = devel/sdl2 \
audio/libvorbis \
audio/libogg \
LIB_DEPENDS = audio/libogg \
audio/libvorbis \
devel/sdl2

RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+4,-guic

NO_TEST = Yes
NO_TEST = Yes

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

.if ${MACHINE_ARCH}== i386 || ${MACHINE_ARCH}== amd64
CONFIGURE_ARGS += -DUSE_ASM=OFF
.endif

post-install:
${INSTALL_MAN} ${WRKSRC}/man/bsd/serioussam.1 ${PREFIX}/man/man1/serioussam.1
${INSTALL_MAN} ${WRKSRC}/man/bsd/serioussamclassic.1 ${PREFIX}/man/man1/serioussamclassic.1
${INSTALL_MAN} ${WRKSRC}/man/bsd/serioussam.1 \
${PREFIX}/man/man1/serioussam.1
${INSTALL_MAN} ${WRKSRC}/man/bsd/serioussamclassic.1 \
${PREFIX}/man/man1/serioussamclassic.1

.include <bsd.port.mk>
.include <bsd.port.mk>
4 changes: 2 additions & 2 deletions templates/openbsd/ports/games/serioussam/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (SeriousSamClassic-1.10.6c.tar.gz) = M2KX/TKzkrZlYaBmlmciirY+5a9UDd4RsXnv8N2M7yA=
SIZE (SeriousSamClassic-1.10.6c.tar.gz) = 28936901
SHA256 (tx00100xt-SeriousSamClassic-1.10.6c.tar.gz) = M2KX/TKzkrZlYaBmlmciirY+5a9UDd4RsXnv8N2M7yA=
SIZE (tx00100xt-SeriousSamClassic-1.10.6c.tar.gz) = 28936901
46 changes: 24 additions & 22 deletions templates/openbsd/ports/games/serioussam/pkg/PLIST
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,39 @@
@bin bin/serioussam
@bin bin/serioussam-ded
@bin bin/serioussam-mkfont
@so lib/libEngine.so
lib/serioussam/
@so lib/serioussam/libShaders.so
@so lib/serioussam/libGame.so
@so lib/serioussam/libEntities.so
@so lib/serioussam/libamp11lib.so
share/serioussam/
share/serioussam/SE1_10b.gro
share/applications/serioussam.desktop
share/icons/hicolor/16x16/apps/serioussam.png
share/icons/hicolor/32x32/apps/serioussam.png
share/icons/hicolor/48x48/apps/serioussam.png
share/icons/hicolor/64x64/apps/serioussam.png
share/icons/hicolor/128x128/apps/serioussam.png
@bin bin/serioussamse
@bin bin/serioussamse-ded
@bin bin/serioussamse-mkfont
@so lib/libEngine.so
@so lib/libEngineMP.so
lib/serioussam/
@so lib/serioussam/libEntities.so
@so lib/serioussam/libGame.so
@so lib/serioussam/libShaders.so
@so lib/serioussam/libamp11lib.so
lib/serioussamse/
@so lib/serioussamse/libShaders.so
@so lib/serioussamse/libGameMP.so
@so lib/serioussamse/libEntitiesMP.so
@so lib/serioussamse/libGameMP.so
@so lib/serioussamse/libShaders.so
@so lib/serioussamse/libamp11lib.so
share/serioussamse/
share/serioussamse/SE1_10b.gro
@man man/man1/serioussam.1
@man man/man1/serioussamclassic.1
share/applications/serioussam.desktop
share/applications/serioussamse.desktop
share/doc/pkg-readmes/${PKGSTEM}
share/icons/hicolor/128x128/apps/serioussam.png
share/icons/hicolor/128x128/apps/serioussamse.png
share/icons/hicolor/16x16/apps/serioussam.png
share/icons/hicolor/16x16/apps/serioussamse.png
share/icons/hicolor/32x32/apps/serioussam.png
share/icons/hicolor/32x32/apps/serioussamse.png
share/icons/hicolor/48x48/apps/serioussam.png
share/icons/hicolor/48x48/apps/serioussamse.png
share/icons/hicolor/64x64/apps/serioussam.png
share/icons/hicolor/64x64/apps/serioussamse.png
share/icons/hicolor/128x128/apps/serioussamse.png
man/man1/serioussam.1
man/man1/serioussamclassic.1
share/doc/pkg-readmes/${PKGSTEM}
share/serioussam/
share/serioussam/SE1_10b.gro
share/serioussamse/
share/serioussamse/SE1_10b.gro
@tag update-desktop-database
@tag gtk-update-icon-cache %D/share/icons/hicolor
17 changes: 8 additions & 9 deletions templates/openbsd/ports/games/serioussam/pkg/README
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
+-----------------------------------------------------------------------
+----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------
+----------------------------------------------------------------------

Playing Serious Sam: The First and Second Encounter still requires Steam
or GOG or CD copy of the game. This implementation of the source code
provides for installation in the system, in the
/usr/local/bin, /usr/local/lib, /usr/local/share directories.
Playing Serious Sam: The First and Second Encounter requires the Steam,
GOG or CD copy of the game.

Copy all content of the games Serious Sam Classic First Encounter and
Serious Sam Classic Second Encounter to the appropriate directories:
Copy all content of the original game and to the appropriate
directories:

~/.local/share/Serious-Engine/serioussam/ - for TFE
~/.local/share/Serious-Engine/serioussamse/ - for TSE

They'll be here user data, such as game settings, log, saves, demos.
These direcotories will contain user data, such as game settings, log,
saves and demos.

For more information, see:
https://github.com/tx00100xt/SeriousSamClassic/wiki

0 comments on commit 3123ad7

Please sign in to comment.