@@ -146,39 +146,12 @@ cmake -E env \
146
146
" $CSFMLDir "
147
147
cmake --build . --config Release --target install
148
148
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
-
178
149
# ======================================== #
179
- # STEP 6 : Copy result to the NuGet folders #
150
+ # STEP 5 : Copy result to the NuGet folders #
180
151
# ======================================== #
181
152
153
+ SFMLMajorMinor=" 3.0"
154
+ SFMLMajorMinorPatch=" $SFMLMajorMinor .0"
182
155
CSFMLMajorMinor=" 3.0"
183
156
CSFMLMajorMinorPatch=" $CSFMLMajorMinor .0"
184
157
@@ -208,8 +181,6 @@ copymodule graphics
208
181
copymodule system
209
182
copymodule window
210
183
211
- cp -R " $SFMLLibDir /lib/" * .framework " $OutDir "
212
-
213
184
popd # Pop CSFML
214
185
popd # Pop $RID
215
186
popd # Pop Build
0 commit comments