summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-11-11 15:51:14 +0000
committerjlam <jlam@pkgsrc.org>2004-11-11 15:51:14 +0000
commit96580e486bfe77a669889929749aef035d2140ee (patch)
treef2af62093dbf7851d19357f8c3c967bd6f033873 /pkgtools
parente49454a560b9f8eb1cf95bf8c96f3bc601fa7e69 (diff)
downloadpkgsrc-96580e486bfe77a669889929749aef035d2140ee.tar.gz
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 (limited to 'pkgtools')
-rw-r--r--pkgtools/x11-links/Makefile9
1 files changed, 6 insertions, 3 deletions
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; \