git: 175da11b04dd - main - audio/stk: Update 4.6.1 -> 4.6.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 18 Nov 2021 22:34:18 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=175da11b04dd3bcb16d2646d4f1f26d2d9d48627

commit 175da11b04dd3bcb16d2646d4f1f26d2d9d48627
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-11-18 21:04:56 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-18 22:34:15 +0000

    audio/stk: Update 4.6.1 -> 4.6.2
    
    Reported by:    portscout
---
 audio/stk/Makefile                 | 10 +++++++---
 audio/stk/distinfo                 |  6 +++---
 audio/stk/files/patch-configure.ac | 12 ++++++------
 audio/stk/pkg-plist                |  2 +-
 4 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/audio/stk/Makefile b/audio/stk/Makefile
index 2a41aaff0f85..4d8226f93b56 100644
--- a/audio/stk/Makefile
+++ b/audio/stk/Makefile
@@ -1,8 +1,7 @@
 # Created by: Yuri Victorovich <yuri@rawbw.com>
 
 PORTNAME=	stk
-PORTVERSION=	4.6.1
-PORTREVISION=	2
+PORTVERSION=	4.6.2
 CATEGORIES=	audio
 MASTER_SITES=	http://ccrma.stanford.edu/software/stk/release/
 
@@ -16,11 +15,16 @@ LIB_DEPENDS=	libjack.so:audio/jack
 
 USES=		autoreconf compiler:c++11-lang dos2unix gmake localbase pkgconfig
 USE_LDCONFIG=	yes
+
+DOS2UNIX_GLOB=	*.cpp *.h
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-jack --with-oss
-DOS2UNIX_GLOB=	*.cpp *.h
+
 MAKE_ARGS=	RAWWAVES=${DATADIR}/rawwaves/
 
+LDFLAGS+=	-pthread
+
 post-install:
 	@cd ${WRKSRC} && ${COPYTREE_SHARE} rawwaves ${STAGEDIR}${DATADIR}
 	@${RM} ${STAGEDIR}${DATADIR}/rawwaves/._* ${STAGEDIR}${DATADIR}/rawwaves/*.c
diff --git a/audio/stk/distinfo b/audio/stk/distinfo
index c59296eb7a15..b82f155b883f 100644
--- a/audio/stk/distinfo
+++ b/audio/stk/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1556434208
-SHA256 (stk-4.6.1.tar.gz) = e77ba3c80cdd93ca02c34098b9b7f918df3d648c87f1ed5d94fe854debd6d101
-SIZE (stk-4.6.1.tar.gz) = 2593348
+TIMESTAMP = 1637267004
+SHA256 (stk-4.6.2.tar.gz) = 573e26ccf72ce436a1dc4ee3bea05fd35e0a8e742c339c7f5b85225502238083
+SIZE (stk-4.6.2.tar.gz) = 2618125
diff --git a/audio/stk/files/patch-configure.ac b/audio/stk/files/patch-configure.ac
index 92b5739b525f..36239221a15c 100644
--- a/audio/stk/files/patch-configure.ac
+++ b/audio/stk/files/patch-configure.ac
@@ -1,6 +1,6 @@
---- configure.ac.orig	2017-09-01 00:28:55 UTC
+--- configure.ac.orig	2021-11-18 02:08:39 UTC
 +++ configure.ac
-@@ -85,7 +85,6 @@ if test "$debug" = "yes"; then
+@@ -89,7 +89,6 @@ if test "$debug" = "yes"; then
  else
    AC_SUBST( debug, [no] )
    AC_SUBST( cppflag, [] )
@@ -8,7 +8,7 @@
    AC_SUBST( object_path, [Release] )
  fi
  AC_MSG_RESULT($debug)
-@@ -100,7 +99,7 @@ fi
+@@ -104,7 +103,7 @@ fi
  CPPFLAGS="$CPPFLAGS $cppflag"
  
  # For debugging and optimization ... overwrite default because it has both -g and -O2
@@ -17,10 +17,10 @@
  
  # Check compiler and use -Wall if gnu.
  if [test $GXX = "yes" ;] then
-@@ -134,27 +133,27 @@ api="$api -D__UNIX_JACK__"
-   AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))])
+@@ -154,27 +153,27 @@ api="$api -D__UNIX_JACK__"
+       AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))])
+     ;;
  
-   case $host in
 -    *-*-linux*)
 +    *-*-linux*|*-*-freebsd*)
      # Look for ALSA flag
diff --git a/audio/stk/pkg-plist b/audio/stk/pkg-plist
index 81f7dd5d8d8b..8bcbdf3de92e 100644
--- a/audio/stk/pkg-plist
+++ b/audio/stk/pkg-plist
@@ -102,7 +102,7 @@ include/stk/Whistle.h
 include/stk/Wurley.h
 include/stk/WvIn.h
 include/stk/WvOut.h
-lib/libstk-4.6.1.so
+lib/libstk-4.6.2.so
 lib/libstk.so
 %%DATADIR%%/rawwaves/ahh.raw
 %%DATADIR%%/rawwaves/bassdrum.raw