2015-06-11 15:44:23 +02:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.56 2015/06/11 13:44:23 adam Exp $
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= perl
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2010-08-27 07:27:37 +02:00
|
|
|
.if !defined(PERL_BUILDLINK3_MK)
|
|
|
|
PERL_BUILDLINK3_MK:=
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2006-12-12 22:52:34 +01:00
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
2015-06-11 15:44:23 +02:00
|
|
|
PERL5_REQD+= 5.22.0
|
2007-11-21 23:49:45 +01:00
|
|
|
.for _perl5_ver_ in ${PERL5_REQD}
|
|
|
|
BUILDLINK_API_DEPENDS.perl+= perl>=${_perl5_ver_}
|
|
|
|
.endfor
|
2015-06-11 15:44:23 +02:00
|
|
|
# Prevent p5-* etc. packages built for 5.22.0 to be used
|
2008-10-19 21:10:42 +02:00
|
|
|
# with the next incompatible version of perl:
|
2015-06-11 15:44:23 +02:00
|
|
|
BUILDLINK_API_DEPENDS.perl+= perl<5.24.0
|
2008-10-19 21:10:42 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
BUILDLINK_PKGSRCDIR.perl?= ../../lang/perl5
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2011-09-14 17:41:36 +02:00
|
|
|
_TOOLS_USE_PKGSRC.perl= yes
|
|
|
|
|
2007-11-19 04:53:10 +01:00
|
|
|
FIND_PREFIX:= PERLDIR=perl
|
|
|
|
.include "../../mk/find-prefix.mk"
|
|
|
|
PERL5= ${PERLDIR}/bin/perl
|
|
|
|
|
2009-07-17 08:43:27 +02:00
|
|
|
pkgbase := perl
|
|
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
|
2014-05-21 15:35:23 +02:00
|
|
|
.if !empty(PKG_BUILD_OPTIONS.perl:Mthreads)
|
|
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2005-05-19 00:42:07 +02:00
|
|
|
PERL5_OPTIONS?= # empty
|
2010-08-19 22:47:09 +02:00
|
|
|
.if !empty(PERL5_OPTIONS:Mthreads)
|
2006-06-16 00:13:58 +02:00
|
|
|
INSTALL_TEMPLATES+= ${.CURDIR}/../../lang/perl5/files/install_threads.tmpl
|
2010-08-19 22:47:09 +02:00
|
|
|
.endif
|
2004-12-19 01:01:43 +01:00
|
|
|
|
2004-01-04 00:06:43 +01:00
|
|
|
#
|
|
|
|
# Perl keeps headers and odd libraries in an odd path not caught by the
|
|
|
|
# default BUILDLINK_FILES_CMD, so name them to be symlinked into
|
|
|
|
# ${BUILDLINK_DIR}.
|
|
|
|
#
|
2007-11-21 15:15:11 +01:00
|
|
|
.include "../../lang/perl5/vars.mk"
|
2010-08-19 22:47:09 +02:00
|
|
|
BUILDLINK_FILES.perl= ${PERL5_SUB_INSTALLARCHLIB}/CORE/*
|
2010-08-27 07:27:37 +02:00
|
|
|
.endif # PERL_BUILDLINK3_MK
|
2004-01-04 00:06:43 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= -perl
|