# $NetBSD$

DISTNAME=	wine-4.0.1
CATEGORIES=	emulators
MASTER_SITES=	http://ibiblio.org/pub/linux/system/emulators/wine/
MASTER_SITES+=	${MASTER_SITE_SOURCEFORGE:=wine/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://www.winehq.org/
COMMENT=	Free implementation of Windows on Unix
LICENSE=	gnu-lgpl-v2.1

ONLY_FOR_PLATFORM=	*-*-i386 *-*-x86_64

USE_LANGUAGES+=	c c++
USE_TOOLS+=	bison flex gmake pkg-config msgfmt
USE_LIBTOOL=	yes
GNU_CONFIGURE=	yes

CHECK_SHLIBS_SUPPORTED=	no
SSP_SUPPORTED=		no
FORTIFY_SUPPORTED=	no

.include "options.mk"

CONFIGURE_ARGS+=	--without-capi
CONFIGURE_ARGS+=	--without-opencl
CONFIGURE_ARGS+=	--without-udev
CONFIGURE_ARGS+=	--without-vkd3d
CONFIGURE_ARGS+=	--without-vulkan
# XXX NetBSD ld --enable-new-dtags is broken
CONFIGURE_ENV.NetBSD+=	ac_cv_cflags__Wl___enable_new_dtags=false

REPLACE_PERL+=	tools/winedump/function_grep.pl
REPLACE_PERL+=	tools/winemaker/winemaker

.include "../../mk/bsd.pkg.mk"
