pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/xz



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Sun Apr 29 21:18:16 UTC 2018

Modified Files:
        pkgsrc/archivers/xz: builtin.mk

Log Message:
Provide liblzma.pc for builtin case

This is required by upcoming gimp-2.10.0.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/archivers/xz/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/xz/builtin.mk
diff -u pkgsrc/archivers/xz/builtin.mk:1.4 pkgsrc/archivers/xz/builtin.mk:1.5
--- pkgsrc/archivers/xz/builtin.mk:1.4  Thu May 22 12:10:52 2014
+++ pkgsrc/archivers/xz/builtin.mk      Sun Apr 29 21:18:16 2018
@@ -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 @@ CHECK_BUILTIN.xz?=   no
 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