diff options
author | John Marino <marino@FreeBSD.org> | 2014-09-16 21:49:12 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-09-16 21:49:12 +0000 |
commit | 644dab49e20b1400a525a372a6d68835be926db5 (patch) | |
tree | 743e176e5fec2b25fde1f32b927588d6afd3145d | |
parent | 47c5d1d6d41988c276b236ee996a497038cd6e2f (diff) | |
download | ports-644dab49e20b1400a525a372a6d68835be926db5.tar.gz ports-644dab49e20b1400a525a372a6d68835be926db5.zip |
Notes
-rw-r--r-- | audio/gogglesmm/Makefile | 17 | ||||
-rw-r--r-- | audio/gogglesmm/distinfo | 4 | ||||
-rw-r--r-- | audio/gogglesmm/files/patch-src__gap__ap_reactor.cpp | 30 | ||||
-rw-r--r-- | audio/gogglesmm/files/patch-src__gap__ap_socket.cpp | 23 | ||||
-rw-r--r-- | audio/gogglesmm/files/patch-src__gap__ap_utils.cpp | 30 | ||||
-rw-r--r-- | audio/gogglesmm/files/patch-src__gap__plugins__ap_oss_plugin.cpp | 11 |
6 files changed, 29 insertions, 86 deletions
diff --git a/audio/gogglesmm/Makefile b/audio/gogglesmm/Makefile index af54b7954a5a..d93b0a4ae2cf 100644 --- a/audio/gogglesmm/Makefile +++ b/audio/gogglesmm/Makefile @@ -2,9 +2,9 @@ # $FreeBSD$ PORTNAME= gogglesmm -PORTVERSION= 0.13.2 -PORTREVISION= 1 +PORTVERSION= 0.13.3 CATEGORIES= audio +MASTER_SITES= GH MAINTAINER= ports@FreeBSD.org COMMENT= Music collection manager and player @@ -18,9 +18,9 @@ LIB_DEPENDS= libtag.so:${PORTSDIR}/audio/taglib \ USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME} -GH_COMMIT= ea16b55 +GH_COMMIT= 259f253 -USES= compiler:c++11-lang desktop-file-utils gmake pkgconfig +USES= compiler:c++0x desktop-file-utils gmake pkgconfig USE_SQLITE= yes HAS_CONFIGURE= yes CONFIGURE_ENV= LINK="${CXX}" \ @@ -31,7 +31,6 @@ CONFIGURE_ARGS= --prefix=${PREFIX} --fox-prefix=${LOCALBASE} \ --without-rsound --without-mpcdec INSTALLS_ICONS= yes -CFLAGS+= -Wno-error=return-type CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -pthread @@ -86,6 +85,12 @@ VORBIS_CONFIGURE_OFF= --without-off --without-vorbis WAVPACK_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack WAVPACK_CONFIGURE_OFF= --without-wavpack +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 34 +USE_GCC= yes +.endif + post-patch: @${REINPLACE_CMD} -e \ 's|share/man|man|' ${WRKSRC}/configure @@ -112,4 +117,4 @@ post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gogglesmm/libgap_*.so -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/audio/gogglesmm/distinfo b/audio/gogglesmm/distinfo index f5e2a2de0575..b546bb51c529 100644 --- a/audio/gogglesmm/distinfo +++ b/audio/gogglesmm/distinfo @@ -1,2 +1,2 @@ -SHA256 (gogglesmm-0.13.2.tar.gz) = d6f577c06b420dcab813a56672c07434b034f30aad0cfc379b9b2a6c20d75e3f -SIZE (gogglesmm-0.13.2.tar.gz) = 1336120 +SHA256 (gogglesmm-0.13.3.tar.gz) = e52695d3e2d328e047ba127bdc960e3935f2f19cfeb8bf99ecc202826ca09ea8 +SIZE (gogglesmm-0.13.3.tar.gz) = 1336269 diff --git a/audio/gogglesmm/files/patch-src__gap__ap_reactor.cpp b/audio/gogglesmm/files/patch-src__gap__ap_reactor.cpp deleted file mode 100644 index 0b0b30472c6e..000000000000 --- a/audio/gogglesmm/files/patch-src__gap__ap_reactor.cpp +++ /dev/null @@ -1,30 +0,0 @@ ---- src/gap/ap_reactor.cpp.orig -+++ src/gap/ap_reactor.cpp -@@ -98,17 +98,27 @@ - #ifndef WIN32 - FXint n; - if (timeout>=0) { -+#ifdef _GNU_SOURCE - struct timespec ts; - ts.tv_sec = timeout / 1000000000; - ts.tv_nsec = timeout % 1000000000; -+#endif - do { -+#ifdef _GNU_SOURCE - n = ppoll(pfds,nfds,&ts,NULL); -+#else -+ n = poll(pfds,nfds,-1); -+#endif - } - while(n==-1 && errno==EINTR); - } - else { - do { -+#ifdef _GNU_SOURCE - n = ppoll(pfds,nfds,NULL,NULL); -+#else -+ n = poll(pfds,nfds,0); -+#endif - } - while(n==-1 && errno==EINTR); - } diff --git a/audio/gogglesmm/files/patch-src__gap__ap_socket.cpp b/audio/gogglesmm/files/patch-src__gap__ap_socket.cpp index 5c9e03302b01..2ace852703f0 100644 --- a/audio/gogglesmm/files/patch-src__gap__ap_socket.cpp +++ b/audio/gogglesmm/files/patch-src__gap__ap_socket.cpp @@ -1,10 +1,19 @@ --- src/gap/ap_socket.cpp.orig +++ src/gap/ap_socket.cpp -@@ -18,6 +18,7 @@ - ********************************************************************************/ - #include "ap_defs.h" - #include "ap_socket.h" -+#include "ap_utils.h" +@@ -41,14 +41,14 @@ + #ifndef SOCK_CLOEXEC + if (!ap_set_closeonexec(device)){ + ::close(device); +- return BadHandle; ++ return; + } + #endif - - #ifndef WIN32 + #ifndef SOCK_NONBLOCK + if (access&FXIO::NonBlocking && !ap_set_nonblocking(device)){ + ::close(device); +- return BadHandle; ++ return; + } + #endif + } diff --git a/audio/gogglesmm/files/patch-src__gap__ap_utils.cpp b/audio/gogglesmm/files/patch-src__gap__ap_utils.cpp deleted file mode 100644 index 394915bc3239..000000000000 --- a/audio/gogglesmm/files/patch-src__gap__ap_utils.cpp +++ /dev/null @@ -1,30 +0,0 @@ ---- src/gap/ap_utils.cpp.orig -+++ src/gap/ap_utils.cpp -@@ -247,17 +247,27 @@ - nfds=2; - } - if (timeout) { -+#ifdef _GNU_SOURCE - struct timespec ts; - ts.tv_sec = (timeout / 1000000000); - ts.tv_nsec = (timeout % 1000000000); -+#endif - do { -+#ifdef _GNU_SOURCE - n=ppoll(fds,nfds,&ts,NULL); -+#else -+ n=poll(fds,nfds,-1); -+#endif - } - while(n==-1 && (errno==EAGAIN || errno==EINTR)); - } - else { - do { -+#ifdef _GNU_SOURCE - n=ppoll(fds,nfds,NULL,NULL); -+#else -+ n=poll(fds,nfds,0); -+#endif - } - while(n==-1 && (errno==EAGAIN || errno==EINTR)); - } diff --git a/audio/gogglesmm/files/patch-src__gap__plugins__ap_oss_plugin.cpp b/audio/gogglesmm/files/patch-src__gap__plugins__ap_oss_plugin.cpp deleted file mode 100644 index c6efc2a53d46..000000000000 --- a/audio/gogglesmm/files/patch-src__gap__plugins__ap_oss_plugin.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/gap/plugins/ap_oss_plugin.cpp.orig -+++ src/gap/plugins/ap_oss_plugin.cpp -@@ -117,7 +117,7 @@ - #ifdef SNDCTL_DSP_COOKEDMODE - /// Turn off automatic resampling. - FXint enabled=(config.flags&OSSConfig::DeviceNoResample) ? 0 : 1; -- if (ioctl(fd,SNDCTL_DSP_COOKEDMODE,&enabled)==-1) -+ if (ioctl(handle,SNDCTL_DSP_COOKEDMODE,&enabled)==-1) - GM_DEBUG_PRINT("[oss] unable to set cooked mode\n"); - #endif - |