From 8ef3f896f5f20992b18e0ecea7cfa59b8fdffc67 Mon Sep 17 00:00:00 2001 From: matthijs Date: Sat, 28 May 2005 10:32:09 +0000 Subject: [PATCH] (svn r2371) - Fix: [ 1144510 ] make install tries to install scenarios in the (non-existing) personal dir when USE_HOMEDIR is specified. This fix solves the issue for now by installing scenarios in the system-wide data dir. - Add: 32x32 xpm format icon, used for debian packaging. - Some minor updates to the os/debian directory. --- Makefile | 17 ++- media/openttd.32.xpm | 295 ++++++++++++++++++++++++++++++++++++++++ os/debian/README.Debian | 15 +- os/debian/changelog | 37 ++++- os/debian/control | 3 +- os/debian/docs | 1 - os/debian/menu | 2 +- os/debian/rules | 2 +- 8 files changed, 360 insertions(+), 12 deletions(-) create mode 100644 media/openttd.32.xpm diff --git a/Makefile b/Makefile index 214fdee53c..94eb0726a0 100644 --- a/Makefile +++ b/Makefile @@ -83,8 +83,10 @@ # PREFIX: Normally /usr/local # BINARY_DIR: The location of the binary, normally games. (Will be prefixed # with $PREFIX) -# DATA_DIR: The location of the data (lang, data and gm), normally -# share/games/openttd. (Will be prefixed with $PREFIX) +# DATA_DIR: The location of the data (lang, data, gm and scenario), normally +# share/games/openttd. (Will be prefixed with $PREFIX) Note that scenarios +# are only put here if USE_HOMEDIR is true, otherwise they are placed in +# PERSONAL_DIR/scenario # PERSONAL_DIR: The directory where openttd.cfg and the save folder will be # stored. You cannot use ~ here, define USE_HOMEDIR for that. # USE_HOMEDIR: If this variable is set, PERSONAL_DIR will be prefixed with @@ -954,13 +956,22 @@ endif $(DATA_DIR_INSTALL)/data \ $(DATA_DIR_INSTALL)/gm \ $(BINARY_DIR_INSTALL) - mkdir -p $(PERSONAL_DIR)/scenario +ifndef USE_HOMEDIR + mkdir -p $(PERSONAL_DIR)/scenario +else + mkdir -p $(DATA_DIR_INSTALL)/scenario +endif install $(TTD) $(BINARY_DIR_INSTALL) install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL) + install -m 644 media/openttd.32.xpm $(DATA_DIR_INSTALL) +ifndef USE_HOMEDIR cp scenario/* $(PERSONAL_DIR)/scenario/ +else + cp scenario/* $(DATA_DIR_INSTALL)/scenario/ +endif else #MorphOS install: $(error make install is not supported on MorphOS) diff --git a/media/openttd.32.xpm b/media/openttd.32.xpm new file mode 100644 index 0000000000..9cebcf89ec --- /dev/null +++ b/media/openttd.32.xpm @@ -0,0 +1,295 @@ +/* XPM */ +static char *openttd.32[] = { +/* columns rows colors chars-per-pixel */ +"32 32 257 2", +" c #000000", +". c #00000A", +"X c #03090D", +"o c #000017", +"O c #00001C", +"+ c #060D12", +"@ c #060C1C", +"# c #0C131B", +"$ c #0A1117", +"% c #15031F", +"& c #1D1B18", +"* c #0D0024", +"= c #070022", +"- c #0C1827", +"; c #150223", +": c #180324", +"> c #1B0C22", +", c #19002A", +"< c #151825", +"1 c #1A1E34", +"2 c #1A242C", +"3 c #1E2327", +"4 c #1A2630", +"5 c #201825", +"6 c #201427", +"7 c #21262C", +"8 c #24292D", +"9 c #28292B", +"0 c #232C33", +"q c #2C2631", +"w c #3B2C2F", +"e c #352B30", +"r c #37392D", +"t c #313231", +"y c #353C31", +"u c #383532", +"i c #351C43", +"p c #383D42", +"a c #294335", +"s c #2A4C36", +"d c #2C5436", +"f c #2F5935", +"g c #354031", +"h c #384533", +"j c #3B542D", +"k c #315F33", +"l c #326B2E", +"z c #30642F", +"x c #3A762D", +"c c #3B7B2D", +"v c #36712E", +"b c #3E4042", +"n c #432D2D", +"m c #4B312B", +"M c #52352B", +"N c #6B3B29", +"B c #763D21", +"V c #4F335D", +"C c #405C32", +"Z c #5A402A", +"A c #5F4435", +"S c #456B33", +"D c #4D6A3F", +"F c #487434", +"G c #4B7D33", +"H c #537D3F", +"J c #7D401F", +"K c #684527", +"L c #634734", +"P c #7D502B", +"I c #72583A", +"U c #434241", +"Y c #4B4640", +"T c #43484F", +"R c #424C56", +"E c #434D59", +"W c #49535D", +"Q c #46505B", +"! c #544A40", +"~ c #564C59", +"^ c #4C5661", +"/ c #555D65", +"( c #5A4763", +") c #55606B", +"_ c #7F6549", +"` c #63696F", +"' c #6E7377", +"] c #7A6F62", +"[ c #7E7162", +"{ c #7A7C7B", +"} c #3E822D", +"| c #40862D", +" . c #4E8334", +".. c #518B35", +"X. c #508735", +"o. c #5CAB35", +"O. c #5EB335", +"+. c #61BB36", +"@. c #62C435", +"#. c #65CC34", +"$. c #69CF37", +"%. c #66D134", +"&. c #68D532", +"*. c #6BDB35", +"=. c #6EE236", +"-. c #71EA37", +";. c #833C03", +":. c #8A451C", +">. c #83421E", +",. c #944E1B", +"<. c #9A551A", +"1. c #8F5720", +"2. c #835834", +"3. c #995922", +"4. c #8C643C", +"5. c #9B6B3A", +"6. c #AC5306", +"7. c #BE4B00", +"8. c #BA5503", +"9. c #B15D16", +"0. c #A35A1B", +"q. c #BE661D", +"w. c #AE6324", +"e. c #A5743F", +"r. c #B36624", +"t. c #B76E31", +"y. c #BA773B", +"u. c #8A6643", +"i. c #936E47", +"p. c #9A754D", +"a. c #9C7552", +"s. c #907D6C", +"d. c #A67747", +"f. c #A77D50", +"g. c #B27D43", +"h. c #C05900", +"j. c #CD660D", +"k. c #CC6409", +"l. c #DB690A", +"z. c #D96706", +"x. c #D16E18", +"c. c #C16B23", +"v. c #CA762B", +"b. c #D87E30", +"n. c #CB792E", +"m. c #E36E0A", +"M. c #EA6D03", +"N. c #EC7105", +"B. c #F76F00", +"V. c #FE6F00", +"C. c #F37503", +"Z. c #FE7500", +"A. c #FE7A00", +"S. c #FD7C0C", +"D. c #F4790E", +"F. c #FE7E11", +"G. c #C27E42", +"H. c #9D8065", +"J. c #9A8570", +"K. c #BD834E", +"L. c #B5814B", +"P. c #B28452", +"I. c #BF8C56", +"U. c #BE8E63", +"Y. c #B79779", +"T. c #D5863F", +"R. c #FF8209", +"E. c #FE8215", +"W. c #FC821B", +"Q. c #EE8934", +"!. c #FC8623", +"~. c #FF8A23", +"^. c #FA8A2C", +"/. c #FA8728", +"(. c #F98E33", +"). c #F7953E", +"_. c #FC9234", +"`. c #F9933B", +"'. c #FF9B3D", +"]. c #C48B52", +"[. c #CD9456", +"{. c #C79156", +"}. c #D38D44", +"|. c #DA9D5B", +" X c #D39858", +".X c #C48A4A", +"XX c #C99561", +"oX c #C29D7A", +"OX c #C19C76", +"+X c #DEA15F", +"@X c #E18D43", +"#X c #EC9542", +"$X c #E09C52", +"%X c #F59741", +"&X c #F69945", +"*X c #F59D4A", +"=X c #FB9940", +"-X c #F89D49", +";X c #E3A25C", +":X c #EBA55A", +">X c #FFA047", +",X c #FFA74B", +".A.Z.A.6.dXNXm.Z.A.N.n v &.*.=.F : YXYXYXYX", +"YXYXYXYXO y +.=.*.#.s >.A.A.z.K.XXD.A.N.m l &.*.=.G > YXYXYXYXYX", +"YXYXYXYXYX= y +.=.*.@.s :.A.A.Z.Z.A.C.m l &.*.-. .> YXYXYXYXYXYX", +"YXYXYXYXYXYX* y +.=.=.@.s ,.A.Z.A.C.M z &.*.=.X.> YXYXYXYXYXYXYX", +"YXYXYXYXYXYXYX* g @.*.-.G 4 <.A.C.Z - j $.-.X.> YXYXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYX; h $...< @ 0 <.K - YX, C X.5 YXYXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYXYX: y 9 YX3 0 2 YXYX6 6 YXYXYXYXYXYXYXYXYX", +"YXYXYXYXYXYXYXYXYXYX. YXYXYX YXYXYXYXYXYXYXYXYXYXYXYXYXYXYX" +}; diff --git a/os/debian/README.Debian b/os/debian/README.Debian index 489c82debd..f26d1b9203 100644 --- a/os/debian/README.Debian +++ b/os/debian/README.Debian @@ -7,13 +7,22 @@ You should copy the data files from the original TTD into the data directory -Music For in game music (optional), you should copy all files in the data/gm - folder of you ttd installation to /usr/share/games/openttd/gm. You + folder of your ttd installation to /usr/share/games/openttd/gm. You should also install timdity and a soundfont (freepats is packaged in debian and works out of the box). Don't forget to use -m extmidi if you want music, and if you have problems, remember that not all audio devices support multiple audiostreams (music and sound), so you might have to use software - mixing. AC97 codec cannot do hardware mixing, for example. + mixing. My VIA AC97 device cannot do hardware mixing, for example. - -- Matthijs Kooijman , Wed, 15 Sep 2004 00:24:01 +0200 +-Scenarios + There are a few scenarios included in this release. When you start openttd + it will look for scenarios in ~/.openttd/scenario, while the premade + scenarios are in /usr/share/games/openttd/data/scenario. You have two + options to use the scenarios. + * Navigate to /usr/share/games/openttd/data/scenario within openttd. + * Copy scenarios from /usr/share/games/openttd/data/scenario to + ~/.openttd/scenario. We are looking into a better solution for this. + + -- Matthijs Kooijman , Tue, 25 Jan 2004 14:11:01 +0200 diff --git a/os/debian/changelog b/os/debian/changelog index 9161cf5ad2..1d2474ed94 100644 --- a/os/debian/changelog +++ b/os/debian/changelog @@ -1,6 +1,39 @@ -openttd (0.3.4.1-1) unstable; urgency=low +openttd (0.4.0.1-2) unstable; urgency=low + + * Added Suggests: timidity, freepats + + -- Matthijs Kooijman Fri, 27 May 2005 02:19:24 +0200 + +openttd (0.4.0.1-1) unstable; urgency=low + + * New upstream release + + -- Matthijs Kooijman Mon, 23 May 2005 13:04:24 +0200 + +openttd (0.4.0-1) unstable; urgency=low + + * New upstream release + + -- Matthijs Kooijman Mon, 16 May 2005 00:16:17 +0200 + +openttd (0.3.6-1) unstable; urgency=low + + * New upstream release + * Modifed Makefile to install xpm icon and scenarios in /usr/share/games/openttd/ + * Added openttd.32.xpm, openttd.64.xpm was too big + + -- root Tue, 25 Jan 2005 19:21:08 +0100 + +openttd (0.3.5-2) unstable; urgency=low + + * Fixed some lintian warnings. + * Added openttd.64.xpm (icon for menu). + + -- Matthijs Kooijman Mon, 27 Dec 2004 01:51:36 +0100 + +openttd (0.3.5-1) unstable; urgency=low * Initial Release. - -- Matthijs Kooijman Thu, 16 Sep 2004 00:59:38 +0200 + -- Matthijs Kooijman Fri, 24 Dec 2004 02:58:47 +0100 diff --git a/os/debian/control b/os/debian/control index 4a819253d8..18e46f38e1 100644 --- a/os/debian/control +++ b/os/debian/control @@ -8,7 +8,8 @@ Standards-Version: 3.6.0 Package: openttd Architecture: any Depends: ${shlibs:Depends} -Description: An open source clone of the Microprose game "Transport Tycoon Deluxe" +Suggests: timidity, freepats +Description: open source clone of the Microprose game "Transport Tycoon Deluxe" An enhanced open source clone of the Microprose game "Transport Tycoon Deluxe". You require the data files of the original Transport Tycoon Deluxe for Windows to play the game. You have to MANUALLY copy them to the diff --git a/os/debian/docs b/os/debian/docs index 84e254122a..24a607f07d 100644 --- a/os/debian/docs +++ b/os/debian/docs @@ -2,4 +2,3 @@ changelog.txt readme.txt docs/Manual.txt docs/multiplayer.txt -known-bugs.txt diff --git a/os/debian/menu b/os/debian/menu index a3da87e287..d15a0fd537 100644 --- a/os/debian/menu +++ b/os/debian/menu @@ -1,2 +1,2 @@ ?package(openttd):needs="X11" section="Games/Simulation" title="Openttd"\ -command="/usr/games/openttd" icon="/usr/share/games/openttd/openttd.64.xpm" +command="/usr/games/openttd" icon="/usr/share/games/openttd/openttd.32.xpm" diff --git a/os/debian/rules b/os/debian/rules index c7be3f31a7..cc4ea34ccd 100644 --- a/os/debian/rules +++ b/os/debian/rules @@ -34,7 +34,7 @@ build-stamp: configure-stamp # Add here commands to compile the package. - rm Makefile.config + rm Makefile.config || true $(MAKE) PREFIX=/usr MIDI=/usr/bin/timidity INSTALL=1 BINARY_DIR=games DATA_DIR=share/games/openttd PERSONAL_DIR=.openttd USE_HOMEDIR=1 #/usr/bin/docbook-to-man debian/openttd.sgml > openttd.1