@@ -146,39 +146,12 @@ cmake -E env \
146146 " $CSFMLDir "
147147cmake --build . --config Release --target install
148148
149- # ============================ #
150- # STEP 5: Fix RPATH references #
151- # ============================ #
152-
153- SFMLMajorMinor=" 3.0"
154- SFMLMajorMinorPatch=" $SFMLMajorMinor .0"
155-
156- # SFML's framework dependencies will always reference @rpath/../Frameworks/<depedency>
157- # Which is not where we place the frameworks and where SFML should look for them
158- # This this fixes the dependency with install_name_tool
159- fixrpath ()
160- {
161- MODULE=" $1 "
162- OLD=" $2 "
163- NEW=" $3 "
164-
165- install_name_tool -change $OLD $NEW " $SFMLLibDir /libsfml-$MODULE .dylib"
166- install_name_tool -change $OLD $NEW " $SFMLLibDir /libsfml-$MODULE .$SFMLMajorMinor .dylib"
167- install_name_tool -change $OLD $NEW " $SFMLLibDir /libsfml-$MODULE .$SFMLMajorMinorPatch .dylib"
168- }
169-
170- fixrpath audio " @rpath/../Frameworks/vorbisenc.framework/Versions/A/vorbisenc" " @rpath/vorbisenc.framework/Versions/A/vorbisenc"
171- fixrpath audio " @rpath/../Frameworks/vorbisfile.framework/Versions/A/vorbisfile" " @rpath/vorbisfile.framework/Versions/A/vorbisfile"
172- fixrpath audio " @rpath/../Frameworks/vorbis.framework/Versions/A/vorbis" " @rpath/vorbis.framework/Versions/A/vorbis"
173- fixrpath audio " @rpath/../Frameworks/ogg.framework/Versions/A/ogg" " @rpath/ogg.framework/Versions/A/ogg"
174- fixrpath audio " @rpath/../Frameworks/FLAC.framework/Versions/A/FLAC" " @rpath/FLAC.framework/Versions/A/FLAC"
175-
176- fixrpath graphics " @rpath/../Frameworks/freetype.framework/Versions/A/freetype" " @rpath/freetype.framework/Versions/A/freetype"
177-
178149# ======================================== #
179- # STEP 6 : Copy result to the NuGet folders #
150+ # STEP 5 : Copy result to the NuGet folders #
180151# ======================================== #
181152
153+ SFMLMajorMinor=" 3.0"
154+ SFMLMajorMinorPatch=" $SFMLMajorMinor .0"
182155CSFMLMajorMinor=" 3.0"
183156CSFMLMajorMinorPatch=" $CSFMLMajorMinor .0"
184157
@@ -208,8 +181,6 @@ copymodule graphics
208181copymodule system
209182copymodule window
210183
211- cp -R " $SFMLLibDir /lib/" * .framework " $OutDir "
212-
213184popd # Pop CSFML
214185popd # Pop $RID
215186popd # Pop Build
0 commit comments