pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bsddialog: complete the package for NetBSD
Module Name: pkgsrc-wip
Committed By: Pierre Pronchery <khorben%defora.org@localhost>
Pushed By: khorben
Date: Tue Dec 3 23:22:46 2024 +0100
Changeset: c8c85d0bbf58c66cb12d42bad0540ceddedd6cfa
Modified Files:
bsddialog/Makefile
bsddialog/PLIST
bsddialog/distinfo
Added Files:
bsddialog/COMMIT_MSG
bsddialog/patches/patch-lib_Makefile
bsddialog/patches/patch-utility_Makefile
Log Message:
bsddialog: complete the package for NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c8c85d0bbf58c66cb12d42bad0540ceddedd6cfa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
bsddialog/COMMIT_MSG | 4 ++++
bsddialog/Makefile | 4 ++++
bsddialog/PLIST | 6 +++---
bsddialog/distinfo | 2 ++
bsddialog/patches/patch-lib_Makefile | 15 +++++++++++++++
bsddialog/patches/patch-utility_Makefile | 18 ++++++++++++++++++
6 files changed, 46 insertions(+), 3 deletions(-)
diffs:
diff --git a/bsddialog/COMMIT_MSG b/bsddialog/COMMIT_MSG
new file mode 100644
index 0000000000..0d27ba02ff
--- /dev/null
+++ b/bsddialog/COMMIT_MSG
@@ -0,0 +1,4 @@
+misc/bsddialog: import bsddialog version 1.0.4
+
+This project provides bsddialog and libbsddialog, an utility and a library to
+build scripts and tools with TUI dialogs and widgets.
diff --git a/bsddialog/Makefile b/bsddialog/Makefile
index 3e5a5b2fb4..34160446e3 100644
--- a/bsddialog/Makefile
+++ b/bsddialog/Makefile
@@ -15,5 +15,9 @@ LICENSE= 2-clause-bsd
WRKSRC= ${WRKDIR}/bsddialog-${GITLAB_TAG}
+MAKE_FLAGS+= DESTDIR=${DESTDIR}
+MAKE_FLAGS+= PREFIX=${PREFIX}
+AUTO_MKDIRS= yes
+
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/bsddialog/PLIST b/bsddialog/PLIST
index e4e814b62e..5cee676fcf 100644
--- a/bsddialog/PLIST
+++ b/bsddialog/PLIST
@@ -2,6 +2,6 @@
bin/bsddialog
include/bsddialog.h
include/bsddialog_progressview.h
-lib/libdialog.a
-lib/libdialog.so
-lib/libdialog.so.1.0.4
+lib/libbsddialog.a
+lib/libbsddialog.so
+lib/libbsddialog.so.1.0.4
diff --git a/bsddialog/distinfo b/bsddialog/distinfo
index 33931ff195..70cd89427b 100644
--- a/bsddialog/distinfo
+++ b/bsddialog/distinfo
@@ -3,3 +3,5 @@ $NetBSD$
BLAKE2s (bsddialog-1.0.4.tar.gz) = 44fe9cf0b05a2ea3a003093debb77a6ad890774ce98fd4f4fe0f43a28d5a8731
SHA512 (bsddialog-1.0.4.tar.gz) = 317ee8c7f69e7e24cc70b0e701c25b17b744aa606cb60ca9a67d756856a253a0fee231f05b55b187400c2f98cfbc464640f75457513cbeebb17aea3dd9057772
Size (bsddialog-1.0.4.tar.gz) = 87327 bytes
+SHA1 (patch-lib_Makefile) = 46ec7125bcf1ef45840e08118e66bbed5ef495c1
+SHA1 (patch-utility_Makefile) = 08247e044594740830c8c418a3e54d31dd7b44d5
diff --git a/bsddialog/patches/patch-lib_Makefile b/bsddialog/patches/patch-lib_Makefile
new file mode 100644
index 0000000000..0abc264c98
--- /dev/null
+++ b/bsddialog/patches/patch-lib_Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix the build on NetBSD
+
+--- lib/Makefile.orig 2024-12-02 18:36:02.000000000 +0000
++++ lib/Makefile
+@@ -19,7 +19,7 @@ CFLAGS += -D_XOPEN_SOURCE_EXTENDED -fPIC
+ -fstack-protector-strong
+ LDFLAGS += -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings \
+ -Wl,--warn-shared-textrel -Wl,-soname,${LIBRARY_SO}.${VERSION} \
+- -L/usr/lib -lncursesw -ltinfow
++ -L/usr/lib -lcurses
+
+ LN = ln -s -f
+ RM = rm -f
diff --git a/bsddialog/patches/patch-utility_Makefile b/bsddialog/patches/patch-utility_Makefile
new file mode 100644
index 0000000000..e5950ce0c3
--- /dev/null
+++ b/bsddialog/patches/patch-utility_Makefile
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Fix the build on NetBSD
+
+--- utility/Makefile.orig 2024-12-03 22:19:17.670467040 +0000
++++ utility/Makefile
+@@ -14,9 +14,9 @@ CFLAGS += -g
+ CFLAGS += -I${LIBPATH} -std=gnu99 -Wall -Wextra -Werror
+
+ .if defined(NORPATH)
+-LDFLAGS += -ltinfow -L${LIBPATH} -lbsddialog
++LDFLAGS += -L${LIBPATH} -lbsddialog
+ .else
+-LDFLAGS += -ltinfow -Wl,-rpath=${LIBPATH} -L${LIBPATH} -lbsddialog
++LDFLAGS += -Wl,-rpath=${LIBPATH} -L${LIBPATH} -lbsddialog
+ .endif
+
+ INSTALL = install
Home |
Main Index |
Thread Index |
Old Index