forked from Lainports/freebsd-ports
EDID and DisplayID library. Goals: - Provide a set of high-level, easy-to-use, opinionated functions as well as low-level functions to access detailed information. - Simplicity and correctness over performance and resource usage. - Well-tested and fuzzed. https://gitlab.freedesktop.org/emersion/libdisplay-info
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
PORTNAME= libdisplay-info
|
|
DISTVERSION= 0.1.0
|
|
CATEGORIES= sysutils
|
|
|
|
PATCH_SITES= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/
|
|
PATCHFILES+= d0ad02c6405f.patch:-p1 # https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/150
|
|
PATCHFILES+= 015bddc1a6c6.patch:-p1 # https://gitlab.freedesktop.org/emersion/libdisplay-info/-/merge_requests/150
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= EDID and DisplayID library
|
|
WWW= https://gitlab.freedesktop.org/emersion/libdisplay-info
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= hwdata>0:misc/hwdata
|
|
TEST_DEPENDS= edid-decode:sysutils/edid-decode
|
|
|
|
USES= compiler:c11 meson pkgconfig python:build shebangfix
|
|
USE_GITLAB= yes
|
|
GL_SITE= https://gitlab.freedesktop.org
|
|
GL_ACCOUNT= emersion
|
|
GL_COMMIT= 1871aabb25a8f71f38b4b595154c1537686677cf
|
|
SHEBANG_FILES= tool/*.py
|
|
|
|
post-patch:
|
|
# XXX Drop after FreeBSD 12.3 EOL around 2023-03-01
|
|
# https://cgit.freebsd.org/src/commit/?id=773538247007
|
|
@if [ ${OPSYS} = FreeBSD -a ${OSVERSION} -lt 1203501 ]; then \
|
|
${REINPLACE_CMD} -e 's/static_assert/_Static_assert/' \
|
|
${WRKSRC}/edid.c; \
|
|
fi
|
|
|
|
pre-test:
|
|
@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
|
|
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
|
|
${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure"; \
|
|
${TOUCH} ${WRKDIR}/.meson_build_tests; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|