Skip to content

Commit

Permalink
audio/klystrack: Update to 1.7.8
Browse files Browse the repository at this point in the history
- Update to 1.7.8
- Switch to a well maintained fork
- Use meson build system
  • Loading branch information
ehaupt committed Apr 15, 2024
1 parent e3ecaf6 commit 6de3329
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 200 deletions.
51 changes: 10 additions & 41 deletions 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 <bsd.port.mk>
10 changes: 5 additions & 5 deletions 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
49 changes: 0 additions & 49 deletions audio/klystrack/files/patch-Makefile

This file was deleted.

69 changes: 0 additions & 69 deletions audio/klystrack/files/patch-klystron_Makefile

This file was deleted.

8 changes: 0 additions & 8 deletions audio/klystrack/files/patch-klystron_common.mk

This file was deleted.

11 changes: 0 additions & 11 deletions audio/klystrack/files/patch-klystron_src_gui_menu.h

This file was deleted.

15 changes: 0 additions & 15 deletions audio/klystrack/files/patch-klystron_tools_makebundle_Makefile

This file was deleted.

3 changes: 1 addition & 2 deletions audio/klystrack/pkg-plist
Expand Up @@ -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

0 comments on commit 6de3329

Please sign in to comment.