summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-01-10 11:22:52 +0000
committernia <nia@pkgsrc.org>2020-01-10 11:22:52 +0000
commit24b822d0fed4bdad22df333ba14783df7b3aa687 (patch)
tree23d65c1a82599413b78b9a806ee4f6511227cc40
parentc24bf803c1a3eccf4d7972c4ae4f8dd32a5f720b (diff)
downloadpkgsrc-24b822d0fed4bdad22df333ba14783df7b3aa687.tar.gz
lgogdownloader: Needs 64-bit atomic ops on i386
-rw-r--r--games/lgogdownloader/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/lgogdownloader/Makefile b/games/lgogdownloader/Makefile
index a57dd15be84..88b87b7dc96 100644
--- a/games/lgogdownloader/Makefile
+++ b/games/lgogdownloader/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2019/12/21 21:21:12 nia Exp $
+# $NetBSD: Makefile,v 1.43 2020/01/10 11:22:52 nia Exp $
DISTNAME= lgogdownloader-3.5
PKGREVISION= 3
@@ -16,6 +16,13 @@ USE_LANGUAGES= c c++
USE_CMAKE= yes
USE_TOOLS+= pkg-config
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+# 64 bit atomic ops are required
+CXXFLAGS+= -march=i586
+.endif
+
CMAKE_ARGS+= -DJSONCPP_INCLUDE_DIR=${BUILDLINK_DIR}/include/json
.include "../../devel/boost-libs/buildlink3.mk"