Skip to content
Snippets Groups Projects
Commit 361f7182 authored by Oliver Bock's avatar Oliver Bock
Browse files

Refined Mac OS build

* Make sure BOINC uses Apple's GL framework (required to build graphics lib)
* Graphics lib required to embed application icon via setMacIcon()
* Note: graphics lib depends on libjpeg (fink), hence we need /sw/include, too
parent 3c77f58b
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,12 @@ build_generic() ...@@ -261,7 +261,12 @@ build_generic()
./_autosetup >> $LOGFILE 2>&1 || failure ./_autosetup >> $LOGFILE 2>&1 || failure
chmod +x configure >> $LOGFILE 2>&1 || failure chmod +x configure >> $LOGFILE 2>&1 || failure
cd $ROOT/build/boinc || failure cd $ROOT/build/boinc || failure
if [ "$1" == "$TARGET_MAC_INTEL" -o "$1" == "$TARGET_MAC_PPC" ]; then
export CPPFLAGS=-I/sw/include
$ROOT/3rdparty/boinc/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --disable-server --disable-client --with-apple-opengl-framework >> $LOGFILE 2>&1 || failure
else
$ROOT/3rdparty/boinc/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --disable-server --disable-client >> $LOGFILE 2>&1 || failure $ROOT/3rdparty/boinc/configure --prefix=$ROOT/install --enable-shared=no --enable-static=yes --disable-server --disable-client >> $LOGFILE 2>&1 || failure
fi
make >> $LOGFILE 2>&1 || failure make >> $LOGFILE 2>&1 || failure
make install >> $LOGFILE 2>&1 || failure make install >> $LOGFILE 2>&1 || failure
echo "Successfully built and installed BOINC!" | tee -a $LOGFILE echo "Successfully built and installed BOINC!" | tee -a $LOGFILE
......
...@@ -29,7 +29,7 @@ CXX ?= g++ ...@@ -29,7 +29,7 @@ CXX ?= g++
LIBS = -lframework -loglft -L$(STARSPHERE_INSTALL)/lib LIBS = -lframework -loglft -L$(STARSPHERE_INSTALL)/lib
LIBS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --libs) LIBS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --libs)
LIBS += $(shell $(STARSPHERE_INSTALL)/bin/xml2-config --libs) LIBS += $(shell $(STARSPHERE_INSTALL)/bin/xml2-config --libs)
LIBS += -lboinc_api -lboinc -L$(STARSPHERE_INSTALL)/lib LIBS += -lboinc_graphics2 -lboinc_api -lboinc -L$(STARSPHERE_INSTALL)/lib
LIBS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --static-libs) LIBS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --static-libs)
LDFLAGS = -static-libgcc LDFLAGS = -static-libgcc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment