pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/ympd ympd: Honor CFLAGS. Fix illumos build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51e57f571266
branches:  trunk
changeset: 377283:51e57f571266
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Apr 18 18:43:07 2022 +0000

description:
ympd: Honor CFLAGS. Fix illumos build.

diffstat:

 audio/ympd/Makefile                     |   5 ++++-
 audio/ympd/distinfo                     |   5 +++--
 audio/ympd/patches/patch-CMakeLists.txt |  14 +++++++++++++-
 audio/ympd/patches/patch-src_mongoose.c |  16 ++++++++++++++++
 4 files changed, 36 insertions(+), 4 deletions(-)

diffs (78 lines):

diff -r e9765e6b9672 -r 51e57f571266 audio/ympd/Makefile
--- a/audio/ympd/Makefile       Mon Apr 18 18:34:33 2022 +0000
+++ b/audio/ympd/Makefile       Mon Apr 18 18:43:07 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2021/07/20 06:37:18 nia Exp $
+# $NetBSD: Makefile,v 1.2 2022/04/18 18:43:07 nia Exp $
 
 DISTNAME=      ympd-1.3.0
 CATEGORIES=    audio
@@ -16,6 +16,9 @@
 
 BUILD_DEFS+=   VARBASE
 
+CFLAGS.SunOS+= -D_POSIX_C_SOURCE=200112L
+LDFLAGS.SunOS+=        -lnsl -lsocket
+
 .include "../../mk/bsd.prefs.mk"
 
 RCD_SCRIPTS+=  ympd
diff -r e9765e6b9672 -r 51e57f571266 audio/ympd/distinfo
--- a/audio/ympd/distinfo       Mon Apr 18 18:34:33 2022 +0000
+++ b/audio/ympd/distinfo       Mon Apr 18 18:43:07 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 09:59:39 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/04/18 18:43:07 nia Exp $
 
 BLAKE2s (ympd-1.3.0.tar.gz) = b5ca6d6c898366f89d61805960a568a093008cfe8b307fa24405194ebd9c6f01
 SHA512 (ympd-1.3.0.tar.gz) = 7e2bd4124b0e7692e2528e9fc50955d1b357ba042d8c97941160ad31ee0c89bc53b349195b45d27ce77aaa954bc01aceba1a30cdb89d9f58644a0b4934498a16
 Size (ympd-1.3.0.tar.gz) = 350115 bytes
-SHA1 (patch-CMakeLists.txt) = 727b742ffc579575b00d0a185f071b67805f1ef8
+SHA1 (patch-CMakeLists.txt) = 74d21cf3d850b1a723ea803b5c0bbc459bd8a452
+SHA1 (patch-src_mongoose.c) = 9ef4d9fe2f7a9e9e337f5c81f335e4111329f8e9
diff -r e9765e6b9672 -r 51e57f571266 audio/ympd/patches/patch-CMakeLists.txt
--- a/audio/ympd/patches/patch-CMakeLists.txt   Mon Apr 18 18:34:33 2022 +0000
+++ b/audio/ympd/patches/patch-CMakeLists.txt   Mon Apr 18 18:43:07 2022 +0000
@@ -1,9 +1,21 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2021/07/20 06:37:18 nia Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2022/04/18 18:43:07 nia Exp $
 
+Honor CFLAGS.
 Use CMAKE_INSTALL_MANDIR.
 
 --- CMakeLists.txt.orig        2016-02-13 21:01:52.000000000 +0000
 +++ CMakeLists.txt
+@@ -24,8 +24,8 @@ include_directories(${PROJECT_BINARY_DIR
+ 
+ include(CheckCSourceCompiles)
+ 
+-set(CMAKE_C_FLAGS "-std=gnu99 -Wall")
+-set(CMAKE_C_FLAGS_DEBUG "-ggdb -pedantic")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall")
++set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb -pedantic")
+ if(WITH_IPV6)
+     set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS NS_ENABLE_IPV6)
+ endif()
 @@ -72,8 +72,10 @@ endif()
  add_executable(ympd ${SOURCES})
  target_link_libraries(ympd ${LIBMPDCLIENT_LIBRARY} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES})
diff -r e9765e6b9672 -r 51e57f571266 audio/ympd/patches/patch-src_mongoose.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ympd/patches/patch-src_mongoose.c   Mon Apr 18 18:43:07 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_mongoose.c,v 1.1 2022/04/18 18:43:07 nia Exp $
+
+solarisfixes.h does not exist, and doesn't seem to be needed anyway.
+
+--- src/mongoose.c.orig        2016-02-13 21:01:52.000000000 +0000
++++ src/mongoose.c
+@@ -2801,9 +2801,6 @@ static int is_big_endian(void) {
+ // START OF SHA-1 code
+ // Copyright(c) By Steve Reid <steve%edmweb.com@localhost>
+ #define SHA1HANDSOFF
+-#if defined(__sun)
+-#include "solarisfixes.h"
+-#endif
+ 
+ union char64long16 { unsigned char c[64]; uint32_t l[16]; };
+ 



Home | Main Index | Thread Index | Old Index