Skip to content

Commit

Permalink
games/ags: Update to 3.6.0.49
Browse files Browse the repository at this point in the history
  • Loading branch information
BSDKaffee committed Jun 23, 2023
1 parent 4b88732 commit 05203b9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 33 deletions.
26 changes: 8 additions & 18 deletions games/ags/Makefile
@@ -1,38 +1,28 @@
PORTNAME= ags
DISTVERSION= 3.4.4.1
DISTVERSION= 3.6.0.49
CATEGORIES= games
MASTER_SITES= https://github.com/adventuregamestudio/ags/releases/download/v.${DISTVERSION}/
DISTNAME= ags_linux_v.${DISTVERSION}
MASTER_SITES= https://github.com/adventuregamestudio/ags/releases/download/v${PORTVERSION}/
DISTNAME= ags_${DISTVERSION}_source

MAINTAINER= ports@FreeBSD.org
MAINTAINER= jhale@FreeBSD.org
COMMENT= Adventure Game Studio Engine
WWW= https://www.adventuregamestudio.co.uk/

LICENSE= ART20
LICENSE_FILE= ${WRKSRC}/License.txt

BUILD_DEPENDS= ${LOCALBASE}/lib/libaldmb.a:audio/dumb-allegro
LIB_DEPENDS= liballeg.so:devel/allegro \
libogg.so:audio/libogg \
LIB_DEPENDS= libogg.so:audio/libogg \
libtheora.so:multimedia/libtheora \
libvorbis.so:audio/libvorbis \
libfreetype.so:print/freetype2
libvorbis.so:audio/libvorbis

USES= compiler:c++11-lang gmake localbase pkgconfig tar:xz xorg
USE_XORG= x11
USES= compiler:c++11-lang gmake localbase pkgconfig sdl tar:xz
USE_SDL= sdl2 sound2

MAKE_ARGS= V=1
BUILD_WRKSRC= ${WRKSRC}/Engine

PLIST_FILES= bin/ags

post-patch:
@${REINPLACE_CMD} 's|<endian.h>|<sys/endian.h>|' \
${WRKSRC}/Common/core/endianness.h
@${REINPLACE_CMD} -e 's|return cd_player|return 0; // cd_player|g' \
-e 's|cd_exit|//cd_exit|g' \
${WRKSRC}/Engine/platform/linux/acpllnx.cpp

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Engine/ags ${STAGEDIR}${PREFIX}/bin

Expand Down
6 changes: 3 additions & 3 deletions games/ags/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1569470667
SHA256 (ags_linux_v.3.4.4.1.tar.xz) = 9492566ad4f0910cbe62b49ef20081ff8c47035552993c592465d395e49af060
SIZE (ags_linux_v.3.4.4.1.tar.xz) = 930676
TIMESTAMP = 1687373460
SHA256 (ags_3.6.0.49_source.tar.xz) = c7a81cff1a63ec45062ab7281d0a9880962aa9aa2bec311b038079a03707a642
SIZE (ags_3.6.0.49_source.tar.xz) = 6345140
36 changes: 24 additions & 12 deletions games/ags/files/patch-Engine_Makefile-defs.linux
@@ -1,16 +1,28 @@
--- Engine/Makefile-defs.linux.orig 2019-02-12 12:39:10 UTC
--- Engine/Makefile-defs.linux.orig 2023-06-04 18:08:48 UTC
+++ Engine/Makefile-defs.linux
@@ -1,6 +1,6 @@
INCDIR = ../Engine ../Common ../Common/libinclude ../Plugins
@@ -6,14 +6,14 @@ LIBDIR =
INCDIR = ../Engine ../Common ../Common/libinclude ../Common/libsrc/alfont-2.0.9 ../Engine/libsrc/apeg-1.2.1/ ../libsrc/mojoAL ../Plugins ../Engine/libsrc/glad/include ../libsrc/glm $(ALLEGRO_SRCDIR)/include
LIBDIR =
-CFLAGS := -O2 -g -fsigned-char -Wfatal-errors -DNDEBUG -DALLEGRO_NO_FIX_ALIASES -DAGS_RUNTIME_PATCH_ALLEGRO -DAGS_HAS_CD_AUDIO -DAGS_CASE_SENSITIVE_FILESYSTEM -DALLEGRO_STATICLINK -DLINUX_VERSION -DDISABLE_MPEG_AUDIO -DBUILTIN_PLUGINS -DRTLD_NEXT $(shell pkg-config --cflags freetype2) $(CFLAGS)
+CFLAGS := -O2 -fsigned-char -Wfatal-errors -DNDEBUG -DALLEGRO_NO_FIX_ALIASES -DAGS_RUNTIME_PATCH_ALLEGRO -DAGS_CASE_SENSITIVE_FILESYSTEM -DALLEGRO_STATICLINK -DLINUX_VERSION -DDISABLE_MPEG_AUDIO -DBUILTIN_PLUGINS -DRTLD_NEXT $(shell pkg-config --cflags freetype2) $(CFLAGS)
CXXFLAGS := -fno-rtti -Wno-write-strings $(CXXFLAGS)
LIBS := -rdynamic -laldmb -ldumb -Wl,-Bdynamic
LIBS += $(shell pkg-config --libs allegro)
@@ -44,4 +44,4 @@ platform/linux/acpllnx.cpp \
platform/util/pe.c \

-CFLAGS := -O2 -g \
+CFLAGS := \
-fsigned-char -fno-strict-aliasing -fwrapv \
-Wunused-result \
-Wno-unused-value \
-Werror=write-strings -Werror=format -Werror=format-security \
-DNDEBUG \
-DALLEGRO_STATICLINK \
- -DLINUX_VERSION -DBUILTIN_PLUGINS -DHAVE_FSEEKO -DDISABLE_MPEG_AUDIO -DAGS_CASE_SENSITIVE_FILESYSTEM -DAGS_HAS_CD_AUDIO \
+ -DLINUX_VERSION -DBUILTIN_PLUGINS -DHAVE_FSEEKO -DDISABLE_MPEG_AUDIO -DAGS_CASE_SENSITIVE_FILESYSTEM \
-D_FILE_OFFSET_BITS=64 -DRTLD_NEXT \
$(FT_CFLAGS) $(CFLAGS)

@@ -58,7 +58,7 @@ BASE_PLATFORM = \
endif

BASE_PLATFORM = \
-platform/linux/acpllnx.cpp \
+platform/bsd/acplbsd.cpp \
platform/util/libc.c

-CDA = libsrc/libcda-0.5/linux.c
+# CDA = libsrc/libcda-0.5/linux.c
CDA := libsrc/libcda-0.5/linux.c
11 changes: 11 additions & 0 deletions games/ags/files/patch-Engine_platform_bsd_acplbsd.cpp
@@ -0,0 +1,11 @@
--- Engine/platform/bsd/acplbsd.cpp.orig 2023-06-23 17:18:33 UTC
+++ Engine/platform/bsd/acplbsd.cpp
@@ -19,7 +19,7 @@
// *************** FREEBSD DRIVER ***************

#include "platform/base/agsplatformdriver.h"
-#include "platform/base/agsplatform_unix.h"
+#include "platform/base/agsplatform_xdg_unix.h"

struct AGSFreeBSD : AGSPlatformXDGUnix {
eScriptSystemOSID GetSystemOSID() override;

0 comments on commit 05203b9

Please sign in to comment.