pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/libcdio libcdio: fix build on NetBSD with binutil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64241a7d22af
branches:  trunk
changeset: 391295:64241a7d22af
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 07 22:36:23 2023 +0000

description:
libcdio: fix build on NetBSD with binutils 2.39

diffstat:

 misc/libcdio/Makefile                      |   5 ++++-
 misc/libcdio/distinfo                      |   3 ++-
 misc/libcdio/patches/patch-src_Makefile.in |  15 +++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r 770fe59eea14 -r 64241a7d22af misc/libcdio/Makefile
--- a/misc/libcdio/Makefile     Sat Jan 07 21:20:38 2023 +0000
+++ b/misc/libcdio/Makefile     Sat Jan 07 22:36:23 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2022/06/28 11:34:48 wiz Exp $
+# $NetBSD: Makefile,v 1.68 2023/01/07 22:36:23 wiz Exp $
 
 DISTNAME=      libcdio-2.1.0
 PKGREVISION=   5
@@ -25,6 +25,9 @@
 PKGCONFIG_OVERRIDE+=   libudf.pc.in
 TEST_TARGET=           check
 
+# fix linking of cdda_player
+MAKE_FLAGS.NetBSD+=    CURTERMLIB=-lterminfo
+
 .include "../../audio/libcddb/buildlink3.mk"
 .include "../../mk/curses.buildlink3.mk"
 .include "../../devel/popt/buildlink3.mk"
diff -r 770fe59eea14 -r 64241a7d22af misc/libcdio/distinfo
--- a/misc/libcdio/distinfo     Sat Jan 07 21:20:38 2023 +0000
+++ b/misc/libcdio/distinfo     Sat Jan 07 22:36:23 2023 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.34 2021/10/26 10:59:12 nia Exp $
+$NetBSD: distinfo,v 1.35 2023/01/07 22:36:23 wiz Exp $
 
 BLAKE2s (libcdio-2.1.0.tar.bz2) = 5513848ba888570c7757a1a706126e51da3b252cb93bc5f08159b3a8e45b1a16
 SHA512 (libcdio-2.1.0.tar.bz2) = c290821da55fd9ae366670a58857aa6efcebc9f25b7caea063cf12f9cbda84fe770c5f59f972227fda50517ca58c5f39c0137daa0f93179e3daa45303d8b610f
@@ -6,3 +6,4 @@
 SHA1 (patch-configure) = 041105379b760fbd3f710da365b55588320d0ac3
 SHA1 (patch-include_cdio++_iso9660.hpp) = 73bd86ecfa0c728eab231bce36317ab7f616fa4c
 SHA1 (patch-lib_driver_logging.c) = ec74ea317c82737954eb0d66e64810487ed1f222
+SHA1 (patch-src_Makefile.in) = 34a087c9919d487eeae2ffa2885cfd8119d46179
diff -r 770fe59eea14 -r 64241a7d22af misc/libcdio/patches/patch-src_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/libcdio/patches/patch-src_Makefile.in        Sat Jan 07 22:36:23 2023 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2023/01/07 22:36:23 wiz Exp $
+
+Helper patch for linking against libterminfo when needed.
+
+--- src/Makefile.in.orig       2023-01-07 19:05:06.747518597 +0000
++++ src/Makefile.in
+@@ -487,7 +487,7 @@ check_programs = $(am__append_1) $(am__a
+       $(am__append_7) mmc-tool
+ noinst_HEADERS = cddb.h getopt.h util.h
+ @BUILD_CDDA_PLAYER_TRUE@cdda_player_SOURCES = cdda-player.c cddb.c cddb.h $(GETOPT_C)
+-@BUILD_CDDA_PLAYER_TRUE@cdda_player_LDADD = $(LIBCDIO_LIBS) $(CDDB_LIBS) $(CDDA_PLAYER_LIBS)
++@BUILD_CDDA_PLAYER_TRUE@cdda_player_LDADD = $(LIBCDIO_LIBS) $(CDDB_LIBS) $(CDDA_PLAYER_LIBS) $(CURTERMLIB)
+ @BUILD_CDDA_PLAYER_TRUE@bin_cdda_player = cdda-player
+ @BUILD_CD_DRIVE_TRUE@cd_drive_SOURCES = cd-drive.c util.c util.h $(GETOPT_C)
+ @BUILD_CD_DRIVE_TRUE@cd_drive_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)



Home | Main Index | Thread Index | Old Index