xmame.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##
  2. ## xmame.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: xmame
  27. Summary: Multi Arcade Machine Emulator (MAME)
  28. URL: http://www.mame.net/
  29. Vendor: Nicola Salmoria
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: Games
  33. License: GPL
  34. Version: 0.55.2
  35. Release: 20011201.0
  36. # list of sources
  37. Source0: http://x.mame.net/download/xmame-%{version}.tar.bz2
  38. Source1: http://www.mame.net/zips/hsdat7.zip
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20011126.0, gcc, make, zlib
  43. PreReq: OpenPKG, openpkg >= 20011126.0
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. X-MAME is a port of the popular Multi Arcade Machine Emulator (MAME)
  48. to the X Window System. It is able to run over 1600 original arcade
  49. games through their ROM sets.
  50. %prep
  51. %setup -q
  52. %build
  53. os=""
  54. cpu=""
  55. x11=""
  56. case "%{l_target}" in
  57. *-freebsd* ) os="freebsd"; cpu="i386"; x11="X11R6" ;;
  58. *-linux* ) os="linux"; cpu="i386"; x11="X11R6" ;;
  59. *-solaris* ) os="solaris"; cpu="risc"; x11="openwin" ;;
  60. esac
  61. %{l_make} %{l_mflags -O} \
  62. -f makefile.unix \
  63. CC="%{l_cc}" \
  64. CFLAGS="-I%{l_prefix}/include -I/usr/$x11/include -pipe -O2 -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math" \
  65. LDFLAGS="-L%{l_prefix}/lib -L/usr/$x11/lib" \
  66. PREFIX="%{l_prefix}" \
  67. XMAMEROOT="%{l_prefix}/etc/xmame" \
  68. ARCH="$os" \
  69. MY_CPU="$cpu" \
  70. X11INC="-I/usr/$x11/include" \
  71. X11LIB="-L/usr/$x11/lib" \
  72. LIBS="-L%{l_prefix}/lib" \
  73. INCLUDE="-I%{l_prefix}/include"
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_shtool} mkdir -f -p -m 755 \
  77. $RPM_BUILD_ROOT%{l_prefix}/bin \
  78. $RPM_BUILD_ROOT%{l_prefix}/man/man6 \
  79. $RPM_BUILD_ROOT%{l_prefix}/etc/xmame
  80. %{l_shtool} install -c -s -m 755 \
  81. xmame.x11 $RPM_BUILD_ROOT%{l_prefix}/bin/xmame
  82. %{l_shtool} install -c -m 644 \
  83. doc/xmame.6 $RPM_BUILD_ROOT%{l_prefix}/man/man6/xmame.6
  84. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  85. %files -f files
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT