Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 64863
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Gerry <trick@icculus.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 64863 depends on: Show dependency tree
Bug 64863 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-09-21 08:23 0000
OpenTTD has support for playing its midi files through another midi player than
timidity by using the MIDI option to the makefile.  For example, I build with
MIDI=/usr/bin/pmidi to have OpenTTD play hardware midi through pmidi, in stead
of using timidity emulation.  It would be nice if the ebuild had support for
this, so that I can use the ebuild and get music without having to install
timidity.  (use flag or environment variable ?)

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Mr. Bones. 2004-11-19 23:38:27 0000 -------
I talked to upstream and they might address this with a command-line option in
a future version.  Development doesn't seem to be going that quickly though and
since there hasn't been a release in a while, i'm going to mark this as
UPSTREAM since it won't be addressed until they release again.

------- Comment #2 From Gerry 2004-11-20 08:01:57 0000 -------
Huh ?  That doesn't make sense.  OpenTTD already doesn't require timidity, only
the gentoo ebuild does.  As I said, all that needs to be done is to add
MIDI=/usr/bin/pmidi to the make line to use hardware midi through pmidi in
stead of software midi through timidity.  

All you have to do to support this is to check for the timidity USE flag in the
openttd ebuild (which you already do).  If it's disabled, you can depend on
pmidi in stead of timidity, and add MIDI=/usr/bin/pmidi to $(myopts).  There's
no need for any upstream changes.  Actually, if depending on pmidi is a
problem, you don't have to, since if /usr/bin/pmidi doesn't exist, it simply
won't be used.

Here, I'll make it easy for you.  Add this line to the openttd ebuild before
the emake line:

use timidity || myopts="${myopts} MIDI=/usr/bin/pmidi"

And change:
einfo "timidity not in USE so music will not be played during the game."
to:
einfo "timidity not in USE, using pmidi in stead.  emerge pmidi if you want
in-game music."

That's all that's required to make it work.

------- Comment #3 From David Holm (RETIRED) 2004-12-28 02:06:52 0000 -------
Fixed in 0.3.5

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug