xmame.spec 3.3 KB

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