pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/x11-links CREATE_X11LINK is used to generate ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/17ef75ce32f8
branches:  trunk
changeset: 483374:17ef75ce32f8
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Nov 11 15:51:14 2004 +0000

description:
CREATE_X11LINK is used to generate the symlinks in the work directory
corresponding to the X11 files.  This can be defined to be more complex
script than the default of "${LN} -fs $$src $$dest" if some of the files
need to have transformations performed on them.

diffstat:

 pkgtools/x11-links/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r bc8d29373614 -r 17ef75ce32f8 pkgtools/x11-links/Makefile
--- a/pkgtools/x11-links/Makefile       Thu Nov 11 14:25:36 2004 +0000
+++ b/pkgtools/x11-links/Makefile       Thu Nov 11 15:51:14 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2004/10/01 03:00:47 reed Exp $
+# $NetBSD: Makefile,v 1.60 2004/11/11 15:51:14 jlam Exp $
 #
 # NOTE:        If you update this package, then you'll likely need to also update
 #      the x11-links dependency in mk/buildlink[23]/bsd.buildlink[23].mk
@@ -47,6 +47,8 @@
 
 FILES_LIST_CMD=        ${CAT} ${FILES_LIST} | ${GREP} -v "^\#"
 
+CREATE_X11LINK?=       ${LN} -fs $$src $$dest
+
 do-build:
        ${MKDIR} ${X11_LINKS_BUILD_DIR}
        ${RM} -f ${PLIST_SRC.dirs}
@@ -62,8 +64,9 @@
        ${FILES_LIST_CMD} | ${SORT} -u |                                \
        while read file; do                                             \
                if ${TEST} -r ${X11BASE}/$$file; then                   \
-                       ${LN} -fs ${X11BASE}/$$file                     \
-                               ${X11_LINKS_BUILD_DIR}/$$file;          \
+                       src="${X11BASE}/$$file";                        \
+                       dest="${X11_LINKS_BUILD_DIR}/$$file";           \
+                       ${CREATE_X11LINK};                              \
                        ${ECHO} "${X11_LINKS_SUBDIR}/$$file"            \
                                >> ${PLIST_SRC.files};                  \
                fi;                                                     \



Home | Main Index | Thread Index | Old Index