haxm: Enhancements
authorKamil Rytarowski <n54@gmx.com>
Wed, 13 Feb 2019 03:35:34 +0000 (04:35 +0100)
committerKamil Rytarowski <n54@gmx.com>
Wed, 13 Feb 2019 03:35:34 +0000 (04:35 +0100)
Make this package buildable.

haxm/Makefile

index eb0cc551f5efab1e17b42342524de75587d43780..161c88e860468b3690bc68b481661213dede1c00 100644 (file)
@@ -13,6 +13,17 @@ LICENSE=     modified-bsd
 
 WRKSRC=                ${WRKDIR}/haxm-${GITHUB_TAG}
 
+ONLY_FOR_PLATFORM=     NetBSD-*-x86_64
 OSVERSION_SPECIFIC=    YES
 
+BUILD_DIRS=    platforms/netbsd
+
+BUILDLINK_PASSTHRU_DIRS=       ${BSDSRCDIR}/sys
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+=       -Wno-error=address-of-packed-member
+.endif
+
 .include "../../mk/bsd.pkg.mk"