From nobody Mon Apr 15 06:21:32 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VHxrr50kPz5HsP9; Mon, 15 Apr 2024 06:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VHxrr44ynz4f3D; Mon, 15 Apr 2024 06:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713162092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GoWLQ/mjyrL+sTzljkmoTCfhY24ld0FC7VSX+vXgegA=; b=uQKEzniuY/NVNDCNryFG27CDJkYaq0PS/lX+SwvwpsxOxPhE210T82RklmZhdyZTs5XfkY CNm+/HOE8ukx/85E7HtqNVbR9+kGxxPBe+X6cpf9P89DDoriuqOTaSh/r3I54y/Xkkn7vX PYCKhjzWvF3U14vquhrCu+6p5Gs0p9MaXHZJZxoMAeLoqizT3Uu+FDSMYLRpK+bwVQe5il GPKmld2/+guu0+ORbFsJltvlfn4VmQ9JSo1ajgGQAFTockxjUJHHg7we8Xfk8Sr4cCx1OD UsajER3p9sVWpxrFMlHsG6CXklZwMIOMCn3pPPZb5fBR8tuXjoIfkqiYJI7m+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713162092; a=rsa-sha256; cv=none; b=qyUdeiBqIZW+XfA/lc0JEKJjHg7/j4vWQlPihEjbvRG8MOh+HUcxxdBbFx2MOtjJyfJI+O czuKBmesbeXel5HD0BPdDHE3+Xwm+oQ8+BDT1dPaA+d/MvkK73G25gAWA3aV5bl25q4yiP xaPhbsf84VTHNmJNpeeFDFKQ3PLrIVDRYFArY0Dy1UuglwwRoaHPC2pZKY81alczEWz/4H nbMXU4cmWDt7exAtpPI/8jzLKtK/4BadXbmPbyVQ3mnp+/qJhzs1tK1qtNJU7ciMsxBMz1 +surV3FdR4+E+yyyDoq2mIqpGKKVKXp/fcL6b4xDT+9tmK77J2w2g7zsDAoQPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713162092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GoWLQ/mjyrL+sTzljkmoTCfhY24ld0FC7VSX+vXgegA=; b=CoJHIxfpHaqv80Lf609KhtGG8D7pylTrA6QwkRHUr1LtPVs/+dXHo9+mh4J4My2I0hHXqb PQtVC03A0462vazVIuw+BVETWYJ1rVa94iosxnXVKKYh+YGizAIpv6ml/giZ2319e8qgJ/ ATYtdj+Olg0UpVXnW49KhTjpRxv6tHDkZyXHD9t2IK9bW755J/tkU/QozyZjGXd0XXPlQM 7wSmahE6JF/8/UbvbM6ecJbpYUNHubiz7JUOfLDypfqpDI51N/xwiiL5o7Nn+cvbOh0SAC ioJMSpy/zUyh1LzNzXF3vy7HIP+spHSl9/lU+84JaC7uIQIF3lJfwMvInzo8pQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VHxrr3MnxzpB4; Mon, 15 Apr 2024 06:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43F6LWbd082947; Mon, 15 Apr 2024 06:21:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43F6LWDU082940; Mon, 15 Apr 2024 06:21:32 GMT (envelope-from git) Date: Mon, 15 Apr 2024 06:21:32 GMT Message-Id: <202404150621.43F6LWDU082940@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emanuel Haupt Subject: git: 6de3329e461f - main - audio/klystrack: Update to 1.7.8 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ehaupt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6de3329e461fcedc9a8c0a310750e054e1b3e2b5 Auto-Submitted: auto-generated The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=6de3329e461fcedc9a8c0a310750e054e1b3e2b5 commit 6de3329e461fcedc9a8c0a310750e054e1b3e2b5 Author: Emanuel Haupt AuthorDate: 2024-04-15 06:21:16 +0000 Commit: Emanuel Haupt CommitDate: 2024-04-15 06:21:29 +0000 audio/klystrack: Update to 1.7.8 - Update to 1.7.8 - Switch to a well maintained fork - Use meson build system --- audio/klystrack/Makefile | 51 ++++------------ audio/klystrack/distinfo | 10 ++-- audio/klystrack/files/patch-Makefile | 49 --------------- audio/klystrack/files/patch-klystron_Makefile | 69 ---------------------- audio/klystrack/files/patch-klystron_common.mk | 8 --- .../klystrack/files/patch-klystron_src_gui_menu.h | 11 ---- .../files/patch-klystron_tools_makebundle_Makefile | 15 ----- audio/klystrack/pkg-plist | 3 +- 8 files changed, 16 insertions(+), 200 deletions(-) diff --git a/audio/klystrack/Makefile b/audio/klystrack/Makefile index c7c2b490a769..888935c570f8 100644 --- a/audio/klystrack/Makefile +++ b/audio/klystrack/Makefile @@ -1,61 +1,30 @@ PORTNAME= klystrack -PORTVERSION= 1.7.6 -PORTREVISION= 1 +PORTVERSION= 1.7.8 CATEGORIES= audio MAINTAINER= ehaupt@FreeBSD.org COMMENT= Tracker for making C64/NES/Amiga-style chiptunes -WWW= https://kometbomb.github.io/klystrack/ +WWW= https://github.com/z-erica/klystrack LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libasound.so:audio/alsa-lib -USES= compiler:c11 desktop-file-utils dos2unix gmake \ - localbase:ldconfig sdl -DOS2UNIX_FILES= klystron/common.mk klystron/Makefile klystron/src/gui/menu.h \ - klystron/tools/editor/Makefile \ - klystron/tools/makebundle/Makefile Makefile player/Makefile \ - scancode-tool/Makefile +USES= compiler:c11 desktop-file-utils localbase:ldconfig meson \ + pkgconfig sdl USE_CSTD= c99 USE_GITHUB= yes -GH_ACCOUNT= kometbomb -GH_TAGNAME= fe6e746 -GH_TUPLE= kometbomb:klystron:1074324:klystron/klystron +GH_ACCOUNT= z-erica +GH_TUPLE= z-erica:klystron:09cb52c:klystron/klystron USE_SDL= gfx2 image2 mixer2 sdl2 ttf2 -MAKE_ENV+= CFG=release \ - V=1 -ALL_TARGET= build - -CFLAGS+= -fPIC +LDFLAGS+= -lm OPTIONS_DEFINE= EXAMPLES -post-patch: - @${REINPLACE_CMD} -e "s#Default.kt#${DATADIR}/Default.kt#" \ - ${WRKSRC}/src/main.c - -do-install: -.for d in bin share/klystrack share/applications share/pixmaps \ - share/licenses/klystrack lib/klystrack share/man/man1 - ${MKDIR} ${STAGEDIR}${PREFIX}/${d} -.endfor - ${INSTALL_PROGRAM} ${WRKSRC}/bin.release/klystrack \ - ${STAGEDIR}${PREFIX}/bin/klystrack - cd ${WRKSRC}/res && \ - ${COPYTREE_SHARE} \* ${STAGEDIR}/${PREFIX}/lib/klystrack/res/ - cd ${WRKSRC}/key && \ - ${COPYTREE_SHARE} \* ${STAGEDIR}/${PREFIX}/lib/klystrack/key/ - cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}/${EXAMPLESDIR} - ${INSTALL_MAN} ${WRKSRC}/doc/klystrack.1 \ - ${STAGEDIR}${PREFIX}/share/man/man1 - ${INSTALL_DATA} ${WRKSRC}/doc/Default.kt \ - ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/linux/klystrack.desktop \ - ${STAGEDIR}${DESKTOPDIR} - ${INSTALL_DATA} ${WRKSRC}/icon/256x256.png \ - ${STAGEDIR}${PREFIX}/share/pixmaps/klystrack.png +post-install: + @${MV} ${STAGEDIR}${DATADIR}/examples ${STAGEDIR}${EXAMPLESDIR} + @${RMDIR} ${STAGEDIR}${DATADIR} .include diff --git a/audio/klystrack/distinfo b/audio/klystrack/distinfo index ba22379d94d5..99796d9a280c 100644 --- a/audio/klystrack/distinfo +++ b/audio/klystrack/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1678223201 -SHA256 (kometbomb-klystrack-1.7.6-fe6e746_GH0.tar.gz) = 1744a75c6672fdcf4b6db7e85d082a14dfb3ed38b4b3c8cc4bffd5e9d3323870 -SIZE (kometbomb-klystrack-1.7.6-fe6e746_GH0.tar.gz) = 576019 -SHA256 (kometbomb-klystron-1074324_GH0.tar.gz) = 1a9a5a0ccb9039d2b2be3f0bd4f2a4d9684760a06ed79f136ed71c030d2cfe8c -SIZE (kometbomb-klystron-1074324_GH0.tar.gz) = 89088 +TIMESTAMP = 1712990945 +SHA256 (z-erica-klystrack-1.7.8_GH0.tar.gz) = 8e63888e691eed7f9194aa80e5f14d0c47a0925b05474db036308ce1db085aa2 +SIZE (z-erica-klystrack-1.7.8_GH0.tar.gz) = 578916 +SHA256 (z-erica-klystron-09cb52c_GH0.tar.gz) = 64edb3abca0b42e51b11c8bfecf7804029b8d140f31d0eca45b29ac739c4f7b6 +SIZE (z-erica-klystron-09cb52c_GH0.tar.gz) = 89271 diff --git a/audio/klystrack/files/patch-Makefile b/audio/klystrack/files/patch-Makefile deleted file mode 100644 index 08d115f4c3b7..000000000000 --- a/audio/klystrack/files/patch-Makefile +++ /dev/null @@ -1,49 +0,0 @@ ---- Makefile.orig 2023-03-07 21:13:01 UTC -+++ Makefile -@@ -1,7 +1,7 @@ - TARGET := klystrack - KLYSTRON=klystron - ECHO := echo --CFG := debug -+CFG ?= debug - EXE := bin.$(CFG)/$(TARGET) - MACHINE := - NSIS := C:/program\ files\ \(x86\)/nsis/makensis.exe -V2 -NOCD -@@ -10,7 +10,7 @@ MAKEBUNDLE := $(KLYSTRON)/tools/bin/makebundle.exe - UPLOAD := cmd.exe /c upload.bat - DLLS := zip/data/SDL2_image.dll zip/data/SDL2.dll - EXT := .c --CC := gcc -+CC ?= gcc - CDEP := $(CC) -E -MM - ARCHIVE := klystrack - INSTALLER := klystrack.exe -@@ -21,7 +21,7 @@ REV := cp -f - - PREFIX ?= /usr - BINDIR = $(PREFIX)/bin --CFLAGS := $(MACHINE) -ftree-vectorize -std=gnu99 -Wno-strict-aliasing -+CFLAGS ?= $(MACHINE) -ftree-vectorize -std=gnu99 -Wno-strict-aliasing - - ifdef COMSPEC - # Compiling for Windows -@@ -72,7 +72,7 @@ else - CFLAGS += -O3 -pg -Wall - else - ifeq ($(CFG),release) -- CFLAGS += -O3 -Wall -s -+ CFLAGS += -Wall - ifdef COMSPEC - CFLAGS += -mwindows - endif -@@ -136,8 +136,8 @@ endef - - build: Makefile src/version.h src/version_number.h - $(Q)touch src/version -- $(Q)$(MAKE) -C $(KLYSTRON) CFG=$(CFG) EXTFLAGS="$(EXTFLAGS)" -- $(Q)$(MAKE) all CFG=$(CFG) EXTFLAGS="$(EXTFLAGS)" -+ $(Q)$(MAKE_ENV)$(MAKE) -C $(KLYSTRON) CFG=$(CFG) EXTFLAGS="$(EXTFLAGS)" -+ $(Q)$(MAKE_ENV)$(MAKE) all CFG=$(CFG) EXTFLAGS="$(EXTFLAGS)" - - src/version.h: src/version - $(Q)echo '#ifndef VERSION_H' > ./src/version.h diff --git a/audio/klystrack/files/patch-klystron_Makefile b/audio/klystrack/files/patch-klystron_Makefile deleted file mode 100644 index 1fa7fb9545c7..000000000000 --- a/audio/klystrack/files/patch-klystron_Makefile +++ /dev/null @@ -1,69 +0,0 @@ ---- klystron/Makefile.orig 2021-01-18 12:22:06 UTC -+++ klystron/Makefile -@@ -1,9 +1,10 @@ - TARGET=engine - VPATH=src:src - ECHO = echo --CFG = debug -+CFG ?= debug - REV = cp -f - MACHINE = -+CC ?= gcc - - include common.mk - -@@ -27,8 +28,8 @@ lib_SRC = $(notdir ${wildcard src/lib/*.c}) - lib_DEP = $(patsubst %.c, deps/lib_$(CFG)_%.d, ${lib_SRC}) - lib_OBJ = $(patsubst %.c, objs.$(CFG)/lib_%.o, ${lib_SRC}) - --CC = gcc -shared -std=gnu99 -Wno-strict-aliasing --CDEP = gcc -E -std=gnu99 -+CC := $(CC) -std=gnu99 -Wno-strict-aliasing -+CDEP := $(CC) -E -std=gnu99 - - ifndef CFLAGS - CFLAGS = $(MACHINE) -ftree-vectorize -@@ -44,10 +45,10 @@ else - CFLAGS += -O3 -pg -Wall ${INCLUDEFLAGS} - else - ifeq ($(CFG),release) -- CFLAGS += -O3 -Wall ${INCLUDEFLAGS} -s -+ CFLAGS += -Wall ${INCLUDEFLAGS} - else - ifeq ($(CFG),size) -- CFLAGS += -Os -Wall ${INCLUDEFLAGS} -s -ffast-math -fomit-frame-pointer -DREDUCESIZE -+ CFLAGS += -Os -Wall ${INCLUDEFLAGS} -ffast-math -fomit-frame-pointer -DREDUCESIZE - else - @$(ECHO) "Invalid configuration "$(CFG)" specified." - @$(ECHO) "You must specify a configuration when " -@@ -73,7 +74,7 @@ build: Makefile - $(Q)echo '"' >> ./src/version.h - $(Q)echo '#define KLYSTRON_VERSION_STRING "klystron " KLYSTRON_REVISION' >> ./src/version.h - $(Q)echo '#endif' >> ./src/version.h -- make all CFG=$(CFG) -+ $(MAKE) all CFG=$(CFG) - - all: bin.$(CFG)/lib${TARGET}_snd.a bin.$(CFG)/lib${TARGET}_gfx.a bin.$(CFG)/lib${TARGET}_util.a bin.$(CFG)/lib${TARGET}_gui.a tools - -@@ -121,7 +122,7 @@ endif - bin.$(CFG)/ksnd.dll: objs.$(CFG)/lib_ksnd.o ${snd_OBJ} src/lib/ksnd.def | inform - $(MSG) "Linking ksnd.dll..." - $(Q)mkdir -p bin.$(CFG) -- $(Q)$(CC) -shared -o $@ objs.$(CFG)/lib_ksnd.o src/lib/ksnd.def ${snd_OBJ} $(CFLAGS) $(INCLUDEFLAGS) -DDLLEXPORT -Wl,--out-implib,bin.$(CFG)/libksnd.a -+ $(Q)$(CC) -o $@ objs.$(CFG)/lib_ksnd.o src/lib/ksnd.def ${snd_OBJ} $(CFLAGS) $(INCLUDEFLAGS) -DDLLEXPORT -Wl,--out-implib,bin.$(CFG)/libksnd.a - ifdef COMSPEC - $(MSG) "Building ksnd.lib..." - @-lib /DEF:src/lib/ksnd.def /OUT:bin.$(CFG)/ksnd.lib -@@ -208,10 +209,10 @@ ifneq ($(MAKECMDGOALS),clean) - endif - - tools/bin/makebundle.exe: tools/makebundle/*.c -- make -C tools/makebundle -+ $(MAKE_ENV) $(MAKE) -C tools/makebundle - - ifdef COMSPEC - tools/bin/editor.exe: tools/editor/src/* -- make -C tools/editor -+ $(MAKE) -C tools/editor - cp tools/editor/bin.$(CFG)/editor.exe tools/bin/editor.exe - endif diff --git a/audio/klystrack/files/patch-klystron_common.mk b/audio/klystrack/files/patch-klystron_common.mk deleted file mode 100644 index a6bc4768a2a1..000000000000 --- a/audio/klystrack/files/patch-klystron_common.mk +++ /dev/null @@ -1,8 +0,0 @@ ---- klystron/common.mk.orig 2021-01-18 12:35:42 UTC -+++ klystron/common.mk -@@ -1,3 +1,5 @@ -+MAKE ?= make -+ - # make it possible to do a verbose build by running `make V=1` - ifeq ($(V),1) - Q= diff --git a/audio/klystrack/files/patch-klystron_src_gui_menu.h b/audio/klystrack/files/patch-klystron_src_gui_menu.h deleted file mode 100644 index 5d97859ffe47..000000000000 --- a/audio/klystrack/files/patch-klystron_src_gui_menu.h +++ /dev/null @@ -1,11 +0,0 @@ ---- klystron/src/gui/menu.h.orig 2021-01-17 17:28:54 UTC -+++ klystron/src/gui/menu.h -@@ -25,7 +25,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE - OTHER DEALINGS IN THE SOFTWARE. - */ - --struct menu_t -+extern struct menu_t - { - int flags; - const struct menu_t *parent; diff --git a/audio/klystrack/files/patch-klystron_tools_makebundle_Makefile b/audio/klystrack/files/patch-klystron_tools_makebundle_Makefile deleted file mode 100644 index 35831f7d2781..000000000000 --- a/audio/klystrack/files/patch-klystron_tools_makebundle_Makefile +++ /dev/null @@ -1,15 +0,0 @@ ---- klystron/tools/makebundle/Makefile.orig 2021-01-18 11:01:30 UTC -+++ klystron/tools/makebundle/Makefile -@@ -1,4 +1,5 @@ - TARGET = ../bin/makebundle.exe -+CC ?= gcc - - ifdef COMSPEC - SDL = -I /mingw/include/sdl -@@ -8,4 +9,4 @@ endif - - $(TARGET): makebundle.c ../../src/util/bundle.h - @mkdir -p ../bin -- gcc -o $(TARGET) -D_XOPEN_SOURCE makebundle.c -std=c99 -I ../../src $(SDL) -Wall -O3 -\ No newline at end of file -+ $(CC) $(CFLAGS) -o $(TARGET) -D_XOPEN_SOURCE makebundle.c -std=c99 -I ../../src $(SDL) -Wall diff --git a/audio/klystrack/pkg-plist b/audio/klystrack/pkg-plist index 681504b6e365..55c8a4776e5b 100644 --- a/audio/klystrack/pkg-plist +++ b/audio/klystrack/pkg-plist @@ -124,6 +124,5 @@ share/applications/klystrack.desktop %%PORTEXAMPLES%%%%EXAMPLESDIR%%/songs/ringmod.kt %%PORTEXAMPLES%%%%EXAMPLESDIR%%/songs/smp_dingleberries_fix.kt %%PORTEXAMPLES%%%%EXAMPLESDIR%%/songs/smp_dpintro.kt -%%DATADIR%%/Default.kt +share/icons/hicolor/256x256/apps/klystrack.png share/man/man1/klystrack.1.gz -share/pixmaps/klystrack.png