pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/xz Provide liblzma.pc for builtin case
details: https://anonhg.NetBSD.org/pkgsrc/rev/044e535fff52
branches: trunk
changeset: 379399:044e535fff52
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Sun Apr 29 21:18:16 2018 +0000
description:
Provide liblzma.pc for builtin case
This is required by upcoming gimp-2.10.0.
diffstat:
archivers/xz/builtin.mk | 34 +++++++++++++++++++++++++++++++++-
1 files changed, 33 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r ad78139527c3 -r 044e535fff52 archivers/xz/builtin.mk
--- a/archivers/xz/builtin.mk Sun Apr 29 21:14:18 2018 +0000
+++ b/archivers/xz/builtin.mk Sun Apr 29 21:18:16 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.4 2014/05/22 12:10:52 obache Exp $
+# $NetBSD: builtin.mk,v 1.5 2018/04/29 21:18:16 ryoon Exp $
BUILTIN_PKG:= xz
@@ -98,4 +98,36 @@
BUILDLINK_FILES.xz+= lib/pkgconfig/xz.pc
. endif
+# Fake pkg-config for builtin xz on NetBSD
+
+.if !empty(USE_BUILTIN.xz:M[yY][eE][sS])
+. if !empty(USE_TOOLS:C/:.*//:Mpkg-config)
+do-configure-pre-hook: override-liblzma-pkgconfig
+
+BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig
+LIBLZMA_PKGCFGF= liblzma.pc
+
+override-liblzma-pkgconfig: override-message-liblzma-pkgconfig
+override-message-liblzma-pkgconfig:
+ @${STEP_MSG} "Generating pkg-config files for builtin xz package."
+
+override-liblzma-pkgconfig:
+ ${RUN} \
+ ${MKDIR} ${BLKDIR_PKGCFG}; \
+ { \
+ ${ECHO} "prefix=${LIBLZMA_PREFIX}"; \
+ ${ECHO} "exec_prefix=\$${prefix}"; \
+ ${ECHO} "libdir=\$${exec_prefix}/lib"; \
+ ${ECHO} "includedir=\$${prefix}/include"; \
+ ${ECHO} ""; \
+ ${ECHO} "Name: liblzma"; \
+ ${ECHO} "Description: Generic purpose data compression library"; \
+ ${ECHO} "Version: ${BUILTIN_VERSION.xz}"; \
+ ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -llzma"; \
+ ${ECHO} "Libs.private: -pthread"; \
+ ${ECHO} "Cflags: -I\$${includedir}"; \
+ } >> ${BLKDIR_PKGCFG}/${LIBLZMA_PKGCFGF};
+. endif
+.endif
+
.endif # CHECK_BUILTIN.xz
Home |
Main Index |
Thread Index |
Old Index