pkgsrc-Changes archive

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

CVS commit: pkgsrc/news/newsraft



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Apr 10 22:21:34 UTC 2025

Modified Files:
        pkgsrc/news/newsraft: Makefile

Log Message:
newsraft: Add support for NetBSD curses. Fix build on non-NetBSD.

This has a missing dependency on expat, which is builtin on
NetBSD, so it silently worked there.

The problem was identified by drecklypkg ci, which verified that
the build works on OpenBSD/FreeBSD/Linux/macOS. It's broken
on SunOS due to misusing _XOPEN_SOURCE_EXTENDED, but once that's
fixed another problem pops up.

Bump PKGREVISION for shared library change on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/news/newsraft/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/news/newsraft/Makefile
diff -u pkgsrc/news/newsraft/Makefile:1.17 pkgsrc/news/newsraft/Makefile:1.18
--- pkgsrc/news/newsraft/Makefile:1.17  Mon Mar 31 13:52:18 2025
+++ pkgsrc/news/newsraft/Makefile       Thu Apr 10 22:21:34 2025
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.17 2025/03/31 13:52:18 ktnb Exp $
+# $NetBSD: Makefile,v 1.18 2025/04/10 22:21:34 nia Exp $
 
 DISTNAME=      newsraft-0.29
+PKGREVISION=   1
 CATEGORIES=    news
 MASTER_SITES=  https://codeberg.org/newsraft/newsraft/archive/
 
@@ -11,12 +12,14 @@ LICENSE=    isc
 
 WRKSRC=        ${WRKDIR}/newsraft
 
-USE_LANGUAGES= c
 USE_TOOLS+=    pkg-config pax
 TOOL_DEPENDS+= scdoc-[0-9]*:../../textproc/scdoc
 
 MAKE_FILE=     makefile
 
+MAKE_FLAGS+=   CURSES_CFLAGS=-I${BUILDLINK_PREFIX.curses:Q}/include
+MAKE_FLAGS+=   CURSES_LIBS=${BUILDLINK_LDADD.curses:Q}
+
 EGDIR=                 ${PREFIX}/share/examples/newsraft
 
 INSTALLATION_DIRS+=    bin man/man1 share/examples/newsraft
@@ -29,7 +32,8 @@ do-install:
 
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../devel/yajl/buildlink3.mk"
-.include "../../devel/ncurses/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
 .include "../../www/curl/buildlink3.mk"
 .include "../../www/gumbo-parser/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index