some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.4 2018/10/24 14:28:06 sthen Exp $
|
|
|
|
COMMENT = automated OpenGL and OpenCL testsuite
|
|
ONLY_FOR_ARCHS = amd64 i386
|
|
|
|
DISTNAME = piglit-20180108
|
|
REVISION = 0
|
|
|
|
GH_ACCOUNT = mesa3d
|
|
GH_PROJECT = piglit
|
|
GH_COMMIT = 8eefd87ed7a7be9b181bbe7d12a6f6c54921d522
|
|
|
|
CATEGORIES = graphics
|
|
|
|
# 3Dlabs: redistribution and use permitted, no comment on selling
|
|
# Intel CUSTOM LICENSE - no limitation to use, distribute, or sell
|
|
# MIT GPLv2+ GPLv3 LGPL20
|
|
PERMIT_PACKAGE_CDROM = No comment on selling by 3Dlabs license
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} EGL GL X11 Xrender c drm drm_intel
|
|
WANTLIB += m xcb xcb-dri2 z
|
|
WANTLIB += png waffle-1
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MODULES = devel/cmake \
|
|
lang/python
|
|
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
|
|
BUILD_DEPENDS = www/py-mako \
|
|
graphics/waffle \
|
|
devel/py-six \
|
|
math/py-numpy
|
|
|
|
LIB_DEPENDS = graphics/waffle \
|
|
graphics/png
|
|
|
|
CONFIGURE_ARGS = -DPIGLIT_BUILD_CL_TESTS:BOOL=OFF \
|
|
-DCMAKE_POLICY_DEFAULT_CMP0056:STRING=NEW
|
|
CONFIGURE_ENV = CFLAGS="-I${X11BASE}/include"
|
|
|
|
NO_TEST = Yes
|
|
|
|
post-install:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${PREFIX}/lib/piglit
|
|
|
|
.include <bsd.port.mk>
|