pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/archivers/libarchive
Module Name: pkgsrc
Committed By: leot
Date: Thu Jun 7 14:28:43 UTC 2018
Modified Files:
pkgsrc/archivers/libarchive: builtin.mk
Log Message:
libarchive: Use `:Q' instead of directly quoting the sed commands in builtin.mk
Use `:Q' operator for BUILDLINK_PREFIX and pass the @LIBS@
via a variable.
Suggested by <joerg>, thanks!
(Possible incorrectnesses are mine!)
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/archivers/libarchive/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/archivers/libarchive/builtin.mk
diff -u pkgsrc/archivers/libarchive/builtin.mk:1.8 pkgsrc/archivers/libarchive/builtin.mk:1.9
--- pkgsrc/archivers/libarchive/builtin.mk:1.8 Thu Jun 7 11:47:58 2018
+++ pkgsrc/archivers/libarchive/builtin.mk Thu Jun 7 14:28:42 2018
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.8 2018/06/07 11:47:58 leot Exp $
+# $NetBSD: builtin.mk,v 1.9 2018/06/07 14:28:42 leot Exp $
BUILTIN_PKG:= libarchive
@@ -99,12 +99,13 @@ CHECK_BUILTIN.libarchive?= no
BUILDLINK_TARGETS+= fake-libarchive-pc
-_FAKE_LIBARCHIVE_PC=${BUILDLINK_DIR}/lib/pkgconfig/libarchive.pc
+_FAKE_LIBARCHIVE_PC= ${BUILDLINK_DIR}/lib/pkgconfig/libarchive.pc
+_LIBARCHIVE_LIBS= -llzma -lbz2 -lz
fake-libarchive-pc:
${RUN} \
sedsrc=../../archivers/libarchive/files/build/pkgconfig/libarchive.pc.in; \
- src=${BUILDLINK_PREFIX.libarchive}/lib${LIBABISUFFIX}/pkgconfig/libarchive.pc; \
+ src=${BUILDLINK_PREFIX.libarchive:Q}/lib${LIBABISUFFIX}/pkgconfig/libarchive.pc;\
dst=${_FAKE_LIBARCHIVE_PC}; \
${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
if [ ! -f $${dst} ]; then \
@@ -113,12 +114,12 @@ fake-libarchive-pc:
${LN} -sf $${src} $${dst}; \
else \
${ECHO_BUILDLINK_MSG} "Creating $${dst}"; \
- ${SED} -e 's,@prefix@,${BUILDLINK_PREFIX.libarchive},' \
- -e 's,@exec_prefix@,${BUILDLINK_PREFIX.libarchive},'\
- -e 's,@libdir@,${BUILDLINK_PREFIX.libarchive}/lib${LIBABISUFFIX},'\
- -e 's,@includedir@,${BUILDLINK_PREFIX.libarchive}/include,'\
- -e 's,@VERSION@,${BUILTIN_VERSION.libarchive},' \
- -e 's,@LIBS@,-llzma -lbz2 -lz,' \
+ ${SED} -e s,@prefix@,${BUILDLINK_PREFIX.libarchive:Q}, \
+ -e s,@exec_prefix@,${BUILDLINK_PREFIX.libarchive:Q},\
+ -e s,@libdir@,${BUILDLINK_PREFIX.libarchive:Q}/lib${LIBABISUFFIX},\
+ -e s,@includedir@,${BUILDLINK_PREFIX.libarchive:Q}/include,\
+ -e s,@VERSION@,${BUILTIN_VERSION.libarchive}, \
+ -e s,@LIBS@,${_LIBARCHIVE_LIBS:Q}, \
$${sedsrc} > $${dst}; \
fi \
fi
Home |
Main Index |
Thread Index |
Old Index