Create symlinks to library under OpenBSD

This commit is contained in:
ryoon 2014-05-05 21:11:25 +00:00
parent 0875f1962d
commit c2829605a0

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2013/04/06 14:09:32 rodent Exp $
# $NetBSD: Makefile,v 1.3 2014/05/05 21:11:25 ryoon Exp $
DISTNAME= libexecinfo-1.1
CATEGORIES= devel
@ -18,7 +18,16 @@ CFLAGS.Linux+= -Wno-unused-result # write(2) is declared specially
INSTALLATION_DIRS= include lib
.include "../../mk/bsd.prefs.mk"
post-install:
${INSTALL_DATA} ${WRKSRC}/execinfo.h ${DESTDIR}${PREFIX}/include
# OpenBSD's /usr/share/mk/bsd.lib.mk does not create the following symlinks.
.if ${OPSYS} == "OpenBSD"
cd ${DESTDIR}${PREFIX}/lib && \
${LN} -sf libexecinfo.so.1.0 libexecinfo.so
cd ${DESTDIR}${PREFIX}/lib && \
${LN} -sf libexecinfo.so.1.0 libexecinfo.so.1
.endif
.include "../../mk/bsd.pkg.mk"