Skip to content

Commit

Permalink
Merge pull request #337 from SetiQyu/BSD-compatibility
Browse files Browse the repository at this point in the history
Add FreeBSD compatibility
  • Loading branch information
lhearachel authored Jan 19, 2025
2 parents 3d2daea + 15ddab2 commit c8ce55b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ ifneq (,$(findstring Darwin,$(UNAME_S)))
NATIVE := native_macos.ini
CROSS := cross_unix.ini
else
ifneq (,$(findstring BSD, $(UNAME_S)))
NATIVE := native_unix.ini
CROSS := cross_unix.ini
else
NATIVE := native.ini
CROSS := cross.ini
endif
endif
endif

export LM_LICENSE_FILE ?= $(WRAP)/license.dat
export NINJA_STATUS := [%p %f/%t]
Expand Down
7 changes: 3 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ pokeplatinum_nds = custom_target('pokeplatinum.us.nds',
nitrofs_files # Make sure this is always listed last
],
command : [
'sh', '-c',
'"$@" && @INPUT6@ @OUTPUT0@ --secure-crc 0xF8B8 --game-code CPUE',
'--',
makerom_exe,
'-DTITLE_NAME=POKEMON PL',
'-DBNR=@INPUT1@',
Expand All @@ -235,7 +232,9 @@ pokeplatinum_nds = custom_target('pokeplatinum.us.nds',
'-DARM7_DEFS=@INPUT5@',
'@INPUT3@',
'@OUTPUT0@',
'@OUTPUT1@'
'@OUTPUT1@',
'&&','sh', '-c',
'@INPUT6@ @OUTPUT0@ --secure-crc 0xF8B8 --game-code CPUE'
],
build_by_default: true
)
Expand Down
4 changes: 1 addition & 3 deletions res/text/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,7 @@ gmm_header_dir = custom_target('gmm_header_dir',
capture: true,
output: 'gmm_header_dir',
command: [
'sh', '-c', '"$@"',
'--',
'mkdir', '-p', gmm_header_target
'sh', '-c', 'mkdir -p ' + gmm_header_target
]
)

Expand Down

0 comments on commit c8ce55b

Please sign in to comment.