pkgsrc-Changes archive

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

CVS commit: pkgsrc/print/libharu



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Dec 28 19:22:04 UTC 2021

Modified Files:
        pkgsrc/print/libharu: Makefile

Log Message:
libharu: fixes for Darwin


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/print/libharu/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/libharu/Makefile
diff -u pkgsrc/print/libharu/Makefile:1.1 pkgsrc/print/libharu/Makefile:1.2
--- pkgsrc/print/libharu/Makefile:1.1   Tue May  4 14:12:05 2021
+++ pkgsrc/print/libharu/Makefile       Tue Dec 28 19:22:04 2021
@@ -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 @@ LICENSE=      zlib
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 
-
 CMAKE_ARGS+=   -DLIBHPDF_STATIC=OFF
 
 PATCH_DIST_STRIP=      -p1
@@ -33,7 +32,16 @@ SUBST_SED.version+=  -e 's/RC2/dev/'
 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