head	1.24;
access;
symbols
	pkgsrc-2026Q1:1.24.0.4
	pkgsrc-2026Q1-base:1.24
	pkgsrc-2025Q4:1.24.0.2
	pkgsrc-2025Q4-base:1.24
	pkgsrc-2025Q3:1.23.0.6
	pkgsrc-2025Q3-base:1.23
	pkgsrc-2025Q2:1.23.0.4
	pkgsrc-2025Q2-base:1.23
	pkgsrc-2025Q1:1.23.0.2
	pkgsrc-2025Q1-base:1.23
	pkgsrc-2024Q4:1.22.0.6
	pkgsrc-2024Q4-base:1.22
	pkgsrc-2024Q3:1.22.0.4
	pkgsrc-2024Q3-base:1.22
	pkgsrc-2024Q2:1.22.0.2
	pkgsrc-2024Q2-base:1.22
	pkgsrc-2024Q1:1.21.0.2
	pkgsrc-2024Q1-base:1.21
	pkgsrc-2023Q4:1.20.0.4
	pkgsrc-2023Q4-base:1.20
	pkgsrc-2023Q3:1.20.0.2
	pkgsrc-2023Q3-base:1.20
	pkgsrc-2023Q2:1.18.0.2
	pkgsrc-2023Q2-base:1.18
	pkgsrc-2023Q1:1.17.0.6
	pkgsrc-2023Q1-base:1.17
	pkgsrc-2022Q4:1.17.0.4
	pkgsrc-2022Q4-base:1.17
	pkgsrc-2022Q3:1.17.0.2
	pkgsrc-2022Q3-base:1.17
	pkgsrc-2022Q2:1.15.0.2
	pkgsrc-2022Q2-base:1.15
	pkgsrc-2022Q1:1.13.0.2
	pkgsrc-2022Q1-base:1.13
	pkgsrc-2021Q4:1.10.0.2
	pkgsrc-2021Q4-base:1.10
	pkgsrc-2021Q3:1.8.0.2
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.4.0.4
	pkgsrc-2021Q2-base:1.4
	pkgsrc-2021Q1:1.4.0.2
	pkgsrc-2021Q1-base:1.4;
locks; strict;
comment	@# @;


1.24
date	2025.10.23.20.35.52;	author wiz;	state Exp;
branches;
next	1.23;
commitid	1V2hBZn9ypXaCJfG;

1.23
date	2025.02.12.06.44.27;	author ryoon;	state Exp;
branches;
next	1.22;
commitid	wrOiT0jBBwBs99JF;

1.22
date	2024.04.06.08.04.51;	author wiz;	state Exp;
branches;
next	1.21;
commitid	xuM7fEJrv2TOC35F;

1.21
date	2024.01.30.14.21.34;	author ryoon;	state Exp;
branches;
next	1.20;
commitid	gARf2FgciecARtWE;

1.20
date	2023.08.06.09.49.27;	author nia;	state Exp;
branches;
next	1.19;
commitid	SdpYzhVEvVV93IzE;

1.19
date	2023.08.02.16.17.15;	author nia;	state Exp;
branches;
next	1.18;
commitid	i87BGOoxRJYZjezE;

1.18
date	2023.05.06.19.09.03;	author ryoon;	state Exp;
branches;
next	1.17;
commitid	U0SnpK5fQpHc6WnE;

1.17
date	2022.09.11.12.51.21;	author wiz;	state Exp;
branches;
next	1.16;
commitid	5DT6DUEaifG2DrTD;

1.16
date	2022.08.11.05.08.04;	author gutteridge;	state Exp;
branches;
next	1.15;
commitid	yKydzoO42ClN3qPD;

1.15
date	2022.06.08.06.54.42;	author nia;	state Exp;
branches;
next	1.14;
commitid	UmDLOmMazxFaIcHD;

1.14
date	2022.04.10.15.05.42;	author nia;	state Exp;
branches;
next	1.13;
commitid	ngnPuJAX0QsVjFzD;

1.13
date	2022.03.28.10.43.38;	author tnn;	state Exp;
branches;
next	1.12;
commitid	a4cavKiniSb6iYxD;

1.12
date	2022.02.13.11.44.43;	author nia;	state Exp;
branches;
next	1.11;
commitid	xGZOAvkyiuhS0ssD;

1.11
date	2022.01.24.14.01.01;	author nia;	state Exp;
branches;
next	1.10;
commitid	tEOoSpjCKyfqpTpD;

1.10
date	2021.12.08.16.03.19;	author adam;	state Exp;
branches;
next	1.9;
commitid	2PyWjHx5T8rqARjD;

1.9
date	2021.11.03.21.59.34;	author nia;	state Exp;
branches;
next	1.8;
commitid	erC3JMrbikb3HofD;

1.8
date	2021.09.18.08.07.52;	author nia;	state Exp;
branches;
next	1.7;
commitid	jbMhm2xgUMWgzp9D;

1.7
date	2021.09.08.21.04.57;	author nia;	state Exp;
branches;
next	1.6;
commitid	6PGjeVec6yMAbc8D;

1.6
date	2021.08.28.15.30.08;	author js;	state Exp;
branches;
next	1.5;
commitid	2X50liM98XnbGK6D;

1.5
date	2021.06.27.07.07.44;	author nia;	state Exp;
branches;
next	1.4;
commitid	joLsyEurG0xdUJYC;

1.4
date	2021.01.29.09.11.40;	author nia;	state Exp;
branches;
next	1.3;
commitid	wKtHmvdboVXHnBFC;

1.3
date	2021.01.10.11.31.32;	author nia;	state Exp;
branches;
next	1.2;
commitid	9hk78YV6TpLwLaDC;

1.2
date	2021.01.06.01.19.20;	author js;	state Exp;
branches;
next	1.1;
commitid	Mf3QBSBUidNrvBCC;

1.1
date	2021.01.06.00.52.22;	author js;	state Exp;
branches;
next	;
commitid	STamF9zHyxVamBCC;


desc
@@


1.24
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@# $NetBSD: Makefile,v 1.23 2025/02/12 06:44:27 ryoon Exp $

DISTNAME=	pt2-clone-1.49
PKGREVISION=	7
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_GITHUB:=8bitbubsy/}
GITHUB_PROJECT=	pt2-clone
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/8bitbubsy/pt2-clone/
COMMENT=	ProTracker 2 clone
LICENSE=	modified-bsd

USE_CMAKE=	yes

USE_LANGUAGES=	c c++

# error: 'for' loop initial declarations are only allowed in C99 mode
# gnu99 needed to get PATH_MAX definition on certain platforms
FORCE_C_STD=	gnu99

INSTALLATION_DIRS+=	share/applications
INSTALLATION_DIRS+=	share/doc/${PKGBASE}
INSTALLATION_DIRS+=	share/examples/${PKGBASE}
INSTALLATION_DIRS+=	share/pixmaps
INSTALLATION_DIRS+=	${PKGMANDIR}/man1

post-install:
	cd ${WRKSRC} && ${INSTALL_DATA} release/other/protracker.ini \
		${DESTDIR}${PREFIX}/share/examples/pt2-clone/protracker.ini
	cd ${WRKSRC}/release && ${INSTALL_DATA} *.txt \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	cd ${WRKSRC}/release/other && ${INSTALL_DATA} \
		Freedesktop.org\ Resources/ProTracker\ 2\ clone.desktop \
		${DESTDIR}${PREFIX}/share/applications/${PKGBASE}.desktop
	cd ${FILESDIR} && ${INSTALL_DATA} pt2-clone.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${PKGBASE}.1
	cd ${WRKSRC}/release/other && ${INSTALL_DATA} \
		Freedesktop.org\ Resources/ProTracker\ 2\ clone.png \
		${DESTDIR}${PREFIX}/share/pixmaps

.include "../../devel/SDL2/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.23
log
@*: Recursive revbump from audio/flac-1.5.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2024/04/06 08:04:51 wiz Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.22
log
@* recursive bump for libxkbcommon 1.7.0

Marc Baudoin reported problems with using old binary packages
with the new libkxbcommon, so force everything to 1.7.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2024/01/30 14:21:34 ryoon Exp $
d4 1
a4 1
PKGREVISION=	5
@


1.21
log
@*: Recursive revbump from audio/pulseaudio-17.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2023/08/06 09:49:27 nia Exp $
d4 1
a4 1
PKGREVISION=	4
@


1.20
log
@pt2-clone: gnu99 needed on certain platforms
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2023/08/02 16:17:15 nia Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.19
log
@*: Use FORCE_C_STD=c99 for C packages that use for loop initial
declarations without setting -std=c99.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/05/06 19:09:03 ryoon Exp $
d20 2
a21 1
FORCE_C_STD=	c99
@


1.18
log
@*: Recursive revbump from audio/libopus 1.4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2022/09/11 12:51:21 wiz Exp $
d17 2
d20 1
a20 1
USE_LANGUAGES=	c99 c++
@


1.17
log
@*: bump PKGREVISION for flac shlib bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2022/08/11 05:08:04 gutteridge Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.16
log
@Bump all dependent packages of wayland (belatedly)

The package changed with the addition of its libepoll-shim dependency.
Otherwise, we can get:
ERROR: libepoll-shim>=0.0.20210418 is not installed; can't buildlink files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2022/06/08 06:54:42 nia Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.15
log
@pt2-clone: update to 1.49

Fixed: The Position Jump (Bxx) effect would misbehave in "play pattern" and "record pattern" mode
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2022/04/10 15:05:42 nia Exp $
d4 1
@


1.14
log
@pt2-clone: update to 1.45

- Added support for loading XPK-compressed MOD files

- Fixed (rarely audible) click bug in the BLEP synthesis code.
This bug was introduced in v1.34.

- Fixed: CTRL+T (Swap Channel) didn't refresh the pattern data view,
nor did it update the "song is modified" state

- Fix possible out-of-sync state between tracker and replayer if the
module was stopped during a position transition. The replayer is one
tick ahead, so this can very well happen (f.ex. during pattern loop,
pattern break, position jump, row 63->0 transition)

- Added a new config entry called "STEPPLAY_KEEP_EDITMODE", which allows
for step-play (return/backspace) to not leave edit mode after use
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2022/03/28 10:43:38 tnn Exp $
d3 1
a3 1
DISTNAME=	pt2-clone-1.46
a13 2
TOOL_DEPENDS+=	icoutils-[0-9]*:../../graphics/icoutils

d20 2
a21 1
INSTALLATION_DIRS+=	share/examples/pt2-clone
a24 4
post-build:
	icotool -w 48 -x -o ${WRKDIR}/${PKGBASE}.png \
		${WRKSRC}/src/gfx/pt2-clone.ico

d28 4
a31 1
	cd ${FILESDIR} && ${INSTALL_DATA} pt2-clone.desktop \
d35 3
a37 2
	${INSTALL_DATA} ${WRKDIR}/${PKGBASE}.png \
		${DESTDIR}${PREFIX}/share/pixmaps/${PKGBASE}.png
@


1.13
log
@a*/*: revbump(1) for libsndfile
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2022/02/13 11:44:43 nia Exp $
d3 1
a3 2
DISTNAME=	pt2-clone-1.40
PKGREVISION=	1
@


1.12
log
@pt2-clone: update to 1.40

Changes:

- Don't handle mouse click if window wasn't in focus
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2022/01/24 14:01:01 nia Exp $
d4 1
@


1.11
log
@pt2-clone: update to 1.39

Changes:

     * Added 128kB sample support again. This can be turned on by adjusting
       the 64K_LIMIT setting in (the new) protracker.ini to FALSE. Please
       read the 64K_LIMIT comment in protracker.ini first before doing this.
     * Fixed a bug where it wasn't always possible to mark the last sample
       point in the sample editor
     * Some other minor code changes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2021/12/08 16:03:19 adam Exp $
d3 1
a3 1
DISTNAME=	pt2-clone-1.39
@


1.10
log
@revbump for icu and libffi
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2021/11/03 21:59:34 nia Exp $
d3 1
a3 2
DISTNAME=	pt2-clone-1.37
PKGREVISION=	1
@


1.9
log
@pt2-clone: update to 1.37

v1.37 - 28.10.2021
- Fixed potential thread issues between user input thread and audio thread, like
  when jamming a sample, toggling tuning tone, playing sample in the sample
  editor, adjusting sample loop, etc.

v1.36 - 10.10.2021 (23:12 GMT+2)
- Fixed clicking issues in v1.35 during sample looping. Sorry!
- Fixed an issue where the quadrascope was not updated properly when a F00
  command was triggered before the last channel.

v1.35 - 10.10.2021
- Implemented a config entry in protracker.ini for disabling the 2x downsample
  dialog that shows up when attempting to load >22kHz samples.
  (NO_DWNSMP_ON_SMP_LOAD)
- Don't attempt to center window after leaving fullscreen mode. This could lead
  to issues on multi-monitor setups.
- Further accuracy changes to the Paula emulator. Read two samples at once into
  the AUDxDAT buffer. This is a minor change, but it can have a very small
  impact on sample-changing commands (EFx/E8x).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2021/09/18 08:07:52 nia Exp $
d4 1
@


1.8
log
@pt2-clone: update to 1.34

v1.34 - 16.09.2021
- Bugfix: Pattern delay (EEx) did nothing on muted channels
- Bugfix: Less clicks/pops during E0x command (Set LED Filter)
- Added the missing Karplus-Strong command (E8x). Since this effect was
  sometimes replaced with visuals-syncing in demo music, it can be turned off by
  setting DISABE_E8X to TRUE in protracker.ini.
- Fix: Only do 2x oversampling if the audio output rate is below 96kHz. It
  would otherwise be a waste of CPU time (diminishing returns).
- Paula emulation is now slightly more accurate to a real Amiga (verified):
  1) Period/volume changes are now only updated when it's time to read
     a new sample point (period refetch). It was recently discovered that
     volume is also fetched (and cached) in the period refetch stage.
  2) During sample point fetching, the new sample point is now cached until it's
     time to read the next sample point. This can sometimes make a very small
     difference for sampledata-changing ProTracker effects (E8x / EFx).
- Removed BLEP'ing of volume changes, as it was no longer needed with the new
  way of doing volume changing, and it saves up some CPU time.

v1.33 - 04.09.2021
- The tracker now uses 2x oversampling and decimation for mixing and filtering,
  for (theoretically) less aliasing.
- Added Amiga 1200 low-pass filter (~34.4kHz, when not in A500 mode). This
  makes sense now, since we have twice the render/filter frequency than before.
- PAT2SMP now renders in higher quality thanks to the new high quality 2x
  decimator routine. Especially noticable in LO mode on high-frequency content.
- The "2x downsample" option while loading samples results in slightly less
  aliasing than before because of the new high quality 2x decimator.
- The MOD2WAV audio rate is now the same as the tracker's audio rate
- Stereo separation now works like it should. The volume is a bit louder than
  before if you increase the separation, but that's expected.
- Removed the hand-made cutoff tweak on the Amiga 500 low-pass filter. It now
  uses the correct nominal cutoff frequency. The RC filter routines have been
  replaced with new ones, and with these I didn't have to tweak the cutoff to
  make it sound similar to an A500 (probably related to filter prewarping?).

v1.32 - 12.08.2021
- Bugfix: If you had accidentally clicked somewhere on the sample data before
  using the "ramp volume" tool, it wouldn't work as expected.
- Bugfix: The BPM was a tiny fraction off because of an off-by-one error in
  the Amiga CIA period -> Hz calculation. The error was about ~0.02%, so it
  would only be measurable when comparing several minutes of recorded audio.

v1.31 - 19.06.2021
- The Disk Op. file sorting routine is now simplified and more ProTracker like
  (names are converted to uppercase before sorting). This affects the sorting.
- Bugfix: Don't allow mouse wheel scrolling while the volume/filter toolbox
  is open (sample editor).

v1.30 - 29.04.2021
- Bugfix: MOD2WAV would in some cases not render the correct amount of data
- Fixed an old PT bug where the pattern editor could sometimes show the next
  pattern's data one tick too early at the end of the pattern.
- Some small code refactoring

v1.29 - 14.03.2021
- Bugfix: Characters A..F were not accepted in the "Mix" text box in Edit Op. #3
- Screensaver is no longer disabled when the program is running
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2021/09/08 21:04:57 nia Exp $
d3 1
a3 1
DISTNAME=	pt2-clone-1.34
@


1.7
log
@Recursive revbump for audio/jack
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2021/08/28 15:30:08 js Exp $
d3 1
a3 2
DISTNAME=	pt2-clone-1.28
PKGREVISION=	1
d14 2
d21 1
d23 6
d33 6
d41 1
@


1.6
log
@audio/pt2-clone: Drop maintainership

I moved from macOS to Fedora, and everything using OpenGL or audio in pkgsrc is
broken on Fedora (incompatible, much older Mesa in pkgsrc, PulseAudio from
pkgsrc not supporting PipeWire, etc.) so I can no longer update and test this
package. This package unfortunately ticks both, OpenGL and audio.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2021/06/27 07:07:44 nia Exp $
d4 1
@


1.5
log
@pt2-clone: remove list of operating systems from COMMENT
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2021/01/29 09:11:40 nia Exp $
d9 1
a9 1
MAINTAINER=	js@@pkgsrc.org
@


1.4
log
@pt2-clone: use c99
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2021/01/10 11:31:32 nia Exp $
d11 1
a11 1
COMMENT=	ProTracker 2 clone for Windows/macOS/Linux
@


1.3
log
@pt2-clone: Normalize build and installation process.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2021/01/06 01:19:20 js Exp $
d15 3
a17 1
USE_LANGUAGES=	c c++
@


1.2
log
@Remove leftover variable
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2021/01/06 00:52:22 js Exp $
d14 2
a15 1
INSTALLATION_DIRS+=	bin share/examples/pt2-clone
d17 4
a20 10
do-build:
	cd ${WRKSRC} && ${CC} -o pt2-clone \
		-O2 -DNDEBUG \
		$$(sdl2-config --cflags --libs) \
		src/*.c src/gfx/*.c

do-install:
	cd ${WRKSRC} && ${INSTALL} -m 755 pt2-clone \
		${DESTDIR}${PREFIX}/bin/pt2-clone
	cd ${WRKSRC} && ${INSTALL} -m 644 release/other/protracker.ini \
@


1.1
log
@Add audio/p2-clone

ProTracker 2 clone for Windows/macOS/Linux

Aims to be a highly accurate clone of the classic ProTracker 2.3D software for
Amiga. Has additional audio filters and audio mixer improvements to make it
sound close to a real Amiga computer.

What is ProTracker? Read about it on Wikipedia:
https://en.wikipedia.org/wiki/ProTracker
@
text
@d1 1
a1 1
# $NetBSD$
a13 2
WRKSRC=		${WRKDIR}/pt2-clone-1.28

@

