summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-07-22 22:21:38 +0000
committerskidd13 <skidd13@openttd.org>2008-07-22 22:21:38 +0000
commit8183603e87e1d95cb775d1cf800dfc074c602c4b (patch)
tree65f90b7e1c0034f59f52940fd261cb34912d71a7 /config.lib
parent417a56cf993d4c469d92b89a78b8667cad8e352e (diff)
downloadopenttd-8183603e87e1d95cb775d1cf800dfc074c602c4b.tar.xz
(svn r13790) -Fix: Enable to force the creation of freedesktop.org desktop entry files
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib21
1 files changed, 9 insertions, 12 deletions
diff --git a/config.lib b/config.lib
index a0fe602ec..6831be7bc 100644
--- a/config.lib
+++ b/config.lib
@@ -29,10 +29,16 @@ set_default() {
binary_dir="games"
data_dir="share/games/openttd"
icon_dir="share/pixmaps"
- menu_dir="share/applications"
personal_dir="1"
shared_dir="1"
install_dir="/"
+ if [ "$os" = "UNIX" ] || [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ] || [ "$os" = "HPUX" ] || [ "$os" = "SUNOS" ]; then
+ with_menu_entry="1"
+ menu_dir="share/applications"
+ else
+ with_menu_entry="0"
+ menu_dir=""
+ fi
menu_group="Game;"
enable_debug="0"
enable_desync_debug="0"
@@ -50,7 +56,6 @@ set_default() {
enable_cocoa_quickdraw="1"
with_osx_sysroot="1"
with_application_bundle="1"
- with_menu_entry="1"
with_sdl="1"
with_cocoa="1"
with_zlib="1"
@@ -867,13 +872,6 @@ check_params() {
else
log 1 "installation directory... none"
fi
-
- if [ "$os" = "CYGWIN" ] || [ "$os" = "MINGW" ] || [ "$os" = "OS2" ] || [ "$os" = "WINCE" ] || [ "$os" = "PSP" ] || [ "$os" = "OSX" ] || [ "$os" = "MORPHOS" ]; then
- # Don't create a .desktop file
- with_menu_entry="0"
- menu_dir=""
- menu_group=""
- fi
}
make_cflags_and_ldflags() {
@@ -2420,9 +2418,8 @@ showhelp() {
echo " (OSX ONLY)"
echo " --without-application-bundle disable generation of application bundle"
echo " (OSX ONLY)"
- echo " --with-menu-entry Generate a menu item on for UNIX desktops (Except OSX)"
- echo " --without-menu-entry Don't generate a menu item"
- echo " --menu_group=group Category in which the menu item will be placed (UNIX only, except OSX)"
+ echo " --without-menu-entry Don't generate a menu item (Freedesktop based only)"
+ echo " --menu_group=group Category in which the menu item will be placed (Freedesktop based only)"
echo " --with-direct-music enable direct music support (Win32 ONLY)"
echo " --with-sort=sort define a non-default location for sort"
echo " --with-midi=midi define which midi-player to use"