Skip to content

Commit c3fa16c

Browse files
committed
add macports support and fix building on case-sensitive filesystems on mac os
1 parent 2998568 commit c3fa16c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

appframework/glmrendererinfo_osx.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "tier1/utllinkedlist.h"
2525
#include "togl/rendermechanism.h"
2626
#include "appframework/ilaunchermgr.h" // gets pulled in from glmgr.h
27-
#include "appframework/iappsystemgroup.h"
27+
#include "appframework/IAppSystemGroup.h"
2828
#include "inputsystem/ButtonCode.h"
2929

3030

serverbrowser/wscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def build(bld):
6060

6161
bld.shlib(
6262
source = source,
63-
target = PROJECT_NAME,
63+
target = PROJECT_NAME.lower() if bld.env.DEST_OS == 'darwin' else PROJECT_NAME,
6464
name = PROJECT_NAME,
6565
features = 'c cxx',
6666
includes = includes,

wscript

+6-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ def define_platform(conf):
257257
'NO_HOOK_MALLOC',
258258
'_DLL_EXT=.dylib'
259259
])
260-
260+
conf.env.append_unique('INCLUDES', [
261+
'/opt/local/include'
262+
])
263+
conf.env.append_unique('LINKFLAGS', [
264+
'-L/opt/local/lib'
265+
])
261266
elif conf.env.DEST_OS in ['freebsd', 'openbsd', 'netbsd', 'dragonflybsd']: # Tested only in freebsd
262267
conf.env.append_unique('DEFINES', [
263268
'POSIX=1', '_POSIX=1', 'PLATFORM_POSIX=1',

0 commit comments

Comments
 (0)