From 7f73f20b1a236237a6c6f15c0b9520101e641f79 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 11 Nov 2004 15:51:14 +0000 Subject: 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. --- pkgtools/x11-links/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/x11-links/Makefile b/pkgtools/x11-links/Makefile index 7e2e8cb14ce..ef778895f39 100644 --- a/pkgtools/x11-links/Makefile +++ b/pkgtools/x11-links/Makefile @@ -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 @@ X11_LINKS_DIR= ${PREFIX}/${X11_LINKS_SUBDIR} 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 @@ do-build: ${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; \ -- cgit v1.2.3