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:           Mon May  6 15:08:02 UTC 2024

Modified Files:
        pkgsrc/devel/ncurses: buildlink3.mk

Log Message:
ncurses: Provide a compat symlink for ncursesw.pc.

Some packages hardcode requests for this file, even though the actual
functionality is in libncurses, so just redirect there.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 pkgsrc/devel/ncurses/buildlink3.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/buildlink3.mk
diff -u pkgsrc/devel/ncurses/buildlink3.mk:1.50 pkgsrc/devel/ncurses/buildlink3.mk:1.51
--- pkgsrc/devel/ncurses/buildlink3.mk:1.50     Mon May  6 08:24:05 2024
+++ pkgsrc/devel/ncurses/buildlink3.mk  Mon May  6 15:08:02 2024
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.50 2024/05/06 08:24:05 jperkin Exp $
+# $NetBSD: buildlink3.mk,v 1.51 2024/05/06 15:08:02 jperkin Exp $
 
 BUILDLINK_TREE+=       ncurses
 
@@ -29,6 +29,7 @@ BUILDLINK_CPPFLAGS.ncurses+=  -DNCURSES_W
 BUILDLINK_TARGETS+=            buildlink-ncurses-curses-h
 BUILDLINK_TARGETS+=            buildlink-ncurses-ncurses-h
 BUILDLINK_TARGETS+=            buildlink-ncurses-term-h
+BUILDLINK_TARGETS+=            buildlink-ncursesw-pc
 
 # Some packages will only enable wide curses support if they specifically
 # find it in libncursesw, so redirect requests for it to libncurses.
@@ -37,7 +38,7 @@ BUILDLINK_TRANSFORM+=         l:curses:${BUILDL
 BUILDLINK_TRANSFORM+=          l:ncursesw:${BUILDLINK_LIBNAME.ncurses}
 
 .PHONY: buildlink-ncurses-curses-h buildlink-ncurses-ncurses-h
-.PHONY: buildlink-ncurses-term-h
+.PHONY: buildlink-ncurses-term-h buildlink-ncursesw-pc
 buildlink-ncurses-curses-h:
        ${RUN}                                                                  \
        src=${BUILDLINK_PREFIX.ncurses}"/include/ncurses/curses.h";             \
@@ -68,6 +69,16 @@ buildlink-ncurses-term-h:
                ${LN} -s "$$src" "$$dest";                                      \
        fi
 
+buildlink-ncursesw-pc:
+       ${RUN}                                                                  \
+       src=${BUILDLINK_PREFIX.ncurses}"/lib/pkgconfig/ncurses.pc";             \
+       dest=${BUILDLINK_DIR}"/lib/pkgconfig/ncursesw.pc";                      \
+       if ${TEST} ! -f "$$dest" -a -f "$$src"; then                            \
+               ${ECHO_BUILDLINK_MSG} "Linking ncursesw.pc -> ncurses.pc.";\
+               ${MKDIR} `${DIRNAME} "$$dest"`;                                 \
+               ${LN} -s "$$src" "$$dest";                                      \
+       fi
+
 .endif # NCURSES_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -ncurses



Home | Main Index | Thread Index | Old Index