2019-04-02 12:57:23 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.56 2019/04/02 12:57:23 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
|
2019-03-11 16:08:25 +00:00
|
|
|
GH_TAGNAME= 0.50.0
|
2018-05-17 20:09:16 +00:00
|
|
|
EPOCH= 0
|
2019-04-02 12:57:23 +00:00
|
|
|
REVISION= 0
|
2016-11-27 08:43:11 +00:00
|
|
|
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://mesonbuild.com/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# Apache 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
|
|
|
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-03-11 11:35:09 +00:00
|
|
|
# test_objc_cpp_detection (__main__.FailureTests) ... skipped "objc and objcpp found, can't test detection failure"
|
|
|
|
# test_d_compiler (__main__.NativeFileTests) ... skipped 'No d compiler found.'
|
|
|
|
# test_swift_compiler (__main__.NativeFileTests) ... skipped 'No swift compiler found.'
|
2019-03-11 15:23:58 +00:00
|
|
|
TEST_DEPENDS= ${RUN_DEPENDS} \
|
|
|
|
devel/git \
|
2019-04-01 15:29:38 +00:00
|
|
|
devel/jdk/11 \
|
2019-03-11 15:23:58 +00:00
|
|
|
devel/mercurial \
|
|
|
|
devel/sdl2 \
|
|
|
|
g95->=8,<9:lang/gcc/8,-f95 \
|
|
|
|
lang/mono \
|
|
|
|
lang/rust \
|
|
|
|
lang/vala \
|
|
|
|
shells/bash \
|
|
|
|
x11/wxWidgets
|
|
|
|
|
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)
|
|
|
|
#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-03-11 15:23:58 +00:00
|
|
|
cd ${WRKSRC} && PATH=${PORTPATH} && ./run_tests.py --failfast
|
2016-11-27 08:43:11 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|