pkgsrc/devel/cmake/Makefile.common
maya a0691e2876 cmake: fix build on NetBSD releases such as 9.0.
NetBSD stdio.h has a bug with visibility of functions, so we get errors:
 error: '::vscanf' has not been declared

Define the other macro that can reach these definitions.

Issue already fixed by joerg in NetBSD stdio.h r1.35.
2020-07-31 12:35:27 +00:00

20 lines
548 B
Text

# $NetBSD: Makefile.common,v 1.3 2020/07/31 12:35:27 maya Exp $
# used by devel/cmake-gui/Makefile
.include "version.mk"
DISTNAME= cmake-${CMAKE_VERSION}
CATEGORIES= devel
MASTER_SITES= https://cmake.org/files/v${CMAKE_API}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.cmake.org/
LICENSE= modified-bsd
DISTINFO_FILE= ${.CURDIR}/../../devel/cmake/distinfo
PATCHDIR= ${.CURDIR}/../../devel/cmake/patches
USE_LANGUAGES= c c++11
# Workaround issue in NetBSD before stdio.h r1.35 (NetBSD 9_STABLE)
CXXFLAGS.NetBSD+= -D_NETBSD_SOURCE