head	1.22;
access;
symbols
	pkgsrc-2019Q2:1.20.0.2
	pkgsrc-2019Q2-base:1.20
	pkgsrc-2019Q1:1.18.0.2
	pkgsrc-2019Q1-base:1.18
	pkgsrc-2018Q4:1.7.0.2
	pkgsrc-2018Q4-base:1.7;
locks; strict;
comment	@# @;


1.22
date	2019.08.21.13.35.29;	author nia;	state dead;
branches;
next	1.21;
commitid	QbuTYFguNT3eMTzB;

1.21
date	2019.08.21.12.21.28;	author nia;	state Exp;
branches;
next	1.20;
commitid	YfEN1MLiQJiOmTzB;

1.20
date	2019.04.25.07.32.56;	author maya;	state Exp;
branches;
next	1.19;
commitid	1FEMQBEPb9uTxHkB;

1.19
date	2019.04.11.15.52.08;	author maya;	state Exp;
branches;
next	1.18;
commitid	xsLUywe0GjdoMWiB;

1.18
date	2019.02.22.15.40.35;	author tnn;	state Exp;
branches;
next	1.17;
commitid	zDYP80f924UEfMcB;

1.17
date	2019.02.01.14.03.12;	author tnn;	state Exp;
branches;
next	1.16;
commitid	7P3NS94y7JGao4aB;

1.16
date	2019.01.26.21.28.29;	author tnn;	state Exp;
branches;
next	1.15;
commitid	TjvsMK7k6dT93l9B;

1.15
date	2019.01.19.23.21.43;	author tnn;	state Exp;
branches;
next	1.14;
commitid	wettKlPTDQO2Ur8B;

1.14
date	2019.01.19.22.19.05;	author tnn;	state Exp;
branches;
next	1.13;
commitid	YUZUnepC1Wdxyr8B;

1.13
date	2019.01.19.21.54.03;	author tnn;	state Exp;
branches;
next	1.12;
commitid	78JBYJYgAR7Dpr8B;

1.12
date	2019.01.19.17.47.51;	author tnn;	state Exp;
branches;
next	1.11;
commitid	HB0pnXmLEevi3q8B;

1.11
date	2019.01.18.14.43.59;	author tnn;	state Exp;
branches;
next	1.10;
commitid	mIHZvv5x7Dir4h8B;

1.10
date	2019.01.18.13.32.47;	author tnn;	state Exp;
branches;
next	1.9;
commitid	niZY6u2XqigOFg8B;

1.9
date	2019.01.11.11.30.11;	author tnn;	state Exp;
branches;
next	1.8;
commitid	zxeJCwv5dO8Cdm7B;

1.8
date	2019.01.10.22.30.10;	author tnn;	state Exp;
branches;
next	1.7;
commitid	YUOpF0T1TT98Uh7B;

1.7
date	2018.12.03.11.07.57;	author wiz;	state Exp;
branches;
next	1.6;
commitid	1eG7m6RPvz3Zll2B;

1.6
date	2018.12.02.08.35.25;	author wiz;	state Exp;
branches;
next	1.5;
commitid	MrHuh7HEWMzlxc2B;

1.5
date	2018.11.23.08.06.30;	author ryoon;	state Exp;
branches;
next	1.4;
commitid	sJCwe34v6pRyF21B;

1.4
date	2018.11.21.07.15.22;	author maya;	state Exp;
branches;
next	1.3;
commitid	mY5fctc4ZB0QrM0B;

1.3
date	2018.10.16.15.21.20;	author jperkin;	state Exp;
branches;
next	1.2;
commitid	59fM2TTqz2HsicWA;

1.2
date	2018.10.10.10.56.11;	author maya;	state Exp;
branches;
next	1.1;
commitid	ilX6i9Focbss1pVA;

1.1
date	2018.10.07.23.49.31;	author ryoon;	state Exp;
branches;
next	;
commitid	BBhwQOLTmS4So5VA;


desc
@@


1.22
log
@Move graphics/MesaLib18 to graphics/MesaLib.

Move graphics/MesaLib to graphics/MesaLib11.
@
text
@# $NetBSD: Makefile,v 1.21 2019/08/21 12:21:28 nia Exp $

DISTNAME=	mesa-18.3.4
PKGNAME=	${DISTNAME:S/mesa/MesaLib/}
PKGREVISION=	1
CATEGORIES=	graphics x11
MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/
# MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/${PKGVERSION_NOREV}/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.mesa3d.org/
COMMENT=	The Mesa 3D Graphics Library
LICENSE=	mit

GNU_CONFIGURE=	yes
USE_TOOLS+=	autoconf automake autoreconf bison pkg-config gmake flex
USE_LANGUAGES=	c99 c++
USE_LIBTOOL=	yes

PKGCONFIG_OVERRIDE+=	src/egl/main/egl.pc.in
PKGCONFIG_OVERRIDE+=	src/gallium/targets/d3dadapter9/d3d.pc.in
PKGCONFIG_OVERRIDE+=	src/gallium/targets/osmesa/osmesa.pc.in
PKGCONFIG_OVERRIDE+=	src/gallium/targets/xa/xatracker.pc.in
PKGCONFIG_OVERRIDE+=	src/gbm/main/gbm.pc.in
PKGCONFIG_OVERRIDE+=	src/glx/windows/windowsdriproto.pc.in
PKGCONFIG_OVERRIDE+=	src/mapi/es1api/glesv1_cm.pc.in
PKGCONFIG_OVERRIDE+=	src/mapi/es2api/glesv2.pc.in
PKGCONFIG_OVERRIDE+=	src/mesa/drivers/dri/dri.pc.in
PKGCONFIG_OVERRIDE+=	src/mesa/drivers/osmesa/osmesa.pc.in
PKGCONFIG_OVERRIDE+=	src/mesa/gl.pc.in

CONFIGURE_ARGS+=		--enable-shared-glapi

# Work around a buildlink and/or libtool bug:
# In the libtool install/relink stage, if we want to link with two static
# archives named libglapi.la but in different directories, bad things happen.
SUBST_CLASSES+=			wrapper-bug
SUBST_STAGE.wrapper-bug=	pre-configure
SUBST_MESSAGE.wrapper-bug=	Renaming non-shared libglapi.la in Makefiles
SUBST_FILES.wrapper-bug=	src/gallium/targets/libgl-xlib/Makefile.am
SUBST_FILES.wrapper-bug+=	src/gallium/targets/osmesa/Makefile.am
SUBST_FILES.wrapper-bug+=	src/glx/Makefile.am
SUBST_FILES.wrapper-bug+=	src/mapi/Makefile.am
SUBST_FILES.wrapper-bug+=	src/mesa/drivers/osmesa/Makefile.am
SUBST_FILES.wrapper-bug+=	src/mesa/drivers/x11/Makefile.am
SUBST_SED.wrapper-bug=		-e 's,shared-glapi/libglapi\.la,shared-glapi/libglapi_tmp_rename.la,g'
SUBST_SED.wrapper-bug+=		-e 's,shared_glapi_libglapi_la,shared_glapi_libglapi_tmp_rename_la,g'
SUBST_SED.wrapper-bug+=		-e 's,libglapi\.la,libglapi_impl.la,g'
SUBST_SED.wrapper-bug+=		-e 's,libglapi_la,libglapi_impl_la,g'
SUBST_SED.wrapper-bug+=		-e 's,libglapi_tmp_rename\.la,libglapi.la,g'
SUBST_SED.wrapper-bug+=		-e 's,libglapi_tmp_rename_la,libglapi_la,g'

# Replace /etc/drirc.d with ${PREFIX}/etc/drirc.d
SUBST_CLASSES+=		drirc
SUBST_STAGE.drirc=	pre-configure
SUBST_MESSAGE.drirc=	Fixing hardcoded /etc/drirc.d references
SUBST_FILES.drirc+=	src/util/xmlconfig.c
SUBST_SED.drirc+=	-e 's|/etc|${PREFIX}/etc|g'

CFLAGS.SunOS+=		-D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
CXXFLAGS.SunOS+=	-Drestrict=__restrict__
LDFLAGS.SunOS+=		-lsocket -lnsl

.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.include "options.mk"

.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+=	--enable-glx-read-only-text
.endif

PYTHON_FOR_BUILD_ONLY=	yes
BUILD_DEPENDS+=		${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
# needed to build vulkan support
BUILD_DEPENDS+=		${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
CONFIGURE_ENV+=		PYTHON=${PYTHONBIN}
.include "../../lang/python/tool.mk"

# Handle platforms without exp2
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
CPPFLAGS+=	-Dexp2\(x\)=exp\(\(x\)\*M_LN2\)
CPPFLAGS+=	-Dexp2f\(x\)=expf\(\(x\)\*M_LN2\)
.endif

# Work around Xorg segfaulting in radeon driver due to wrong alloca being used
CFLAGS.NetBSD+=		-Dalloca=__builtin_alloca
CXXFLAGS.NetBSD+=	-Dalloca=__builtin_alloca

pre-configure:
	touch ${WRKSRC}/src/glx/apple_dummy.cpp
	cd ${WRKSRC} && autoreconf -vif

DRIRC_DIR=		${PKG_SYSCONFDIR}/drirc.d
EGDIR=			${PREFIX}/share/examples/mesa
OWN_DIRS+=		${DRIRC_DIR}
INSTALLATION_DIRS+=	${EGDIR}
CONF_FILES+=		${EGDIR}/00-mesa-defaults.conf	\
			  ${DRIRC_DIR}/00-mesa-defaults.conf

post-install:
	${INSTALL_DATA} ${WRKSRC}/src/util/00-mesa-defaults.conf ${DESTDIR}${EGDIR}

.include "../../devel/zlib/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libxshmfence/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.21
log
@MesaLib18: Add Wayland support.

Note: It doesn't seem to be possible to build Mesa without X11 support yet.

While here,

- Fix building with non-modular X.
- Appease pkglint and my eyes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2019/04/25 07:32:56 maya Exp $
@


1.20
log
@PKGREVISION bump for anything using python without a PYPKGPREFIX.

This is a semi-manual PKGREVISION bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2019/04/11 15:52:08 maya Exp $
d55 5
a59 5
SUBST_CLASSES+=			drirc
SUBST_STAGE.drirc=		pre-configure
SUBST_MESSAGE.drirc=		Fixing hardcoded /etc/drirc.d references
SUBST_FILES.drirc+=		src/util/xmlconfig.c
SUBST_SED.drirc+=		 -e 's|/etc|${PREFIX}/etc|g'
d105 1
d110 1
a110 1
.include "../../textproc/expat/buildlink3.mk"
@


1.19
log
@mesalib18: requires expat. from sobukus
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2019/02/22 15:40:35 tnn Exp $
d5 1
@


1.18
log
@mesa: update to 18.3.4

Bug fixes
  Bug 109107 - gallium/st/va: change va max_profiles when using Radeon VCN Hardware
  Bug 109401 - [DXVK] Project Cars rendering problems
  Bug 109543 - After upgrade mesa to 19.0.0~rc1 all vulkan based application stop working ["vulkan-cube" received SIGSEGV in radv_pipeline_init_blend_state at ../src/amd/vulkan/radv_pipeline.c:699]
  Bug 109603 - nir_instr_as_deref: Assertion `parent && parent->type == nir_instr_type_deref' failed.

Changes
  gallium-xlib: query MIT-SHM before using it.
  radv: Only look at pImmutableSamples if the descriptor has a sampler.
  amd/common: Use correct writemask for shared memory stores.
  get-pick-list: Add --pretty=medium to the arguments for Cc patches
  meson: Add dependency on genxml to anvil
  docs: add sha256 checksums for 18.3.3
  cherry-ignore: nv50,nvc0: add explicit settings for recent caps
  cherry-ignore: add more 19.0 only nominations from Ilia
  cherry-ignore: radv: fix using LOAD_CONTEXT_REG with old GFX ME firmwares on GFX8
  Update version to 18.3.4
  vc4: Fix copy-and-paste fail in backport of NEON asm fixes.
  xvmc: fix string comparison
  xvmc: fix string comparison
  vc4: Fix leak in HW queries error path
  v3d: Fix leak in resource setup error path
  intel/compiler: do not copy-propagate strided regions to ddx/ddy arguments
  nvc0: we have 16k-sized framebuffers, fix default scissors
  intel/fs: Handle IMAGE_SIZE in size_read() and is_send_from_grf()
  intel/fs: Do the grf127 hack on SIMD8 instructions in SIMD16 mode
  nir/deref: Rematerialize parents in rematerialize_derefs_in_use_blocks
  anv/cmd_buffer: check for NULL framebuffer
  st/mesa: Limit GL_MAX_[NATIVE_]PROGRAM_PARAMETERS_ARB to 2048
  freedreno/a6xx: Emit blitter dst with OUT_RELOCW
  st/va: fix the incorrect max profiles report
  st/va/vp9: set max reference as default of VP9 reference number
  meson: drop the xcb-xrandr version requirement
  gallium/u_threaded: fix EXPLICIT_FLUSH for flush offsets > 0
  radeonsi: fix EXPLICIT_FLUSH for flush offsets > 0
  winsys/amdgpu: don't drop manually added fence dependencies
  egl/wayland: Allow client->server format conversion for PRIME offload. (v2)
  egl/wayland-drm: Only announce formats via wl_drm which the driver supports.
  radeonsi: Fix guardband computation for large render targets
  freedreno: stop frob'ing pipe_resource::nr_samples
  intel: Add more PCI Device IDs for Coffee Lake and Ice Lake.
  radv: fix compiler issues with GCC 9
  radv: always export gl_SampleMask when the fragment shader uses it
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2019/02/01 14:03:12 tnn Exp $
d108 1
@


1.17
log
@MesaLib18: update to 18.3.3

Mesa 18.3.3 is a bug fix release which fixes bugs found since
the 18.3.2 release. No new features.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2019/01/26 21:28:29 tnn Exp $
d3 1
a3 1
DISTNAME=	mesa-18.3.3
@


1.16
log
@MesaLib18: don't need the llvm toolchain, just the lib. Bump rev.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2019/01/19 23:21:43 tnn Exp $
d3 1
a3 2
DISTNAME=	mesa-18.3.2
PKGREVISION=	1
@


1.15
log
@Revert previous for OSX, it's still needed. Document the reason why in patch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2019/01/19 22:19:05 tnn Exp $
d4 1
@


1.14
log
@MesaLib18: patch for FDO bug 90311 appears no longer needed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2019/01/19 21:54:03 tnn Exp $
d90 1
@


1.13
log
@MesaLib18: fix build on Mac OS X

Tested with x11/modular-xorg-xquartz on Mojave.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2019/01/19 17:47:51 tnn Exp $
a90 1
	touch ${WRKSRC}/src/glx/dummy.cpp
@


1.12
log
@MesaLib18: set correct CONFIGURE_ARGS for dri-less build

Also fix some SunOS build issues.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2019/01/18 14:43:59 tnn Exp $
a90 6
# Manual patch for FDO bug 90311. Don't apply if not on Darwin as there could
# be side effects.
.if ${OPSYS} == "Darwin"
pre-configure: ${WRKDIR}/.manual_patch_done
${WRKDIR}/.manual_patch_done:
	cd ${WRKSRC} && ${TOOLS_PATCH} -z .manual -p0 < ${FILESDIR}/patch-manual_fdo90311
a91 2
	touch ${.TARGET}
.endif
@


1.11
log
@more MesaLib18 fixes ...

- Someone has commented out the i915 driver. (Why?) Put it back.
- can build with python3
- remove & coalesce unused PLIST vars
- Add option toggle for vulkan (probs only relevant on Linux for now)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2019/01/18 13:32:47 tnn Exp $
d106 1
a106 1
	${DRIRC_DIR}/00-mesa-defaults.conf
@


1.10
log
@MesaLib18: clean up options.mk a bit. While here update to 18.3.2

Changes: bugfixes only
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2019/01/11 11:30:11 tnn Exp $
a72 1
PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # as of 11.2.2
d74 3
a76 1
CONFIGURE_ENV+=		ac_cv_prog_PYTHON2=${PYTHONBIN}
@


1.9
log
@MesaLib18: make sure we use __builtin_alloca on NetBSD

Otherwise Xorg crashes in the radeon driver when mesa is built with clang.
Better fix welcome.
Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2019/01/10 22:30:10 tnn Exp $
d3 1
a3 2
DISTNAME=	mesa-18.3.1
PKGREVISION=	1
@


1.8
log
@MesaLib18: update to 18.3.1

pkgsrc changes:

- Give up patching both .am/.ac and .in files. It is too complex to maintain.
  Capitulate and depend on autotools.
- more copypasta patches to handle NetBSD-style pthread_setaffinity_np()
- handle PKG_SYSCONFDIR properly
- patch-manual_fdo90311: regened (but untested)
- more to come but the diff is big enough already

New features:
    GL_AMD_depth_clamp_separate on r600, radeonsi.
    GL_AMD_framebuffer_multisample_advanced on radeonsi.
    GL_AMD_gpu_shader_int64 on i965, nvc0, radeonsi.
    GL_AMD_multi_draw_indirect on all GL 4.x drivers.
    GL_AMD_query_buffer_object on i965, nvc0, r600, radeonsi.
    GL_EXT_disjoint_timer_query on radeonsi and most other Gallium drivers (ES extension)
    GL_EXT_texture_compression_s3tc on all drivers (ES extension)
    GL_EXT_vertex_attrib_64bit on i965, nvc0, radeonsi.
    GL_EXT_window_rectangles on radeonsi.
    GL_KHR_texture_compression_astc_sliced_3d on radeonsi.
    GL_NV_fragment_shader_interlock on i965.
    EGL_EXT_device_base for all drivers.
    EGL_EXT_device_drm for all drivers.
    EGL_MESA_device_software for all drivers.

Bugfixes:

Too many to list
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2018/12/03 11:07:57 wiz Exp $
d4 1
d85 4
@


1.7
log
@MesaLib: update to 18.2.6.

Mesa 18.2.6 is a bug fix release which fixes bugs found since the
18.2.5 release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2018/12/02 08:35:25 wiz Exp $
d3 1
a3 1
DISTNAME=	mesa-18.2.6
d16 1
a16 1
USE_TOOLS+=	bison pkg-config gmake flex
d25 1
d39 13
a51 9
SUBST_MESSAGE.wrapper-bug=	Renaming glapi-shared/libglapi in Makefiles
SUBST_FILES.wrapper-bug=	src/gbm/Makefile.in
SUBST_FILES.wrapper-bug+=	src/glx/Makefile.in
SUBST_FILES.wrapper-bug+=	src/mapi/Makefile.in
SUBST_FILES.wrapper-bug+=	src/mesa/drivers/x11/Makefile.in
SUBST_FILES.wrapper-bug+=	src/mesa/drivers/osmesa/Makefile.in
SUBST_SED.wrapper-bug=		-e 's,shared-glapi/libglapi.la,shared-glapi/libglapi_tmp_rename.la,g'
SUBST_SED.wrapper-bug+=		-e 's,libglapi.la,libglapi_impl.la,g'
SUBST_SED.wrapper-bug+=		-e 's,libglapi_tmp_rename.la,libglapi.la,g'
d53 1
a53 1
# Replace /etc/drirc with ${PREFIX}/etc/drirc
d56 1
a56 1
SUBST_MESSAGE.drirc=		Fixing hardcoded /etc/drirc references
d84 2
d92 1
d96 6
a101 1
INSTALLATION_DIRS+=	share/examples/MesaLib
d104 1
a104 1
	${INSTALL_DATA} ${WRKSRC}/src/util/drirc ${DESTDIR}${PREFIX}/share/examples/MesaLib
@


1.6
log
@MesaLib: update to 18.2.5.

18.2.1 Release Notes / September 21, 2018

Mesa 18.2.1 is a bug fix release which fixes bugs found since the 18.2.0
release.

18.2.2 Release Notes / October 5, 2018

Mesa 18.2.2 is a bug fix release which fixes bugs found since the 18.2.1
release.

18.2.3 Release Notes / October 19, 2018

Mesa 18.2.3 is a bug fix release which fixes bugs found since the 18.2.2
release.

18.2.4 Release Notes / October 31, 2018

Mesa 18.2.4 is a bug fix release which fixes bugs found since the 18.2.3
release.

18.2.5 Release Notes / November 15, 2018

Mesa 18.2.5 is a bug fix release which fixes bugs found since the 18.2.4
release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2018/11/23 08:06:30 ryoon Exp $
d3 1
a3 1
DISTNAME=	mesa-18.2.5
@


1.5
log
@Recursive revbump from multimedia/libva
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/11/21 07:15:22 maya Exp $
d3 1
a3 1
DISTNAME=	mesa-18.2.0
a4 1
PKGREVISION=	1
@


1.4
log
@MesaLib18: depend on zlib

Most people get this through either llvm or libpciaccess, but everyone
needs it.

PR pkg/52686.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/10/16 15:21:20 jperkin Exp $
d5 1
@


1.3
log
@MesaLib18: Various fixes for the SunOS build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/10/10 10:56:11 maya Exp $
d93 1
@


1.2
log
@MesaLib18: remove workaround for pkgsrc GCC already fixed in GCC (upstream
and in pkgsrc)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/10/07 23:49:31 ryoon Exp $
d55 3
a57 2
# Required due to clang defaulting to strict C standard by default (no strdup).
CFLAGS.SunOS+=	-D__EXTENSIONS__
@


1.1
log
@graphics/MesaLib18: import MesaLib-18.2.0 from wip/MesaLib

MesaLib is a 3-D graphics library with an API which is very similar to
that of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc.  However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.140 2018/01/25 10:44:51 jperkin Exp $
a71 8
# On NetBSD < 6 we need to compile with GCC from pkgsrc.
# But GCC from pkgsrc does not add implicit -lc like base GCC does,
# which breaks the build with -Wl,--no-undefined.
# So we piggy back on -lpthread and inject -lc after it.
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
BUILDLINK_TRANSFORM+=   l:pthread:pthread:c l:m:m:c
.endif

@

