Skip to content

Commit

Permalink
*/*: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Jun 15, 2015
1 parent 8464887 commit e9e91b3
Show file tree
Hide file tree
Showing 917 changed files with 6,376 additions and 5,828 deletions.
1 change: 1 addition & 0 deletions astro/josm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ JAVA_VERSION= 1.7+
JOSM_MEMORY_LIMIT?=1024

NO_BUILD= yes
NO_ARCH= yes

SUB_FILES= josm.sh
SUB_LIST= JARNAME=${DISTNAME} JOSM_MEMORY_LIMIT=${JOSM_MEMORY_LIMIT}
Expand Down
2 changes: 1 addition & 1 deletion astro/libnova/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v%20${PORTVERSION}

MAINTAINER= dhn@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Astronomical Calculation Library

USES= autoreconf libtool
Expand Down
1 change: 1 addition & 0 deletions astro/osmium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ GH_TAGNAME= 1a5bb26
CXXFLAGS+= -I${LOCALBASE}/include \
-L${LOCALBASE}/lib

NO_ARCH= yes
PORTDOCS= *

OPTIONS_DEFINE= JAVASCRIPT DOXYGEN DOCS
Expand Down
2 changes: 1 addition & 1 deletion audio/cantata/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= cantata
PORTVERSION= 1.5.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio kde
MASTER_SITES= https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60UktwaTRMTjRIUW8&dummy=

Expand Down
2 changes: 1 addition & 1 deletion audio/cmus-post.fm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CATEGORIES= audio
MASTER_SITES= CENKES
PKGNAMEPREFIX= cmus-

MAINTAINER= dhn@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Last.fm submitter

BROKEN= No public distfiles
Expand Down
2 changes: 1 addition & 1 deletion audio/cripple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PORTREVISION= 8
CATEGORIES= audio
MASTER_SITES= http://www.vortex.prodigynet.co.uk/${PORTNAME}/

MAINTAINER= dhn@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Command line CD ripper/encoder wrapper with cddb support

BROKEN= Fails to fetch
Expand Down
2 changes: 1 addition & 1 deletion audio/cutmp3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CATEGORIES= audio
MASTER_SITES= http://www.puchalla-online.de/ \
http://mirror.mcx2.org/

MAINTAINER= dhn@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Small and fast command line MP3 editor

USES= tar:bzip2 readline
Expand Down
5 changes: 3 additions & 2 deletions audio/epos-devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

PORTNAME= epos
PORTVERSION= 2.5.37
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-dev/${PORTVERSION}

Expand All @@ -12,9 +13,9 @@ COMMENT= Text-to-Speech system
LICENSE= GPLv2 LGPL20
LICENSE_COMB= multi

USES= bison gmake
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_lib_stdcpp_main=no
CONFIGURE_ENV= ac_cv_lib_stdcpp_main=no YACC=${YACC}

post-patch:
@${REINPLACE_CMD} -e 's/^\(SUBDIRS =.*\)doc/\1/' ${WRKSRC}/Makefile.in
Expand Down
2 changes: 1 addition & 1 deletion audio/goobox/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

PORTNAME= goobox
PORTVERSION= 3.3.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= audio gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
Expand Down
2 changes: 1 addition & 1 deletion audio/jack/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= jackit
PORTVERSION= 0.124.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://jackaudio.org/downloads/
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
Expand Down
8 changes: 5 additions & 3 deletions audio/jack/files/patch-configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
--- configure 2014-01-22 15:23:47.000000000 -0500
+++ configure 2014-11-30 13:05:39.000000000 -0500
@@ -2608,48 +2608,4 @@
--- configure.orig 2014-01-22 20:23:47 UTC
+++ configure
@@ -2607,50 +2607,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
ac_compiler_gnu=$ac_cv_c_compiler_gnu


-
Expand Down Expand Up @@ -49,3 +50,4 @@
-
ac_aux_dir=
for ac_dir in config "$srcdir"/config; do
for ac_t in install-sh install.sh shtool; do
11 changes: 0 additions & 11 deletions audio/jack/files/patch-drivers-alsa_memops.c

This file was deleted.

6 changes: 3 additions & 3 deletions audio/jack/files/patch-drivers-dummy-dummy_driver.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- drivers/dummy/dummy_driver.c.orig 2009-02-12 04:44:04.000000000 +0100
+++ drivers/dummy/dummy_driver.c 2009-02-12 04:44:15.000000000 +0100
@@ -73,7 +73,7 @@
--- drivers/dummy/dummy_driver.c.orig 2013-10-04 00:45:25 UTC
+++ drivers/dummy/dummy_driver.c
@@ -73,7 +73,7 @@ FakeVideoSync( dummy_driver_t *driver )
}
}

Expand Down
6 changes: 3 additions & 3 deletions audio/jack/files/patch-drivers-dummy-dummy_driver.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- drivers/dummy/dummy_driver.h.orig 2009-02-12 05:04:38.000000000 +0100
+++ drivers/dummy/dummy_driver.h 2009-02-12 05:04:44.000000000 +0100
@@ -44,7 +44,7 @@
--- drivers/dummy/dummy_driver.h.orig 2013-10-04 00:45:25 UTC
+++ drivers/dummy/dummy_driver.h
@@ -44,7 +44,7 @@ struct _dummy_driver
jack_nframes_t period_size;
unsigned long wait_time;

Expand Down
172 changes: 168 additions & 4 deletions audio/jack/files/patch-drivers-oss-oss_driver.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- drivers/oss/oss_driver.c.orig
--- drivers/oss/oss_driver.c.orig 2013-10-04 00:45:25 UTC
+++ drivers/oss/oss_driver.c
@@ -23,6 +23,7 @@

Expand All @@ -8,7 +8,7 @@
#ifdef USE_BARRIER
/*
* POSIX conformance level should be globally defined somewhere, possibly
@@ -181,7 +182,9 @@ static void set_period_size (oss_driver_
@@ -183,7 +184,9 @@ static void set_period_size (oss_driver_
((double) driver->period_size /
(double) driver->sample_rate) * 1e6;
driver->last_wait_ust = 0;
Expand All @@ -19,7 +19,7 @@
driver->next_periodtime = 0;
driver->iodelay = 0.0F;
}
@@ -189,7 +192,9 @@ static void set_period_size (oss_driver_
@@ -191,7 +194,9 @@ static void set_period_size (oss_driver_
static inline void update_times (oss_driver_t *driver)
{
Expand All @@ -30,7 +30,85 @@
if (driver->next_periodtime > 0)
{
driver->iodelay = (float)
@@ -759,7 +764,9 @@ static int oss_driver_start (oss_driver_
@@ -224,6 +229,7 @@ static void copy_and_convert_in (jack_sa
int dstidx;
signed short *s16src = (signed short *) src;
signed int *s32src = (signed int *) src;
+ unsigned char *s24src = (unsigned char *) src;
double *f64src = (double *) src;
jack_sample_t scale;
@@ -240,11 +246,14 @@ static void copy_and_convert_in (jack_sa
}
break;
case 24:
- scale = 1.0f / 0x7fffff;
+ scale = 1.0f / 0x7fffffff;
for (dstidx = 0; dstidx < nframes; dstidx++)
{
dst[dstidx] = (jack_sample_t)
- s32src[srcidx] * scale;
+ ((signed int)(
+ (s24src[3 * srcidx + 2] << 24) |
+ (s24src[3 * srcidx + 1] << 16) |
+ (s24src[3 * srcidx + 0] << 8))) * scale;
srcidx += chcount;
}
break;
@@ -274,6 +283,7 @@ static void copy_and_convert_out (void *
int srcidx;
int dstidx;
signed short *s16dst = (signed short *) dst;
+ unsigned char *s24dst = (unsigned char *) dst;
signed int *s32dst = (signed int *) dst;
double *f64dst = (double *) dst;
jack_sample_t scale;
@@ -293,13 +303,17 @@ static void copy_and_convert_out (void *
}
break;
case 24:
- scale = 0x7fffff;
+ scale = 0x7fffffff;
for (srcidx = 0; srcidx < nframes; srcidx++)
{
- s32dst[dstidx] = (signed int)
- (src[srcidx] >= 0.0f) ?
- (src[srcidx] * scale + 0.5f) :
- (src[srcidx] * scale - 0.5f);
+ signed int sample =
+ (src[srcidx] >= 0.0f) ?
+ (src[srcidx] * scale + 0.5f) :
+ (src[srcidx] * scale - 0.5f) ;
+
+ s24dst[3*dstidx + 2] = sample >> 24;
+ s24dst[3*dstidx + 1] = sample >> 16;
+ s24dst[3*dstidx + 0] = sample >> 8;
dstidx += chcount;
}
break;
@@ -471,20 +485,7 @@ static int oss_driver_start (oss_driver_
const char *indev = driver->indev;
const char *outdev = driver->outdev;
- switch (driver->bits)
- {
- case 24:
- case 32:
- samplesize = sizeof(int);
- break;
- case 64:
- samplesize = sizeof(double);
- break;
- case 16:
- default:
- samplesize = sizeof(short);
- break;
- }
+ samplesize = driver->bits / 8;
driver->trigger = 0;
if (strcmp(indev, outdev) != 0)
{
@@ -762,7 +763,9 @@ static int oss_driver_start (oss_driver_
if (driver->threads & 1) sem_post(&driver->sem_start);
if (driver->threads & 2) sem_post(&driver->sem_start);
Expand All @@ -41,3 +119,89 @@
driver->next_periodtime = 0;
driver->iodelay = 0.0F;
@@ -1235,7 +1238,24 @@ jack_driver_t * driver_initialize (jack_
}
pnode = jack_slist_next(pnode);
}
-
+
+ switch (bits)
+ {
+ case 16: /* native-endian 16-bit integer */
+ driver->format = AFMT_S16_NE;
+ break;
+ case 24: /* little-endian 24-bit integer */
+ driver->format = AFMT_S24_LE;
+ break;
+ case 32: /* native-endian 32-bit integer */
+ driver->format = AFMT_S32_NE;
+ break;
+ default:
+ free(driver);
+ jack_error("OSS: invalid number of bits: %d",
+ __FILE__, __LINE__, bits);
+ return NULL;
+ }
driver->sample_rate = sample_rate;
driver->period_size = period_size;
driver->nperiods = nperiods;
@@ -1254,59 +1274,6 @@ jack_driver_t * driver_initialize (jack_
driver->outdev = strdup(OSS_DRIVER_DEF_DEV);
driver->infd = -1;
driver->outfd = -1;
- switch (driver->bits)
- {
-# ifndef OSS_ENDIAN
-# ifdef __GNUC__
-# if (defined(__i386__) || defined(__alpha__) || defined(__arm__) || defined(__x86_64__) || (defined(__sh__) && !defined(__LITTLE_ENDIAN__)))
-# define OSS_LITTLE_ENDIAN 1234
-# define OSS_ENDIAN OSS_LITTLE_ENDIAN
-# else
-# define OSS_BIG_ENDIAN 4321
-# define OSS_ENDIAN OSS_BIG_ENDIAN
-# endif
-# else /* __GNUC__ */
-# if (defined(_AIX) || defined(AIX) || defined(sparc) || defined(__hppa) || defined(PPC) || defined(__powerpc__) && !defined(i386) && !defined(__i386) && !defined(__i386__))
-# define OSS_BIG_ENDIAN 4321
-# define OSS_ENDIAN OSS_BIG_ENDIAN
-# else
-# define OSS_LITTLE_ENDIAN 1234
-# define OSS_ENDIAN OSS_LITTLE_ENDIAN
-# endif
-# endif /* __GNUC__ */
-# endif /* OSS_ENDIAN */
-# if (OSS_ENDIAN == 1234)
- /* little-endian architectures */
- case 24: /* little-endian LSB aligned 24-bits in 32-bits integer */
- driver->format = 0x00008000;
- break;
- case 32: /* little-endian 32-bit integer */
- driver->format = 0x00001000;
- break;
- case 64: /* native-endian 64-bit float */
- driver->format = 0x00004000;
- break;
- case 16: /* little-endian 16-bit integer */
- default:
- driver->format = 0x00000010;
- break;
- /* big-endian architectures */
-# else
- case 24: /* big-endian LSB aligned 24-bits in 32-bits integer */
- break;
- driver->format = 0x00010000;
- case 32: /* big-endian 32-bit integer */
- driver->format = 0x00002000;
- break;
- case 64: /* native-endian 64-bit float */
- driver->format = 0x00004000;
- break;
- case 16: /* big-endian 16-bit integer */
- default:
- driver->format = 0x00000020;
-# endif
- }
-
driver->indevbuf = driver->outdevbuf = NULL;

driver->capture_ports = NULL;
11 changes: 11 additions & 0 deletions audio/jack/files/patch-drivers_alsa_memops.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- drivers/alsa/memops.c.orig 2013-10-04 00:45:25 UTC
+++ drivers/alsa/memops.c
@@ -30,7 +30,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <limits.h>
-#include <endian.h>
+#include <sys/endian.h>

#include "memops.h"

8 changes: 4 additions & 4 deletions audio/jack/files/patch-jack.pc.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
--- jack.pc.in.orig Thu Jun 5 03:21:36 2003
+++ jack.pc.in Sun Mar 14 22:49:44 2004
@@ -6,5 +6,5 @@
--- jack.pc.in.orig 2013-10-04 00:45:25 UTC
+++ jack.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: jack
Description: the Jack Audio Connection Kit: a low-latency synchronous callback-based media server
Version: @JACK_VERSION@
-Libs: -L${libdir} -ljack -lpthread -ldl -lrt
-Libs: -L${libdir} -ljack -lpthread @OS_LDFLAGS@
+Libs: -L${libdir} -ljack -lpthread
Cflags: -I${includedir}
8 changes: 4 additions & 4 deletions audio/jack/files/patch-jackd_engine.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- jackd/engine.c.orig 2008-12-02 17:29:23.000000000 +0100
+++ jackd/engine.c 2009-02-11 20:38:52.000000000 +0100
@@ -1383,7 +1383,7 @@
--- jackd/engine.c.orig 2013-11-30 17:04:00 UTC
+++ jackd/engine.c
@@ -1415,7 +1415,7 @@ handle_external_client_request (jack_eng
if ((r = read (client->request_fd, &req, sizeof (req)))
< (ssize_t) sizeof (req)) {
if (r == 0) {
Expand All @@ -9,7 +9,7 @@
/* poll is implemented using
select (see the macosx/fakepoll
code). When the socket is closed
@@ -1396,7 +1396,7 @@
@@ -1428,7 +1428,7 @@ handle_external_client_request (jack_eng
and remove the client.
*/
jack_mark_client_socket_error (engine, fd);
Expand Down
Loading

0 comments on commit e9e91b3

Please sign in to comment.