2007-11-26 15:59:22 +00:00
# This file contains port specific Makefile rules. It is automatically
# included by the default (main) Makefile.
2008-02-25 14:09:04 +00:00
#
2007-11-26 15:59:22 +00:00
#
2011-05-05 13:38:54 +00:00
# POSIX specific
2007-11-26 15:59:22 +00:00
#
2021-08-28 16:26:33 +00:00
install-data :
2012-11-13 19:52:52 +00:00
$( INSTALL) -d " $( DESTDIR) $( mandir) /man6/ "
$( INSTALL) -c -m 644 " $( srcdir) /dists/scummvm.6 " " $( DESTDIR) $( mandir) /man6/scummvm.6 "
$( INSTALL) -d " $( DESTDIR) $( datarootdir) /pixmaps/ "
2023-05-24 18:31:24 +00:00
$( INSTALL) -c -m 644 " $( srcdir) /icons/scummvm.xpm " " $( DESTDIR) $( datarootdir) /pixmaps/org.scummvm.scummvm.xpm "
2014-09-14 08:48:45 +00:00
$( INSTALL) -d " $( DESTDIR) $( datarootdir) /icons/hicolor/scalable/apps/ "
2023-05-24 18:31:24 +00:00
$( INSTALL) -c -m 644 " $( srcdir) /icons/scummvm.svg " " $( DESTDIR) $( datarootdir) /icons/hicolor/scalable/apps/org.scummvm.scummvm.svg "
2012-11-13 19:52:52 +00:00
$( INSTALL) -d " $( DESTDIR) $( docdir) "
$( INSTALL) -c -m 644 $( DIST_FILES_DOCS) " $( DESTDIR) $( docdir) "
$( INSTALL) -d " $( DESTDIR) $( datadir) "
2023-11-20 22:53:23 +00:00
$( INSTALL) -c -m 644 $( DIST_FILES_THEMES) $( DIST_FILES_NETWORKING) $( DIST_FILES_VKEYBD) $( DIST_FILES_ENGINEDATA) $( DIST_FILES_ENGINEDATA_BIG) $( DIST_FILES_SOUNDFONTS) " $( DESTDIR) $( datadir) / "
2016-07-29 19:40:50 +00:00
$( INSTALL) -d " $( DESTDIR) $( datarootdir) /applications "
2023-05-19 20:19:07 +00:00
$( INSTALL) -c -m 644 " $( srcdir) /dists/org.scummvm.scummvm.desktop " " $( DESTDIR) $( datarootdir) /applications/org.scummvm.scummvm.desktop "
2020-04-19 11:09:58 +00:00
$( INSTALL) -d " $( DESTDIR) $( datarootdir) /metainfo "
2023-05-19 20:19:07 +00:00
$( INSTALL) -c -m 644 " $( srcdir) /dists/org.scummvm.scummvm.metainfo.xml " " $( DESTDIR) $( datarootdir) /metainfo/org.scummvm.scummvm.metainfo.xml "
2020-10-12 16:26:41 +00:00
i f n e q ( $( DIST_FILES_SHADERS ) , )
2012-12-06 21:47:48 +00:00
$( INSTALL) -d " $( DESTDIR) $( datadir) /shaders "
$( INSTALL) -c -m 644 $( DIST_FILES_SHADERS) " $( DESTDIR) $( datadir) /shaders "
e n d i f
2021-05-07 12:10:37 +00:00
2023-05-19 20:40:19 +00:00
install : $( EXECUTABLE ) $( PLUGINS ) install -data
2021-05-07 12:10:37 +00:00
$( INSTALL) -d " $( DESTDIR) $( bindir) "
$( INSTALL) -c -m 755 " ./ $( EXECUTABLE) " " $( DESTDIR) $( bindir) / $( EXECUTABLE) "
2012-11-13 19:52:52 +00:00
i f d e f D Y N A M I C _ M O D U L E S
$( INSTALL) -d " $( DESTDIR) $( libdir) /scummvm/ "
$( INSTALL) -c -m 644 $( PLUGINS) " $( DESTDIR) $( libdir) /scummvm/ "
e n d i f
2023-05-19 20:40:19 +00:00
install-strip : $( EXECUTABLE ) $( PLUGINS ) install -data
2010-05-09 20:42:18 +00:00
$( INSTALL) -d " $( DESTDIR) $( bindir) "
$( INSTALL) -c -s -m 755 " ./ $( EXECUTABLE) " " $( DESTDIR) $( bindir) / $( EXECUTABLE) "
2008-05-06 03:11:01 +00:00
i f d e f D Y N A M I C _ M O D U L E S
2010-05-09 20:42:18 +00:00
$( INSTALL) -d " $( DESTDIR) $( libdir) /scummvm/ "
$( INSTALL) -c -s -m 644 $( PLUGINS) " $( DESTDIR) $( libdir) /scummvm/ "
2008-05-02 14:30:06 +00:00
e n d i f
2007-11-26 15:59:22 +00:00
uninstall :
2010-05-09 20:42:18 +00:00
rm -f " $( DESTDIR) $( bindir) / $( EXECUTABLE) "
rm -f " $( DESTDIR) $( mandir) /man6/scummvm.6 "
rm -f " $( DESTDIR) $( datarootdir) /pixmaps/scummvm.xpm "
2014-09-14 08:48:45 +00:00
rm -f " $( DESTDIR) $( datarootdir) /icons/hicolor/scalable/apps/scummvm.svg "
2010-05-09 20:42:18 +00:00
rm -rf " $( DESTDIR) $( docdir) "
rm -rf " $( DESTDIR) $( datadir) "
2023-05-19 20:19:07 +00:00
rm -f " $( DESTDIR) $( datarootdir) /applications/org.scummvm.scummvm.desktop "
rm -f " $( DESTDIR) $( datarootdir) /metainfo/org.scummvm.scummvm.metainfo.xml "
2008-05-06 03:11:01 +00:00
i f d e f D Y N A M I C _ M O D U L E S
2010-05-09 20:42:18 +00:00
rm -rf " $( DESTDIR) $( libdir) /scummvm/ "
2008-05-02 14:30:06 +00:00
e n d i f
2007-11-26 15:59:22 +00:00
2020-11-01 15:09:05 +00:00
# Special generic target for simple archive distribution
2020-11-01 14:43:30 +00:00
2021-11-21 19:59:25 +00:00
dist-generic : $( EXECUTABLE ) $( PLUGINS )
2020-11-01 15:09:05 +00:00
mkdir -p ./dist-generic/scummvm/data
mkdir -p ./dist-generic/scummvm/doc
2023-04-08 18:09:45 +00:00
rm -f ./dist-generic/scummvm/$( EXECUTABLE)
2020-11-01 15:09:05 +00:00
cp $( EXECUTABLE) ./dist-generic/scummvm
cp $( DIST_FILES_DOCS) ./dist-generic/scummvm/doc
cp $( DIST_FILES_THEMES) ./dist-generic/scummvm/data
2020-11-01 14:43:30 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A
2020-11-01 15:09:05 +00:00
cp $( DIST_FILES_ENGINEDATA) ./dist-generic/scummvm/data
2020-11-01 14:43:30 +00:00
e n d i f
2023-11-20 19:58:08 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A _ B I G
cp $( DIST_FILES_ENGINEDATA_BIG) ./dist-generic/scummvm/data
e n d i f
2020-11-01 14:43:30 +00:00
i f d e f D I S T _ F I L E S _ N E T W O R K I N G
2020-11-01 15:09:05 +00:00
cp $( DIST_FILES_NETWORKING) ./dist-generic/scummvm/data
2020-11-01 14:43:30 +00:00
e n d i f
i f d e f D I S T _ F I L E S _ V K E Y B D
2020-11-01 15:09:05 +00:00
cp $( DIST_FILES_VKEYBD) ./dist-generic/scummvm/data
2020-11-01 14:43:30 +00:00
e n d i f
2023-11-20 22:53:23 +00:00
i f d e f D I S T _ F I L E S _ S O U N D F O N T S
cp $( DIST_FILES_SOUNDFONTS) ./dist-generic/scummvm/data
e n d i f
2020-11-01 14:43:30 +00:00
i f d e f D I S T _ F I L E S _ S H A D E R S
2020-11-01 15:09:05 +00:00
mkdir -p ./dist-generic/scummvm/data/shaders
cp $( DIST_FILES_SHADERS) ./dist-generic/scummvm/data/shaders
2020-11-01 14:43:30 +00:00
e n d i f
2021-11-21 19:59:25 +00:00
i f e q ( $( DYNAMIC_MODULES ) , 1 )
@for i in $( PLUGINS) ; do cp $$ i ./dist-generic/scummvm; done
e n d i f
2020-11-01 14:43:30 +00:00
2022-01-29 02:58:21 +00:00
# Special target to create a application wrapper for macOS
2016-03-20 21:27:47 +00:00
i f d e f U S E _ D O C K T I L E P L U G I N
# The NsDockTilePlugIn needs to be compiled in both 32 and 64 bits irrespective of how ScummVM itself is compiled.
# Therefore do not use $(CXXFLAGS) and $(LDFLAGS).
2022-06-05 14:08:03 +00:00
i f d e f M A C O S X _ A R M 6 4
ScummVMDockTilePlugin.o :
$( CXX) -mmacosx-version-min= 11.0 -arch arm64 -O2 -c $( srcdir) /backends/taskbar/macosx/dockplugin/dockplugin.m -o ScummVMDockTilePlugin.o
ScummVMDockTilePlugin : ScummVMDockTilePlugin .o
$( CXX) -mmacosx-version-min= 11.0 -arch arm64 -bundle -framework Foundation -framework AppKit -fobjc-link-runtime ScummVMDockTilePlugin.o -o ScummVMDockTilePlugin
e l s e # MACOSX_ARM64
2016-03-20 21:27:47 +00:00
ScummVMDockTilePlugin32.o :
2016-03-25 20:26:01 +00:00
$( CXX) -mmacosx-version-min= 10.6 -arch i386 -O2 -c $( srcdir) /backends/taskbar/macosx/dockplugin/dockplugin.m -o ScummVMDockTilePlugin32.o
2016-03-20 21:27:47 +00:00
ScummVMDockTilePlugin32 : ScummVMDockTilePlugin 32.o
$( CXX) -mmacosx-version-min= 10.6 -arch i386 -bundle -framework Foundation -framework AppKit -fobjc-link-runtime ScummVMDockTilePlugin32.o -o ScummVMDockTilePlugin32
ScummVMDockTilePlugin64.o :
2016-03-25 20:26:01 +00:00
$( CXX) -mmacosx-version-min= 10.6 -arch x86_64 -O2 -c $( srcdir) /backends/taskbar/macosx/dockplugin/dockplugin.m -o ScummVMDockTilePlugin64.o
2016-03-27 21:47:18 +00:00
2016-03-20 21:27:47 +00:00
ScummVMDockTilePlugin64 : ScummVMDockTilePlugin 64.o
$( CXX) -mmacosx-version-min= 10.6 -arch x86_64 -bundle -framework Foundation -framework AppKit -fobjc-link-runtime ScummVMDockTilePlugin64.o -o ScummVMDockTilePlugin64
2016-03-27 21:47:18 +00:00
2020-03-28 16:47:29 +00:00
i f d e f M A C O S X _ 6 4 _ B I T S _ O N L Y
ScummVMDockTilePlugin : ScummVMDockTilePlugin 64
cp ScummVMDockTilePlugin64 ScummVMDockTilePlugin
2022-06-05 14:08:03 +00:00
e l s e # MACOSX_64_BITS_ONLY
2016-03-20 21:27:47 +00:00
ScummVMDockTilePlugin : ScummVMDockTilePlugin 32 ScummVMDockTilePlugin 64
lipo -create ScummVMDockTilePlugin32 ScummVMDockTilePlugin64 -output ScummVMDockTilePlugin
2022-06-05 14:08:03 +00:00
e n d i f # MACOSX_64_BITS_ONLY
e n d i f # MACOSX_ARM64
2016-03-20 21:27:47 +00:00
2016-03-25 20:26:01 +00:00
scummvm.docktileplugin : ScummVMDockTilePlugin
2016-03-20 21:27:47 +00:00
mkdir -p scummvm.docktileplugin/Contents
cp $( srcdir) /dists/macosx/dockplugin/Info.plist scummvm.docktileplugin/Contents
mkdir -p scummvm.docktileplugin/Contents/MacOS
2017-10-20 18:26:29 +00:00
cp ScummVMDockTilePlugin scummvm.docktileplugin/Contents/MacOS/
chmod 644 scummvm.docktileplugin/Contents/MacOS/ScummVMDockTilePlugin
2016-03-27 21:47:18 +00:00
2016-03-20 21:27:47 +00:00
e n d i f
2007-11-26 15:59:22 +00:00
bundle_name = ScummVM.app
2016-03-20 21:27:47 +00:00
2021-08-28 16:26:33 +00:00
bundle-pack :
2007-11-26 15:59:22 +00:00
mkdir -p $( bundle_name) /Contents/MacOS
mkdir -p $( bundle_name) /Contents/Resources
echo "APPL????" > $( bundle_name) /Contents/PkgInfo
2023-12-13 23:54:25 +00:00
sed -e 's/$$(PRODUCT_BUNDLE_IDENTIFIER)/org.scummvm.app/' $( srcdir) /dists/macosx/Info.plist >$( bundle_name) /Contents/Info.plist
2011-07-03 21:01:17 +00:00
i f d e f U S E _ S P A R K L E
mkdir -p $( bundle_name) /Contents/Frameworks
cp $( srcdir) /dists/macosx/dsa_pub.pem $( bundle_name) /Contents/Resources/
2016-03-27 12:04:42 +00:00
rm -rf $( bundle_name) /Contents/Frameworks/Sparkle.framework
2021-10-10 10:28:22 +00:00
cp -RP $( SPARKLEPATH) /Sparkle.framework $( bundle_name) /Contents/Frameworks/
2024-01-15 22:59:58 +00:00
rm -f $( bundle_name) /Contents/Frameworks/Sparkle.framework/XPCServices
rm -rf $( bundle_name) /Contents/Frameworks/Sparkle.framework/Versions/Current/XPCServices/
2011-07-03 21:01:17 +00:00
e n d i f
2022-05-06 18:04:21 +00:00
i f d e f M A C O S X _ L E O P A R D _ O R _ B E L O W
2020-03-28 16:47:29 +00:00
cp $( srcdir) /icons/scummvm_legacy.icns $( bundle_name) /Contents/Resources/scummvm.icns
e l s e
cp $( srcdir) /icons/scummvm.icns $( bundle_name) /Contents/Resources/scummvm.icns
e n d i f
2018-03-25 21:54:43 +00:00
cp $( DIST_FILES_DOCS) $( bundle_name) /Contents/Resources/
2008-01-06 14:08:53 +00:00
cp $( DIST_FILES_THEMES) $( bundle_name) /Contents/Resources/
2016-09-05 22:39:34 +00:00
i f d e f D I S T _ F I L E S _ N E T W O R K I N G
cp $( DIST_FILES_NETWORKING) $( bundle_name) /Contents/Resources/
e n d i f
2010-05-26 13:27:11 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A
2008-01-06 14:08:53 +00:00
cp $( DIST_FILES_ENGINEDATA) $( bundle_name) /Contents/Resources/
2019-07-02 21:49:03 +00:00
e n d i f
2023-11-20 19:58:08 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A _ B I G
cp $( DIST_FILES_ENGINEDATA_BIG) $( bundle_name) /Contents/Resources/
e n d i f
2019-07-02 21:49:03 +00:00
i f d e f D I S T _ F I L E S _ V K E Y B D
cp $( DIST_FILES_VKEYBD) $( bundle_name) /Contents/Resources/
2020-05-09 18:05:54 +00:00
e n d i f
2023-11-20 22:53:23 +00:00
i f d e f D I S T _ F I L E S _ S O U N D F O N T S
cp $( DIST_FILES_SOUNDFONTS) $( bundle_name) /Contents/Resources/
e n d i f
2020-10-12 16:26:41 +00:00
i f n e q ( $( DIST_FILES_SHADERS ) , )
2014-02-16 09:16:56 +00:00
mkdir -p $( bundle_name) /Contents/Resources/shaders
cp $( DIST_FILES_SHADERS) $( bundle_name) /Contents/Resources/shaders/
2010-05-26 13:27:11 +00:00
e n d i f
2018-03-25 21:54:43 +00:00
$( srcdir) /devtools/credits.pl --rtf > $( bundle_name) /Contents/Resources/AUTHORS.rtf
rm $( bundle_name) /Contents/Resources/AUTHORS
2022-05-06 18:07:58 +00:00
@sed -i'.sed-orig' -e "s/AUTHORS/AUTHORS.rtf/g" $( bundle_name) /Contents/Resources/README.md
2020-04-26 14:35:34 +00:00
i f d e f U S E _ P A N D O C
2022-05-06 18:07:58 +00:00
@sed -i'.sed-orig' -e "s|href=\"AUTHORS\"|href=\"https://www.scummvm.org/credits/\"|g" $( bundle_name) /Contents/Resources/README$( PANDOCEXT)
2020-04-26 14:35:34 +00:00
e n d i f
2022-05-06 18:07:58 +00:00
@rm $( bundle_name) /Contents/Resources/*.sed-orig
2024-05-22 18:49:15 +00:00
cp $( bundle_name) /Contents/Resources/COPYING.Apache $( bundle_name) /Contents/Resources/COPYING-Apache
cp $( bundle_name) /Contents/Resources/COPYING.BSD $( bundle_name) /Contents/Resources/COPYING-BSD
cp $( bundle_name) /Contents/Resources/COPYING.BSL $( bundle_name) /Contents/Resources/COPYING-BSL
2018-08-21 13:37:08 +00:00
cp $( bundle_name) /Contents/Resources/COPYING.FREEFONT $( bundle_name) /Contents/Resources/COPYING-FREEFONT
2024-05-22 18:49:15 +00:00
cp $( bundle_name) /Contents/Resources/COPYING.GLAD $( bundle_name) /Contents/Resources/COPYING-GLAD
cp $( bundle_name) /Contents/Resources/COPYING.ISC $( bundle_name) /Contents/Resources/COPYING-ISC
cp $( bundle_name) /Contents/Resources/COPYING.LGPL $( bundle_name) /Contents/Resources/COPYING-LGPL
cp $( bundle_name) /Contents/Resources/COPYING.LUA $( bundle_name) /Contents/Resources/COPYING-LUA
cp $( bundle_name) /Contents/Resources/COPYING.MIT $( bundle_name) /Contents/Resources/COPYING-MIT
cp $( bundle_name) /Contents/Resources/COPYING.MKV $( bundle_name) /Contents/Resources/COPYING-MKV
cp $( bundle_name) /Contents/Resources/COPYING.MPL $( bundle_name) /Contents/Resources/COPYING-MPL
2019-04-27 10:22:35 +00:00
cp $( bundle_name) /Contents/Resources/COPYING.OFL $( bundle_name) /Contents/Resources/COPYING-OFL
2024-05-22 18:49:15 +00:00
cp $( bundle_name) /Contents/Resources/COPYING.TINYGL $( bundle_name) /Contents/Resources/COPYING-TINYGL
cp $( bundle_name) /Contents/Resources/CatharonLicense.txt $( bundle_name) /Contents/Resources/CatharonLicense-txt
2022-05-06 17:27:05 +00:00
i f d e f D Y N A M I C _ M O D U L E S
cp $( PLUGINS) $( bundle_name) /Contents/Resources/
e n d i f
2007-12-27 23:41:15 +00:00
chmod 644 $( bundle_name) /Contents/Resources/*
2020-10-12 16:26:41 +00:00
i f n e q ( $( DIST_FILES_SHADERS ) , )
2014-02-16 09:16:56 +00:00
chmod 755 $( bundle_name) /Contents/Resources/shaders
e n d i f
2007-12-27 23:41:15 +00:00
cp scummvm-static $( bundle_name) /Contents/MacOS/scummvm
chmod 755 $( bundle_name) /Contents/MacOS/scummvm
2009-03-19 20:49:22 +00:00
$( STRIP) $( bundle_name) /Contents/MacOS/scummvm
2016-03-20 21:27:47 +00:00
i f d e f U S E _ D O C K T I L E P L U G I N
mkdir -p $( bundle_name) /Contents/PlugIns
cp -r scummvm.docktileplugin $( bundle_name) /Contents/PlugIns/
e n d i f
2022-05-06 18:04:21 +00:00
i f n d e f M A C O S X _ L E O P A R D _ O R _ B E L O W
2021-05-21 19:45:01 +00:00
codesign -s - --deep --force $( bundle_name)
2022-05-06 18:04:21 +00:00
e n d i f
2007-11-26 15:59:22 +00:00
2019-09-19 15:01:01 +00:00
i f d e f U S E _ D O C K T I L E P L U G I N
2022-05-06 17:27:05 +00:00
bundle : scummvm -static plugins scummvm .docktileplugin bundle -pack
2019-09-19 15:01:01 +00:00
e l s e
2022-05-06 17:27:05 +00:00
bundle : scummvm -static plugins bundle -pack
2019-09-19 15:01:01 +00:00
e n d i f
2023-05-31 19:04:29 +00:00
ios7bundle : scummvm -static -ios
2007-11-26 15:59:22 +00:00
mkdir -p $( bundle_name)
2015-12-02 16:10:37 +00:00
awk ' BEGIN { s = 0} \
/<key>CFBundleIcons<\/ key>/ { \
print $$ 0; \
print "\t<dict>" ; \
print "\t\t<key>CFBundlePrimaryIcon</key>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>CFBundleIconFiles</key>" ; \
print "\t\t\t<array>" ; \
print "\t\t\t\t<string>AppIcon29x29</string>" ; \
print "\t\t\t\t<string>AppIcon40x40</string>" ; \
print "\t\t\t\t<string>AppIcon60x60</string>" ; \
print "\t\t\t</array>" ; \
print "\t\t</dict>" ; \
print "\t</dict>" ; \
s = 2} \
2024-07-07 20:15:17 +00:00
/<key>CFBundleIcons~ipad<\/ key>/ { \
print $$ 0; \
print "\t<dict>" ; \
print "\t\t<key>CFBundlePrimaryIcon</key>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>CFBundleIconFiles</key>" ; \
print "\t\t\t<array>" ; \
print "\t\t\t\t<string>AppIcon76x76</string>" ; \
2024-07-10 11:37:27 +00:00
print "\t\t\t\t<string>AppIcon83.5x83.5</string>" ; \
2024-07-07 20:15:17 +00:00
print "\t\t\t</array>" ; \
print "\t\t</dict>" ; \
print "\t</dict>" ; \
s = 2} \
2015-12-02 16:10:37 +00:00
/<key>UILaunchImages<\/ key>/ { \
print $$ 0; \
print "\t<array>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
2015-12-10 17:44:31 +00:00
print "\t\t\t<string>8.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage-800-Portrait-736h</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Portrait</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{414, 736}</string>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
print "\t\t\t<string>8.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage-800-Landscape-736h</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Landscape</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{414, 736}</string>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
print "\t\t\t<string>8.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage-800-667h</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Portrait</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{375, 667}</string>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
2015-12-02 16:10:37 +00:00
print "\t\t\t<string>7.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage-700-568h</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Portrait</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{320, 568}</string>" ; \
print "\t\t</dict>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
print "\t\t\t<string>7.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage-700-Portrait</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Portrait</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{768, 1024}</string>" ; \
print "\t\t</dict>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
print "\t\t\t<string>7.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage-700-Landscape</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Landscape</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{768, 1024}</string>" ; \
print "\t\t</dict>" ; \
print "\t</array>" ; \
s = 2} \
s = = 0 { print $$ 0} \
2015-12-04 17:20:09 +00:00
s > 0 { s-- } ' $( srcdir) /dists/ios7/Info.plist >$( bundle_name) /Info.plist
2015-12-06 11:29:06 +00:00
sed -i'' -e 's/$$(PRODUCT_BUNDLE_IDENTIFIER)/org.scummvm.scummvm/' $( bundle_name) /Info.plist
2021-08-12 20:27:30 +00:00
sed -i'' -e 's/$$(EXECUTABLE_NAME)/ScummVM/' $( bundle_name) /Info.plist
2020-09-06 22:23:58 +00:00
sed -i'' -e '/UILaunchStoryboardName/{N;d;}' $( bundle_name) /Info.plist
2009-06-18 18:40:38 +00:00
cp $( DIST_FILES_DOCS) $( bundle_name) /
2008-01-06 14:08:53 +00:00
cp $( DIST_FILES_THEMES) $( bundle_name) /
2016-09-05 22:39:34 +00:00
i f d e f D I S T _ F I L E S _ N E T W O R K I N G
cp $( DIST_FILES_NETWORKING) $( bundle_name) /
e n d i f
2010-05-26 13:27:11 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A
2008-01-06 14:08:53 +00:00
cp $( DIST_FILES_ENGINEDATA) $( bundle_name) /
2019-07-02 21:49:03 +00:00
e n d i f
2023-11-20 19:58:08 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A _ B I G
cp $( DIST_FILES_ENGINEDATA_BIG) $( bundle_name) /
e n d i f
2019-07-02 21:49:03 +00:00
i f d e f D I S T _ F I L E S _ V K E Y B D
cp $( DIST_FILES_VKEYBD) $( bundle_name) /
2022-03-06 22:02:30 +00:00
e n d i f
2023-11-20 22:53:23 +00:00
i f d e f D I S T _ F I L E S _ S O U N D F O N T S
cp $( DIST_FILES_SOUNDFONTS) $( bundle_name) /
e n d i f
2022-03-06 22:02:30 +00:00
i f n e q ( $( DIST_FILES_SHADERS ) , )
cp $( DIST_FILES_SHADERS) $( bundle_name) /
2010-05-26 13:27:11 +00:00
e n d i f
2010-05-11 01:17:17 +00:00
$( STRIP) scummvm
chmod 755 scummvm
2007-11-26 15:59:22 +00:00
cp scummvm $( bundle_name) /ScummVM
2023-10-11 20:18:27 +00:00
cp $( srcdir) /dists/ios7/ios-help.zip $( bundle_name) /ios-help.zip
2015-12-04 17:20:09 +00:00
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29@2x.png $( bundle_name) /AppIcon29x29@2x.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29@2x.png $( bundle_name) /AppIcon29x29@2x~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29@3x.png $( bundle_name) /AppIcon29x29@3x.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-29.png $( bundle_name) /AppIcon29x29~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40@2x.png $( bundle_name) /AppIcon40x40@2x.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40@2x.png $( bundle_name) /AppIcon40x40@2x~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40@3x.png $( bundle_name) /AppIcon40x40@3x.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-40.png $( bundle_name) /AppIcon40x40~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-60@2x.png $( bundle_name) /AppIcon60x60@2x.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-60@3x.png $( bundle_name) /AppIcon60x60@3x.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-76@2x.png $( bundle_name) /AppIcon76x76@2x~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-76.png $( bundle_name) /AppIcon76x76~ipad.png
2015-12-09 13:16:49 +00:00
cp $( srcdir) /dists/ios7/Images.xcassets/AppIcon.appiconset/icon4-83.5@2x.png $( bundle_name) /AppIcon83.5x83.5@2x~ipad.png
2015-12-04 17:20:09 +00:00
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-640x1136-1.png $( bundle_name) /LaunchImage-700-568h@2x.png
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-2048x1536.png $( bundle_name) /LaunchImage-700-Landscape@2x~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1024x768.png $( bundle_name) /LaunchImage-700-Landscape~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1536x2048.png $( bundle_name) /LaunchImage-700-Portrait@2x~ipad.png
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-768x1024.png $( bundle_name) /LaunchImage-700-Portrait~ipad.png
2015-12-10 17:44:31 +00:00
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-1242x2208.png $( bundle_name) /LaunchImage-800-Portrait-736h@3x.png
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-2208x1242.png $( bundle_name) /LaunchImage-800-Landscape-736h@3x.png
cp $( srcdir) /dists/ios7/Images.xcassets/LaunchImage.launchimage/ScummVM-splash-750x1334.png $( bundle_name) /LaunchImage-800-667h@2x.png
2023-11-03 09:52:49 +00:00
cp $( srcdir) /dists/ios7/Assets.car $( bundle_name) /Assets.car
2024-08-23 14:03:12 +00:00
cp $( srcdir) /dists/ios7/PrivacyInfo.xcprivacy $( bundle_name) /PrivacyInfo.xcprivacy
2021-05-21 19:45:01 +00:00
codesign -s - --deep --force $( bundle_name)
2007-11-26 15:59:22 +00:00
2023-05-31 19:04:29 +00:00
tvosbundle : scummvm -static -ios
2022-12-31 08:33:29 +00:00
mkdir -p $( bundle_name)
awk ' BEGIN { s = 0} \
/<key>CFBundleIcons<\/ key>/ { \
print $$ 0; \
print "\t<dict>" ; \
print "\t\t<key>CFBundlePrimaryIcon</key>" ; \
print "\t\t<string>App Icon</string>" ; \
print "\t</dict>" ; \
s = 2} \
/<key>TVTopShelfImage<\/ key>/ { \
print $$ 0; \
print "\t<dict>" ; \
print "\t\t<key>TVTopShelfPrimaryImageWide</key>" ; \
print "\t\t<string>Top Shelf Image</string>" ; \
print "\t\t<key>TVTopShelfPrimaryImage</key>" ; \
print "\t\t<string>Top Shelf Image Wide</string>" ; \
print "\t</dict>" ; \
s = 2} \
/<key>UILaunchImages<\/ key>/ { \
print $$ 0; \
print "\t<array>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
print "\t\t\t<string>9.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Landscape</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{1920, 1080}</string>" ; \
print "\t\t</dict>" ; \
print "\t\t<dict>" ; \
print "\t\t\t<key>UILaunchImageMinimumOSVersion</key>" ; \
print "\t\t\t<string>11.0</string>" ; \
print "\t\t\t<key>UILaunchImageName</key>" ; \
print "\t\t\t<string>LaunchImage</string>" ; \
print "\t\t\t<key>UILaunchImageOrientation</key>" ; \
print "\t\t\t<string>Landscape</string>" ; \
print "\t\t\t<key>UILaunchImageSize</key>" ; \
print "\t\t\t<string>{1920, 1080}</string>" ; \
print "\t\t</dict>" ; \
print "\t</array>" ; \
s = 2} \
s = = 0 { print $$ 0} \
s > 0 { s-- } ' $( srcdir) /dists/tvos/Info.plist >$( bundle_name) /Info.plist
sed -i'' -e 's/$$(PRODUCT_BUNDLE_IDENTIFIER)/org.scummvm.scummvm/' $( bundle_name) /Info.plist
sed -i'' -e 's/$$(EXECUTABLE_NAME)/ScummVM/' $( bundle_name) /Info.plist
sed -i'' -e '/UILaunchStoryboardName/{N;d;}' $( bundle_name) /Info.plist
cp $( DIST_FILES_DOCS) $( bundle_name) /
cp $( DIST_FILES_THEMES) $( bundle_name) /
i f d e f D I S T _ F I L E S _ N E T W O R K I N G
cp $( DIST_FILES_NETWORKING) $( bundle_name) /
e n d i f
i f d e f D I S T _ F I L E S _ E N G I N E D A T A
cp $( DIST_FILES_ENGINEDATA) $( bundle_name) /
e n d i f
2023-11-20 19:58:08 +00:00
i f d e f D I S T _ F I L E S _ E N G I N E D A T A _ B I G
cp $( DIST_FILES_ENGINEDATA_BIG) $( bundle_name) /
e n d i f
2022-12-31 08:33:29 +00:00
i f d e f D I S T _ F I L E S _ V K E Y B D
cp $( DIST_FILES_VKEYBD) $( bundle_name) /
e n d i f
2023-11-20 22:53:23 +00:00
i f d e f D I S T _ F I L E S _ S O U N D F O N T S
cp $( DIST_FILES_SOUNDFONTS) $( bundle_name) /
e n d i f
2022-12-31 08:33:29 +00:00
i f n e q ( $( DIST_FILES_SHADERS ) , )
cp $( DIST_FILES_SHADERS) $( bundle_name) /
e n d i f
$( STRIP) scummvm
chmod 755 scummvm
cp scummvm $( bundle_name) /ScummVM
cp -r $( srcdir) /dists/tvos/Assets.car $( bundle_name) /Assets.car
2024-08-23 14:03:12 +00:00
cp $( srcdir) /dists/tvos/PrivacyInfo.xcprivacy $( bundle_name) /PrivacyInfo.xcprivacy
2022-12-31 08:33:29 +00:00
codesign -s - --deep --force $( bundle_name)
2020-10-30 18:35:20 +00:00
2020-11-02 19:03:34 +00:00
i f n d e f W I T H O U T _ S D L
2020-10-30 18:35:20 +00:00
OSX_STATIC_LIBS := ` $( SDLCONFIG) --prefix= $( STATICLIBPATH) --static-libs`
2020-11-02 19:03:34 +00:00
i f d e f U S E _ S D L _ N E T
2016-09-03 22:30:32 +00:00
i f d e f U S E _ S D L 2
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libSDL2_net.a
e l s e
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libSDL_net.a
e n d i f
2020-11-02 19:03:34 +00:00
e n d i f
2016-03-13 16:56:32 +00:00
# With sdl2-config we don't always get the OpenGL framework
2016-03-17 14:32:59 +00:00
OSX_STATIC_LIBS += -framework OpenGL
2020-10-30 18:35:20 +00:00
2020-11-02 19:03:34 +00:00
e l s e # WITHOUT_SDL
# Special SDL_Net library without SDL (iPhone)
i f d e f U S E _ S D L _ N E T
i f e q ( $( SDL_NET_MAJOR ) , 1 )
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libSDL_net.a
e l s e
i f e q ( $( SDL_NET_MAJOR ) , 2 )
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libSDL2_net.a
e n d i f
e n d i f
2020-10-30 18:35:20 +00:00
e n d i f # USE_SDL_NET
2014-02-16 03:18:07 +00:00
2020-11-02 19:03:34 +00:00
e n d i f # WITHOUT_SDL
2016-09-03 22:30:32 +00:00
i f d e f U S E _ L I B C U R L
2020-10-30 18:36:56 +00:00
OSX_STATIC_LIBS += -lcurl -framework Security
2016-09-03 22:30:32 +00:00
e n d i f
2012-03-21 05:36:40 +00:00
i f d e f U S E _ F R E E T Y P E 2
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libfreetype.a $( STATICLIBPATH) /lib/libbz2.a
e n d i f
2007-11-26 15:59:22 +00:00
2020-04-30 23:57:37 +00:00
i f d e f U S E _ F R I B I D I
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libfribidi.a
e n d i f
2007-11-26 15:59:22 +00:00
i f d e f U S E _ V O R B I S
OSX_STATIC_LIBS += \
2009-03-19 20:49:22 +00:00
$( STATICLIBPATH) /lib/libvorbisfile.a \
2017-10-01 18:26:11 +00:00
$( STATICLIBPATH) /lib/libvorbis.a
2007-11-26 15:59:22 +00:00
e n d i f
2007-12-02 11:05:29 +00:00
i f d e f U S E _ T R E M O R
2009-03-19 20:49:22 +00:00
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libvorbisidec.a
2007-12-02 11:05:29 +00:00
e n d i f
2007-11-26 15:59:22 +00:00
i f d e f U S E _ F L A C
2009-03-19 20:49:22 +00:00
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libFLAC.a
2007-11-26 15:59:22 +00:00
e n d i f
2017-10-02 19:55:51 +00:00
i f d e f U S E _ O G G
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libogg.a
e n d i f
2021-02-14 23:29:02 +00:00
i f d e f U S E _ F L U I D L I T E
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libfluidlite.a
e l s e
2012-08-20 00:40:03 +00:00
i f d e f U S E _ F L U I D S Y N T H
2020-11-15 15:20:35 +00:00
OSX_STATIC_LIBS += -liconv \
2019-09-13 23:03:15 +00:00
-framework CoreMIDI -framework CoreAudio\
2016-01-12 21:44:59 +00:00
$( STATICLIBPATH) /lib/libfluidsynth.a \
$( STATICLIBPATH) /lib/libglib-2.0.a \
$( STATICLIBPATH) /lib/libintl.a
2016-01-13 13:53:57 +00:00
i f n e q ( $( BACKEND ) , i o s 7 )
2017-07-03 17:31:12 +00:00
OSX_STATIC_LIBS += -lreadline -framework AudioUnit
2016-01-13 13:53:57 +00:00
e n d i f
e n d i f
2012-08-20 00:40:03 +00:00
e n d i f
2007-11-26 15:59:22 +00:00
i f d e f U S E _ M A D
2009-03-19 20:49:22 +00:00
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libmad.a
2007-11-26 15:59:22 +00:00
e n d i f
2010-10-15 03:33:54 +00:00
i f d e f U S E _ P N G
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libpng.a
e n d i f
2021-04-11 08:34:57 +00:00
i f d e f U S E _ G I F
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libgif.a
e n d i f
2011-01-19 15:00:53 +00:00
i f d e f U S E _ T H E O R A D E C
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libtheoradec.a
e n d i f
2011-04-09 19:27:23 +00:00
i f d e f U S E _ F A A D
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libfaad.a
e n d i f
2023-04-11 11:23:03 +00:00
i f d e f U S E _ M I K M O D
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libmikmod.a
e n d i f
2024-01-31 12:13:21 +00:00
i f d e f U S E _ O P E N M P T
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libopenmpt.a
e n d i f
2013-07-06 03:08:47 +00:00
i f d e f U S E _ M P E G 2
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libmpeg2.a
e n d i f
2018-11-07 06:26:04 +00:00
i f d e f U S E _ A 5 2
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/liba52.a
e n d i f
2024-09-08 10:29:44 +00:00
i f d e f U S E _ M P C D E C
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libmpcdec.a
e n d i f
2023-03-12 12:53:11 +00:00
i f d e f U S E _ V P X
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libvpx.a
e n d i f
2013-09-17 00:41:12 +00:00
i f d e f U S E _ J P E G
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libjpeg.a
e n d i f
2009-03-19 20:49:22 +00:00
i f d e f U S E _ Z L I B
2012-01-14 09:39:49 +00:00
OSX_ZLIB ?= $( STATICLIBPATH) /lib/libz.a
2007-11-26 15:59:22 +00:00
e n d i f
2020-08-25 20:40:06 +00:00
i f d e f U S E _ D I S C O R D
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libdiscord-rpc.a
e n d i f
2023-01-01 16:43:46 +00:00
i f d e f U S E _ R E T R O W A V E
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libRetroWave.a
e n d i f
2024-06-17 11:24:48 +00:00
i f d e f U S E _ S O N I V O X
OSX_STATIC_LIBS += $( STATICLIBPATH) /lib/libsonivox-static.a
e n d i f
2011-07-03 21:01:17 +00:00
i f d e f U S E _ S P A R K L E
2017-12-06 18:31:28 +00:00
i f d e f M A C O S X
2016-03-27 12:04:42 +00:00
i f n e q ( $( SPARKLEPATH ) , )
OSX_STATIC_LIBS += -F$( SPARKLEPATH)
e n d i f
OSX_STATIC_LIBS += -framework Sparkle -Wl,-rpath,@loader_path/../Frameworks
2011-07-03 21:01:17 +00:00
e n d i f
2017-12-06 18:31:28 +00:00
e n d i f
2011-07-03 21:01:17 +00:00
2022-01-29 02:58:21 +00:00
# Special target to create a static linked binary for macOS.
2007-11-26 15:59:22 +00:00
# We use -force_cpusubtype_ALL to ensure the binary runs on every
# PowerPC machine.
2020-10-05 09:41:16 +00:00
scummvm-static : $( DETECT_OBJS ) $( OBJS )
2022-05-09 20:51:55 +00:00
+$( LD) $( LDFLAGS) -force_cpusubtype_ALL -o scummvm-static $( PRE_OBJS_FLAGS) $( DETECT_OBJS) $( OBJS) $( POST_OBJS_FLAGS) \
2007-11-26 15:59:22 +00:00
-framework CoreMIDI \
$( OSX_STATIC_LIBS) \
2014-06-09 21:37:53 +00:00
$( OSX_ZLIB)
2007-11-26 15:59:22 +00:00
2023-05-31 18:31:19 +00:00
# Special target to create a static linked binary for the iOS and tvOS devices (ios7 backend)
2023-05-31 19:04:29 +00:00
scummvm-static-ios : $( DETECT_OBJS ) $( OBJS )
2021-01-10 10:14:30 +00:00
+$( LD) $( LDFLAGS) -o scummvm $( DETECT_OBJS) $( OBJS) \
2007-12-02 11:05:29 +00:00
$( OSX_STATIC_LIBS) \
2022-05-16 11:21:26 +00:00
-framework UIKit -framework CoreGraphics -framework OpenGLES -framework GameController \
2023-06-19 19:20:43 +00:00
-framework CoreFoundation -framework QuartzCore -framework Foundation \
2019-08-04 16:41:53 +00:00
-framework AudioToolbox -framework CoreAudio -framework SystemConfiguration -lobjc -lz
2007-12-02 11:05:29 +00:00
2022-01-29 02:58:21 +00:00
# Special target to create a snapshot disk image for macOS
2007-11-26 15:59:22 +00:00
# TODO: Replace AUTHORS by Credits.rtf
2021-08-28 16:26:33 +00:00
osxsnap : bundle
2007-11-26 15:59:22 +00:00
mkdir ScummVM-snapshot
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS) ./ScummVM-snapshot/
mv ./ScummVM-snapshot/COPYING ./ScummVM-snapshot/License\ \( GPL\)
2024-05-22 18:49:15 +00:00
mv ./ScummVM-snapshot/COPYING.Apache ./ScummVM-snapshot/License\ \( Apache\)
2018-12-18 22:08:41 +00:00
mv ./ScummVM-snapshot/COPYING.BSD ./ScummVM-snapshot/License\ \( BSD\)
2024-05-22 18:49:15 +00:00
mv ./ScummVM-snapshot/COPYING.BSL ./ScummVM-snapshot/License\ \( BSL\)
mv ./ScummVM-snapshot/COPYING.FREEFONT ./ScummVM-snapshot/License\ \( FREEFONT\)
mv ./ScummVM-snapshot/COPYING.GLAD ./ScummVM-snapshot/License\ \( Glad\)
2020-10-09 17:04:07 +00:00
mv ./ScummVM-snapshot/COPYING.ISC ./ScummVM-snapshot/License\ \( ISC\)
2024-05-22 18:49:15 +00:00
mv ./ScummVM-snapshot/COPYING.LGPL ./ScummVM-snapshot/License\ \( LGPL\)
2020-10-09 17:04:07 +00:00
mv ./ScummVM-snapshot/COPYING.LUA ./ScummVM-snapshot/License\ \( Lua\)
mv ./ScummVM-snapshot/COPYING.MIT ./ScummVM-snapshot/License\ \( MIT\)
2023-03-05 20:47:13 +00:00
mv ./ScummVM-snapshot/COPYING.MKV ./ScummVM-snapshot/License\ \( MKV\)
2024-05-22 18:49:15 +00:00
mv ./ScummVM-snapshot/COPYING.MPL ./ScummVM-snapshot/License\ \( MPL\)
mv ./ScummVM-snapshot/COPYING.OFL ./ScummVM-snapshot/License\ \( OFL\)
2020-10-09 17:04:07 +00:00
mv ./ScummVM-snapshot/COPYING.TINYGL ./ScummVM-snapshot/License\ \( TinyGL\)
2023-08-29 09:30:11 +00:00
mv ./ScummVM-snapshot/CatharonLicense.txt ./ScummVM-snapshot/CatharonLicense.txt
2018-12-18 22:08:41 +00:00
$( XCODETOOLSPATH) /SetFile -t ttro -c ttxt ./ScummVM-snapshot/*
2011-07-18 07:32:19 +00:00
mkdir ScummVM-snapshot/doc
2011-07-18 07:36:27 +00:00
cp $( srcdir) /doc/QuickStart ./ScummVM-snapshot/doc/QuickStart
2011-10-19 21:02:52 +00:00
mkdir ScummVM-snapshot/doc/cz
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_cz) ./ScummVM-snapshot/doc/cz/
2012-07-07 00:15:59 +00:00
mkdir ScummVM-snapshot/doc/da
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_da) ./ScummVM-snapshot/doc/da/
2011-07-18 07:32:19 +00:00
mkdir ScummVM-snapshot/doc/de
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_de) ./ScummVM-snapshot/doc/de/
2011-10-15 23:36:19 +00:00
mkdir ScummVM-snapshot/doc/es
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_es) ./ScummVM-snapshot/doc/es/
2011-07-18 07:32:19 +00:00
mkdir ScummVM-snapshot/doc/fr
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_fr) ./ScummVM-snapshot/doc/fr/
2011-10-16 23:05:55 +00:00
mkdir ScummVM-snapshot/doc/it
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_it) ./ScummVM-snapshot/doc/it/
2011-10-05 18:55:13 +00:00
mkdir ScummVM-snapshot/doc/no-nb
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_no-nb) ./ScummVM-snapshot/doc/no-nb/
2011-11-27 21:47:25 +00:00
mkdir ScummVM-snapshot/doc/se
2018-12-18 22:08:41 +00:00
cp $( DIST_FILES_DOCS_se) ./ScummVM-snapshot/doc/se/
$( XCODETOOLSPATH) /SetFile -t ttro -c ttxt ./ScummVM-snapshot/doc/QuickStart
$( XCODETOOLSPATH) /SetFile -t ttro -c ttxt ./ScummVM-snapshot/doc/*/*
2023-04-12 13:59:26 +00:00
i f n d e f M A C O S X _ L E O P A R D _ O R _ B E L O W
xattr -w "com.apple.TextEncoding" "utf-8;134217984" ./ScummVM-snapshot/doc/*/*
e n d i f
2021-10-10 10:28:22 +00:00
cp -RP $( bundle_name) ./ScummVM-snapshot/
2008-01-06 14:12:55 +00:00
cp $( srcdir) /dists/macosx/DS_Store ./ScummVM-snapshot/.DS_Store
cp $( srcdir) /dists/macosx/background.jpg ./ScummVM-snapshot/background.jpg
2016-03-05 23:07:21 +00:00
$( XCODETOOLSPATH) /SetFile -a V ./ScummVM-snapshot/.DS_Store
$( XCODETOOLSPATH) /SetFile -a V ./ScummVM-snapshot/background.jpg
2007-11-26 15:59:22 +00:00
hdiutil create -ov -format UDZO -imagekey zlib-level= 9 -fs HFS+ \
-srcfolder ScummVM-snapshot \
2009-04-19 10:28:00 +00:00
-volname "ScummVM" \
2007-11-26 15:59:22 +00:00
ScummVM-snapshot.dmg
rm -rf ScummVM-snapshot
2016-03-27 21:40:58 +00:00
publish-appcast :
2020-01-29 23:36:31 +00:00
cp dists/macosx/scummvm_appcast.xml ../scummvm-web/public_html/appcasts/macosx/release.xml
2016-03-27 21:40:58 +00:00
2011-11-23 12:48:24 +00:00
2023-05-19 20:29:24 +00:00
APPDIR = AppDir
# AppImage tool doesn't check for metainfo.xml, only appdata.xml
appimage :
2023-05-27 10:46:18 +00:00
@if [ -z " ${ LINUXDEPLOY } " -a -z " ${ APPIMAGETOOL } " ] ; then echo "LINUXDEPLOY or APPIMAGETOOL variables must be set to the path of linuxdeploy or go-appimage binaries" >& 2; exit 1; fi
2023-05-19 20:29:24 +00:00
@if [ " $( prefix) " != '/usr' ] ; then echo "Please re-run configure with --prefix=/usr" >& 2; exit 1; fi
rm -rf " $( APPDIR) "
$( MAKE) install DESTDIR = " $( APPDIR) "
ln -s org.scummvm.scummvm.metainfo.xml " $( APPDIR) / $( datarootdir) /metainfo/org.scummvm.scummvm.appdata.xml "
2023-05-27 10:46:18 +00:00
if [ -n " ${ APPIMAGETOOL } " ] ; then \
" ${ APPIMAGETOOL } " -s deploy " $( APPDIR) / $( datarootdir) /applications/org.scummvm.scummvm.desktop " && \
LD_LIBRARY_PATH = '' find AppDir -type f -exec ldd { } 2>& 1 \; | grep '=>' | ( ! grep -v AppDir ) && \
VERSION = " $( VERSION) $( VER_REV) " " ${ APPIMAGETOOL } " " $( APPDIR) " ; \
else \
VERSION = " $( VERSION) $( VER_REV) " " ${ LINUXDEPLOY } " --appdir= " $( APPDIR) " -o appimage ; \
fi
2023-05-19 20:29:24 +00:00
2011-11-23 12:48:24 +00:00
#
# Special target to generate project files for various IDEs
# Mainly Win32-specific
#
2011-11-23 12:55:54 +00:00
# The release branch is in form 'heads/branch-1-4-1', for this case
# $CUR_BRANCH will be equal to '1', for the rest cases it will be empty
2011-11-23 12:48:24 +00:00
CUR_BRANCH := $( shell cd $( srcdir) ; git describe --all | cut -d '-' -f 4-)
ideprojects : devtools /create_project
2011-11-23 12:55:54 +00:00
i f e q ( $( VER_DIRTY ) , - d i r t y )
2016-03-27 21:47:18 +00:00
$( error You have uncommitted changes)
e n d i f
2011-11-23 12:48:24 +00:00
i f e q "$(CUR_BRANCH)" "heads/master"
2016-03-27 21:47:18 +00:00
$( error You cannot do it on master)
2011-11-23 12:48:24 +00:00
e l s e i f e q "$(CUR_BRANCH)" ""
2016-03-27 21:47:18 +00:00
$( error You must be on a release branch)
2011-11-23 12:48:24 +00:00
e n d i f
@echo Creating Code::Blocks project files...
2021-08-06 14:53:16 +00:00
@cd $( srcdir) /dists/codeblocks && $( PWD) /devtools/create_project/create_project ../.. --codeblocks >/dev/null && git add -f engines/*.h *.workspace *.cbp
2019-04-16 01:49:08 +00:00
@echo Creating MSVC project files...
2023-04-17 13:00:50 +00:00
@cd $( srcdir) /dists/msvc && $( PWD) /devtools/create_project/create_project ../.. --msvc-version 12 --msvc >/dev/null && git add -f engines/*.h *.sln *.vcxproj *.vcxproj.filters *.props
2011-11-23 12:48:24 +00:00
@echo
@echo All is done .
@echo Now run
2021-08-06 14:53:54 +00:00
@echo -e "\tgit commit -m 'DISTS: Generated Code::Blocks and MSVC project files'"
2011-11-23 12:48:24 +00:00
2023-03-15 21:14:44 +00:00
release-checks :
devtools/release-checks.sh
2009-09-25 11:22:14 +00:00
# Mark special targets as phony
2023-05-19 20:40:19 +00:00
.PHONY : install -data install install -strip uninstall dist -generic
.PHONY : bundle -pack bundle iphonebundle ios 7bundle tvosbundle iphone osxsnap publish -appcast
2023-05-19 20:29:24 +00:00
.PHONY : appimage ideprojects release -checks