pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ncurses
Module Name: pkgsrc
Committed By: jperkin
Date: Tue May 7 10:06:11 UTC 2024
Modified Files:
pkgsrc/devel/ncurses: builtin.mk
Log Message:
ncurses: Put back fake ncurses.pc handling.
Fixes build of e.g. editors/mg on macOS using builtin ncurses.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 pkgsrc/devel/ncurses/builtin.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/ncurses/builtin.mk
diff -u pkgsrc/devel/ncurses/builtin.mk:1.51 pkgsrc/devel/ncurses/builtin.mk:1.52
--- pkgsrc/devel/ncurses/builtin.mk:1.51 Mon May 6 07:59:27 2024
+++ pkgsrc/devel/ncurses/builtin.mk Tue May 7 10:06:11 2024
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.51 2024/05/06 07:59:27 jperkin Exp $
+# $NetBSD: builtin.mk,v 1.52 2024/05/07 10:06:11 jperkin Exp $
BUILTIN_PKG:= ncurses
@@ -104,10 +104,28 @@ CHECK_BUILTIN.ncurses?= no
. if ${USE_BUILTIN.ncurses:tl} == yes
BUILDLINK_LIBNAME.ncurses= ${BUILTIN_LIBNAME.ncurses}
BUILDLINK_TRANSFORM+= l:ncurses:${BUILTIN_LIBNAME.ncurses}
+BUILDLINK_TARGETS+= ncurses-fake-pc
. else
BUILDLINK_TRANSFORM+= l:form:gnuform
BUILDLINK_TRANSFORM+= l:panel:gnupanel
BUILDLINK_TRANSFORM+= l:menu:gnumenu
. endif
+.PHONY: ncurses-fake-pc
+ncurses-fake-pc:
+ ${RUN} \
+ ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
+ src=${NCURSES_PC}; \
+ dst=${BUILDLINK_DIR}/lib/pkgconfig/ncurses.pc; \
+ if ${TEST} -f $${src}; then \
+ ${LN} -sf $${src} $${dst}; \
+ else \
+ { ${ECHO} "Name: ncurses"; \
+ ${ECHO} "Description: ncurses library"; \
+ ${ECHO} "Version: ${BUILTIN_VERSION.ncurses}"; \
+ ${ECHO} "Libs: -L/usr/lib -lncurses"; \
+ ${ECHO} "Cflags: -I/usr/include"; \
+ } >$${dst} ; \
+ fi
+
.endif # CHECK_BUILTIN.ncurses
Home |
Main Index |
Thread Index |
Old Index