2020-06-16 07:01:02 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.78 2020/06/16 07:01:02 ajacoutot Exp $
|
2016-11-27 08:43:11 +00:00
|
|
|
|
|
|
|
COMMENT= next-generation build system
|
|
|
|
|
|
|
|
MODPY_EGG_VERSION= ${GH_TAGNAME}
|
|
|
|
GH_ACCOUNT= mesonbuild
|
|
|
|
GH_PROJECT= meson
|
2020-06-16 07:01:02 +00:00
|
|
|
GH_TAGNAME= 0.54.3
|
2018-05-17 20:09:16 +00:00
|
|
|
EPOCH= 0
|
2016-11-27 08:43:11 +00:00
|
|
|
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://mesonbuild.com/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# Apache 2.0
|
2019-06-20 21:03:03 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2016-11-27 08:43:11 +00:00
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
2018-09-25 06:51:44 +00:00
|
|
|
MODPY_SETUPTOOLS= Yes
|
2016-11-27 08:43:11 +00:00
|
|
|
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
|
|
|
|
|
|
|
RUN_DEPENDS= devel/ninja
|
|
|
|
|
2019-03-11 11:35:09 +00:00
|
|
|
# XXX hand rolled patch (space file names)
|
|
|
|
# patch-test_cases_common_137_get_define_meson_build
|
|
|
|
BUILD_DEPENDS += devel/gpatch
|
|
|
|
PATCH= gpatch
|
2019-03-13 07:55:07 +00:00
|
|
|
PATCH_STRIP= -p0 -b
|
2019-03-11 11:35:09 +00:00
|
|
|
|
2019-03-13 13:57:00 +00:00
|
|
|
# regression tests need to run as root
|
|
|
|
TEST_IS_INTERACTIVE= Yes
|
|
|
|
|
2019-05-12 22:46:58 +00:00
|
|
|
# XXX https://github.com/mesonbuild/meson/issues/5390 (-lrt, -ldl)
|
2019-04-16 08:13:52 +00:00
|
|
|
# test_meson_installed (__main__.CommandTests) ... warning: no directories found matching 'syntax-highlighting'
|
|
|
|
# test_objc_cpp_detection (__main__.FailureTests) ... skipped "objc and objcpp found, can't test detection failure"
|
2019-03-11 11:35:09 +00:00
|
|
|
# test_d_compiler (__main__.NativeFileTests) ... skipped 'No d compiler found.'
|
2019-04-16 08:13:52 +00:00
|
|
|
# test_fortran_compiler (__main__.NativeFileTests) ... skipped 'No alternate Fortran implementation.'
|
|
|
|
# test_coverage (__main__.LinuxlikeTests) ... skipped 'gcovr not found'
|
2019-03-11 11:35:09 +00:00
|
|
|
# test_swift_compiler (__main__.NativeFileTests) ... skipped 'No swift compiler found.'
|
2019-05-15 12:04:34 +00:00
|
|
|
TEST_DEPENDS= devel/git \
|
2019-04-01 15:29:38 +00:00
|
|
|
devel/jdk/11 \
|
2019-03-11 15:23:58 +00:00
|
|
|
devel/mercurial \
|
|
|
|
g95->=8,<9:lang/gcc/8,-f95 \
|
|
|
|
lang/mono \
|
|
|
|
lang/rust \
|
|
|
|
lang/vala \
|
2019-04-16 08:13:52 +00:00
|
|
|
shells/bash
|
2019-03-11 15:23:58 +00:00
|
|
|
|
2019-04-01 15:29:38 +00:00
|
|
|
# clang-format
|
|
|
|
TEST_DEPENDS += devel/llvm
|
|
|
|
|
2019-03-11 15:23:58 +00:00
|
|
|
# FAIL: test_testsetups (__main__.AllPlatformTests)
|
|
|
|
# self.assertTrue('TEST_ENV is set' in vg_log)
|
2019-04-03 09:52:31 +00:00
|
|
|
#TEST_DEPENDS += devel/valgrind
|
2019-03-11 11:35:09 +00:00
|
|
|
|
2016-11-27 08:43:11 +00:00
|
|
|
pre-configure:
|
2019-01-28 06:16:28 +00:00
|
|
|
sed -i "s,share/man,man," ${WRKSRC}/setup.py
|
2019-01-28 06:20:44 +00:00
|
|
|
sed -i "s,/usr/bin,${PREFIX}/bin,g" \
|
2019-01-28 06:16:28 +00:00
|
|
|
${WRKSRC}/data/com.mesonbuild.install.policy
|
2016-11-27 08:43:11 +00:00
|
|
|
|
2019-03-11 15:23:58 +00:00
|
|
|
# gfortran: test_fortran_compiler; XXX hardcoded
|
|
|
|
# XXX test_fortran_compiler ... skipped 'No alternate Fortran implementation.'
|
|
|
|
# javac: test_java_compiler; XXX hardcoded
|
|
|
|
# python: test cases/unit/46 native file binary
|
2016-11-27 08:43:11 +00:00
|
|
|
do-test:
|
2019-04-01 15:29:38 +00:00
|
|
|
ln -sf ${LOCALBASE}/jdk-11/bin/javac ${WRKDIR}/bin/javac
|
2019-03-11 15:23:58 +00:00
|
|
|
ln -sf ${LOCALBASE}/bin/egfortran ${WRKDIR}/bin/gfortran
|
2019-03-11 11:35:09 +00:00
|
|
|
ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
|
2019-04-03 09:52:31 +00:00
|
|
|
cd ${WRKSRC} && PATH=${PORTPATH} LC_CTYPE="en_US.UTF-8" \
|
|
|
|
./run_tests.py --failfast
|
2016-11-27 08:43:11 +00:00
|
|
|
|
2020-01-07 20:45:17 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/meson/tools
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/*.py ${PREFIX}/share/meson/tools
|
|
|
|
|
2016-11-27 08:43:11 +00:00
|
|
|
.include <bsd.port.mk>
|