pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/libharu libharu: fixes for Darwin



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e3d76304ce6e
branches:  trunk
changeset: 771828:e3d76304ce6e
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Dec 28 19:22:04 2021 +0000

description:
libharu: fixes for Darwin

diffstat:

 print/libharu/Makefile |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r cc32c5d8bbe8 -r e3d76304ce6e print/libharu/Makefile
--- a/print/libharu/Makefile    Tue Dec 28 17:35:52 2021 +0000
+++ b/print/libharu/Makefile    Tue Dec 28 19:22:04 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2021/05/04 14:12:05 prlw1 Exp $
+# $NetBSD: Makefile,v 1.2 2021/12/28 19:22:04 adam Exp $
 
 PKGNAME=       libharu-2.4.0
 DISTNAME=      libharu-2.3.0
@@ -19,7 +19,6 @@
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 
-
 CMAKE_ARGS+=   -DLIBHPDF_STATIC=OFF
 
 PATCH_DIST_STRIP=      -p1
@@ -33,7 +32,16 @@
 INSTALLATION_DIRS=     include lib
 do-install:
        ${INSTALL_DATA} ${WRKSRC}/include/*.h ${DESTDIR}${PREFIX}/include
-       ${INSTALL_DATA} ${WRKSRC}/src/libhpdf.so ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_DATA} ${WRKSRC}/src/libhpdf.* ${DESTDIR}${PREFIX}/lib
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+post-install: fix-darwin-install-name
+fix-darwin-install-name:
+       install_name_tool -id ${PREFIX}/lib/libhpdf.dylib \
+           ${DESTDIR}${PREFIX}/lib/libhpdf.dylib
+.endif
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"



Home | Main Index | Thread Index | Old Index