From 2e4a88c728be159d930ece6f64ba9aa6402b8227 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Thu, 24 Dec 2020 21:19:17 -0600 Subject: [PATCH] prototype: fix cross-build --- srcpkgs/prototype/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/prototype/template b/srcpkgs/prototype/template index a9f58d57f91..ce3346d5331 100644 --- a/srcpkgs/prototype/template +++ b/srcpkgs/prototype/template @@ -9,12 +9,12 @@ license="Public Domain" homepage="https://github.com/ptitSeb/prototype" distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz" checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6 -nocross=yes CXXFLAGS="-Wno-write-strings" do_build() { - make SDL2=1 LINUX=1 CPP=$CXX ${makejobs} + vsed -i '/$(PROGRAM)/s;$(LIBS);;' Makefile + make SDL2=1 LINUX=1 CPP=$CXX LD=${CXX} LDFLAGS="${LDFLAGS} -lGL -lm" ${makejobs} } do_install() { vmkdir usr/libexec/prototype