FreeBSD Bugzilla – Attachment 249645 Details for
Bug 278112
audio/portmidi: upstream change, update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-to-update
portmidi.diff (text/plain), 4.33 KB, created by
Kurt Jaeger
on 2024-04-01 18:03:58 UTC
(
hide
)
Description:
patch-to-update
Filename:
MIME Type:
Creator:
Kurt Jaeger
Created:
2024-04-01 18:03:58 UTC
Size:
4.33 KB
patch
obsolete
>diff --git a/audio/portmidi/Makefile b/audio/portmidi/Makefile >index 53bc51d7766a..1244355cbdf7 100644 >--- a/audio/portmidi/Makefile >+++ b/audio/portmidi/Makefile >@@ -1,10 +1,12 @@ > PORTNAME= portmidi >-PORTVERSION= 236 >+DISTVERSION= 2.0.4 >+DISTVERSIONPREFIX=v >+PORTEPOCH= 1 > CATEGORIES= audio > > MAINTAINER= acm@FreeBSD.org > COMMENT= Library for real time MIDI input and output >-WWW= https://github.com/mixxxdj/portmidi >+WWW= https://github.com/PortMidi > > LICENSE= PL > LICENSE_NAME= PortMidi license >@@ -16,6 +18,6 @@ LIB_DEPENDS= libasound.so:audio/alsa-lib > USES= cmake dos2unix localbase:ldflags > > USE_GITHUB= yes >-GH_ACCOUNT= mixxxdj >+GH_ACCOUNT= PortMidi > > .include <bsd.port.mk> >diff --git a/audio/portmidi/distinfo b/audio/portmidi/distinfo >index ace49e4c704c..5efc84c80524 100644 >--- a/audio/portmidi/distinfo >+++ b/audio/portmidi/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1627687847 >-SHA256 (mixxxdj-portmidi-236_GH0.tar.gz) = 5db9bcb78c728eb81218e905faa5f02eab1f851b3ae5e5b13312755b9b0db943 >-SIZE (mixxxdj-portmidi-236_GH0.tar.gz) = 725831 >+TIMESTAMP = 1711992528 >+SHA256 (PortMidi-portmidi-v2.0.4_GH0.tar.gz) = 64893e823ae146cabd3ad7f9a9a9c5332746abe7847c557b99b2577afa8a607c >+SIZE (PortMidi-portmidi-v2.0.4_GH0.tar.gz) = 263225 >diff --git a/audio/portmidi/files/patch-src_portmidi_linux_finddefault.c b/audio/portmidi/files/patch-src_portmidi_linux_finddefault.c >deleted file mode 100644 >index acff9dfac8cf..000000000000 >--- a/audio/portmidi/files/patch-src_portmidi_linux_finddefault.c >+++ /dev/null >@@ -1,21 +0,0 @@ >---- src/portmidi/linux/finddefault.c.orig 2021-07-17 02:14:06 UTC >-+++ src/portmidi/linux/finddefault.c >-@@ -5,6 +5,9 @@ >- #include <stdlib.h> >- #include <stdio.h> >- #include <string.h> >-+#if defined(__FreeBSD__) >-+#include <ctype.h> >-+#endif >- #include "portmidi.h" >- >- #define STRING_MAX 256 >-@@ -27,7 +30,7 @@ int match_string(FILE *inf, char *s) >- >- >- /* >--/* Parse preference files, find default device, search devices -- >-+ * Parse preference files, find default device, search devices -- >- */ >- PmDeviceID find_default_device(char *path, int input, PmDeviceID id) >- /* path -- the name of the preference we are searching for >diff --git a/audio/portmidi/files/patch-src_porttime_ptlinux.c b/audio/portmidi/files/patch-src_porttime_ptlinux.c >deleted file mode 100644 >index 6d04c73d9ca7..000000000000 >--- a/audio/portmidi/files/patch-src_porttime_ptlinux.c >+++ /dev/null >@@ -1,51 +0,0 @@ >---- src/porttime/ptlinux.c.orig 2021-07-17 02:14:06 UTC >-+++ src/porttime/ptlinux.c >-@@ -1,3 +1,4 @@ >-+ >- /* ptlinux.c -- portable timer implementation for linux */ >- >- >-@@ -31,14 +32,14 @@ CHANGE LOG >- #include "porttime.h" >- #include "sys/time.h" >- #include "sys/resource.h" >--#include "sys/timeb.h" >- #include "pthread.h" >- >- #define TRUE 1 >- #define FALSE 0 >- >- static int time_started_flag = FALSE; >--static struct timeb time_offset = {0, 0, 0, 0}; >-+static struct timeval *time_offset; >-+ >- static pthread_t pt_thread_pid; >- static int pt_thread_created = FALSE; >- >-@@ -79,7 +80,8 @@ static void *Pt_CallbackProc(void *p) >- PtError Pt_Start(int resolution, PtCallback *callback, void *userData) >- { >- if (time_started_flag) return ptNoError; >-- ftime(&time_offset); /* need this set before process runs */ >-+ gettimeofday(time_offset, NULL); >-+ >- if (callback) { >- int res; >- pt_callback_parameters *parms = (pt_callback_parameters *) >-@@ -121,10 +123,12 @@ int Pt_Started() >- PtTimestamp Pt_Time() >- { >- long seconds, milliseconds; >-- struct timeb now; >-- ftime(&now); >-- seconds = now.time - time_offset.time; >-- milliseconds = now.millitm - time_offset.millitm; >-+ struct timeval *now; >-+ >-+ gettimeofday(now, NULL); >-+ >-+ seconds = now->tv_sec - time_offset->tv_sec; >-+ milliseconds = now->tv_usec - time_offset->tv_usec; >- return seconds * 1000 + milliseconds; >- } >- >diff --git a/audio/portmidi/pkg-plist b/audio/portmidi/pkg-plist >index 0e9653173310..1dc05070d242 100644 >--- a/audio/portmidi/pkg-plist >+++ b/audio/portmidi/pkg-plist >@@ -6,9 +6,6 @@ lib/cmake/PortMidi/PortMidiConfigVersion.cmake > lib/cmake/PortMidi/PortMidiTargets-%%CMAKE_BUILD_TYPE%%.cmake > lib/cmake/PortMidi/PortMidiTargets.cmake > lib/libportmidi.so >-lib/libportmidi.so.1 >-lib/libportmidi.so.1.0.236 >-lib/libporttime.so >-lib/libporttime.so.1 >-lib/libporttime.so.1.0.236 >+lib/libportmidi.so.2 >+lib/libportmidi.so.2.0.3 > libdata/pkgconfig/portmidi.pc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
acm
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 278112
: 249645