From f8357b5cbaa160ccdf9943cac099f5e092c591da Mon Sep 17 00:00:00 2001 From: tijl Date: Tue, 26 Aug 2014 14:06:08 +0000 Subject: - Fix missing library problems when the linker enforces explicit linking PR: 192062 Exp-run by: antoine Approved by: portmgr (antoine) --- games/motogt/Makefile | 4 ++-- games/motogt/files/patch-src-Makefile.lnx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'games/motogt') diff --git a/games/motogt/Makefile b/games/motogt/Makefile index 2397475b01ef..425db2d5b573 100644 --- a/games/motogt/Makefile +++ b/games/motogt/Makefile @@ -21,14 +21,14 @@ LICENSE_PERMS_CCbySA= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_FILE_CCbySA= ${WRKSRC}/doc/cc-by-sa.txt USES= zip +USE_GL= gl BUILD_WRKSRC= ${WRKSRC}/src MAKEFILE= Makefile.lnx MAKE_JOBS_UNSAFE= yes CFLAGS+= -I${LOCALBASE}/include/libpng15 -MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" SUB_FILES= motogt CXXFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} +LDFLAGS+= -L${LOCALBASE}/lib PLIST_FILES= bin/${PORTNAME} libexec/MotoGT.bin PORTDATA= * diff --git a/games/motogt/files/patch-src-Makefile.lnx b/games/motogt/files/patch-src-Makefile.lnx index 9905f7ac207c..aba2597dfd59 100644 --- a/games/motogt/files/patch-src-Makefile.lnx +++ b/games/motogt/files/patch-src-Makefile.lnx @@ -8,7 +8,7 @@ -TEMP_DIR=../tmp-lnx +CXX?= g++ +CXXFLAGS?= -O2 -ffast-math -+LIBS= -lpng -lsfml-window -lsfml-graphics -lsfml-system -lsfml-audio ++LIBS= -lpng -lsfml-window -lsfml-graphics -lsfml-system -lsfml-audio -lGL +LDFLAGS?= -s +TEMP_DIR= ../tmp-lnx -- cgit