libharu: fixes for Darwin

This commit is contained in:
adam 2021-12-28 19:22:04 +00:00
parent a6ff46da66
commit 21383c74eb

View file

@ -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"