pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/fonts/harfbuzz-icu harfbuzz-icu: fix library name for ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/17ac24c36f03
branches: trunk
changeset: 449518:17ac24c36f03
user: adam <adam%pkgsrc.org@localhost>
date: Thu Apr 01 06:16:50 2021 +0000
description:
harfbuzz-icu: fix library name for Darwin
diffstat:
fonts/harfbuzz-icu/Makefile | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r 2e154b0692dd -r 17ac24c36f03 fonts/harfbuzz-icu/Makefile
--- a/fonts/harfbuzz-icu/Makefile Thu Apr 01 06:15:50 2021 +0000
+++ b/fonts/harfbuzz-icu/Makefile Thu Apr 01 06:16:50 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2021/01/01 08:58:00 ryoon Exp $
+# $NetBSD: Makefile,v 1.3 2021/04/01 06:16:50 adam Exp $
# XXX: hack to override meson installation
INSTALL_DIRS=
@@ -15,7 +15,12 @@
INSTALLATION_DIRS+= lib
INSTALLATION_DIRS+= lib/pkgconfig
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+HARFBUZZ_ICU_LIBNAME= libharfbuzz-icu.0.dylib
+.else
HARFBUZZ_ICU_LIBNAME= libharfbuzz-icu.so.0.20704.0
+.endif
.PHONY: harfbuzz-icu-install
@@ -26,8 +31,16 @@
${DESTDIR}${PREFIX}/lib/pkgconfig/harfbuzz-icu.pc
${INSTALL_LIB} ${WRKSRC}/output/src/${HARFBUZZ_ICU_LIBNAME} \
${DESTDIR}${PREFIX}/lib
- cd ${DESTDIR}${PREFIX}/lib && ${LN} -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.so.0
- cd ${DESTDIR}${PREFIX}/lib && ${LN} -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.so
+.if ${OPSYS} == "Darwin"
+ cd ${DESTDIR}${PREFIX}/lib && \
+ install_name_tool -change @rpath/libharfbuzz.0.dylib ${PREFIX}/lib/libharfbuzz.0.dylib \
+ -id ${PREFIX}/lib/${HARFBUZZ_ICU_LIBNAME} ${HARFBUZZ_ICU_LIBNAME} && \
+ ${LN} -f -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.dylib
+.else
+ cd ${DESTDIR}${PREFIX}/lib && \
+ ${LN} -f -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.so.0 && \
+ ${LN} -f -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.so
+.endif
do-install: harfbuzz-icu-install
Home |
Main Index |
Thread Index |
Old Index