pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-perl-headers Fix build on Darwin when there's...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ad757c53133d
branches:  trunk
changeset: 356808:ad757c53133d
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Jan 05 02:18:02 2017 +0000

description:
Fix build on Darwin when there's no /usr/include anymore.

diffstat:

 devel/p5-perl-headers/Makefile |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r dff42764d60c -r ad757c53133d devel/p5-perl-headers/Makefile
--- a/devel/p5-perl-headers/Makefile    Wed Jan 04 23:49:46 2017 +0000
+++ b/devel/p5-perl-headers/Makefile    Thu Jan 05 02:18:02 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2016/06/08 19:23:48 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2017/01/05 02:18:02 schmonz Exp $
 
 DISTNAME=              p5-perl-headers
 PKGNAME=               ${DISTNAME}-${OS_VERSION}
@@ -19,10 +19,18 @@
 NO_CONFIGURE=          yes
 OSVERSION_SPECIFIC=    yes
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH}/usr/include)
+USR_INCLUDE=           ${OSX_SDK_PATH}/usr/include
+.else
+USR_INCLUDE=           /usr/include
+.endif
+
 do-build:
        ${MKDIR} ${WRKSRC}/h2ph
        ${RM} -f ${WRKSRC}/h2ph_log ${WRKSRC}/packlist
-       ( cd "/usr/include" && \
+       ( cd "${USR_INCLUDE}" && \
          ${BUILDLINK_PREFIX.perl}/bin/h2ph -d ${WRKSRC}/h2ph -r -l . ) \
                > ${WRKSRC}/h2ph_log
        ( ${ECHO} "${PERL5_INSTALLVENDORARCH}/_h2ph_pre.ph" && \



Home | Main Index | Thread Index | Old Index