From dba403361728a1f5c11a6d833ebfb30259d39e9a Mon Sep 17 00:00:00 2001 From: ponce Date: Mon, 28 May 2012 21:39:16 +0200 Subject: system/BasiliskII: Added (68k Macintosh Emulator). Signed-off-by: Robby Workman --- system/BasiliskII/BasiliskII.SlackBuild | 102 ++++++++++++++++++++++++++ system/BasiliskII/BasiliskII.info | 10 +++ system/BasiliskII/README | 5 ++ system/BasiliskII/doinst.sh | 3 + system/BasiliskII/files/BasiliskII.desktop | 9 +++ system/BasiliskII/files/BasiliskII.svg | 106 +++++++++++++++++++++++++++ system/BasiliskII/files/fix-64bit-check.diff | 25 +++++++ system/BasiliskII/slack-desc | 19 +++++ 8 files changed, 279 insertions(+) create mode 100644 system/BasiliskII/BasiliskII.SlackBuild create mode 100644 system/BasiliskII/BasiliskII.info create mode 100644 system/BasiliskII/README create mode 100644 system/BasiliskII/doinst.sh create mode 100644 system/BasiliskII/files/BasiliskII.desktop create mode 100644 system/BasiliskII/files/BasiliskII.svg create mode 100644 system/BasiliskII/files/fix-64bit-check.diff create mode 100644 system/BasiliskII/slack-desc (limited to 'system') diff --git a/system/BasiliskII/BasiliskII.SlackBuild b/system/BasiliskII/BasiliskII.SlackBuild new file mode 100644 index 000000000000..c99dfcf6cad1 --- /dev/null +++ b/system/BasiliskII/BasiliskII.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh + +# Slackware build script for BasiliskII +# Written by ponce + +PRGNAM=BasiliskII +VERSION=${VERSION:-20120528} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +DOCS="COPYING ChangeLog README TECH TODO" + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# fix building on 64bit +if [ "$ARCH" = "x86_64" ]; then + patch -p1 < $CWD/files/fix-64bit-check.diff +fi + +# fix a moved header with recent kernels +sed -i "s|net/if_tun\.h|linux/if_tun.h|" src/Unix/{ether_unix.cpp,configure.ac} + +cd src/Unix +NO_CONFIGURE=1 ./autogen.sh +CPPFLAGS="-I/usr/include/readline" \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --enable-jit-compiler \ + --disable-vosf \ + --enable-sdl-video=yes \ + --enable-sdl-audio=yes \ + --with-mon=no \ + --with-x \ + --host=$ARCH-slackware-linux \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG +cd - + +install -m 0644 -D $CWD/files/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop +install -m 0644 -D $CWD/files/$PRGNAM.svg $PKG/usr/share/pixmaps/$PRGNAM.svg + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/BasiliskII/BasiliskII.info b/system/BasiliskII/BasiliskII.info new file mode 100644 index 000000000000..568dbcd52af2 --- /dev/null +++ b/system/BasiliskII/BasiliskII.info @@ -0,0 +1,10 @@ +PRGNAM="BasiliskII" +VERSION="20120528" +HOMEPAGE="http://basilisk.cebix.net/" +DOWNLOAD="http://ponce.cc/slackware/sources/repo/BasiliskII-20120528.tar.xz" +MD5SUM="f4223dab33eecfb562f2d10dda6daeec" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="ponce" +EMAIL="matteo.bernardini@gmail.com" +APPROVED="" diff --git a/system/BasiliskII/README b/system/BasiliskII/README new file mode 100644 index 000000000000..e0b9ef798e71 --- /dev/null +++ b/system/BasiliskII/README @@ -0,0 +1,5 @@ +BasiliskII (68k Macintosh Emulator) + +Basilisk II is an Open Source 68k Macintosh emulator. +It allows you to run 68k MacOS software on your computer, however +still need a copy of MacOS and a Macintosh ROM image to use it. diff --git a/system/BasiliskII/doinst.sh b/system/BasiliskII/doinst.sh new file mode 100644 index 000000000000..5fb28930db0b --- /dev/null +++ b/system/BasiliskII/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/system/BasiliskII/files/BasiliskII.desktop b/system/BasiliskII/files/BasiliskII.desktop new file mode 100644 index 000000000000..966b04efbfc9 --- /dev/null +++ b/system/BasiliskII/files/BasiliskII.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Basilisk II +Comment=68k Macintosh Emulator +Exec=BasiliskII +Icon=BasiliskII.svg +Terminal=false +Type=Application +Categories=Application;Utility; +Encoding=UTF-8 diff --git a/system/BasiliskII/files/BasiliskII.svg b/system/BasiliskII/files/BasiliskII.svg new file mode 100644 index 000000000000..4eac158b62c1 --- /dev/null +++ b/system/BasiliskII/files/BasiliskII.svg @@ -0,0 +1,106 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/system/BasiliskII/files/fix-64bit-check.diff b/system/BasiliskII/files/fix-64bit-check.diff new file mode 100644 index 000000000000..e5b92cd9c01e --- /dev/null +++ b/system/BasiliskII/files/fix-64bit-check.diff @@ -0,0 +1,25 @@ +--- BasiliskII-20120218/src/Unix/configure.ac.orig 2012-02-24 10:18:59.744000107 +0100 ++++ BasiliskII-20120218/src/Unix/configure.ac 2012-02-24 10:19:10.334991387 +0100 +@@ -110,22 +110,6 @@ + x86_64* ) HAVE_X86_64=yes;; + esac + +-dnl Check if we should really be assuming x86_64 even if we detected HAVE_I386 above. +-if [[ "x$HAVE_I386" = "xyes" ]]; then +- AC_TRY_RUN([ +- int main(void) { +- #if defined(__x86_64__) +- return 0; +- #else +- return 1; +- #endif +- } +- ], [ +- HAVE_I386=no +- HAVE_X86_64=yes +- ]) +-fi +- + dnl Checks for programs. + AC_PROG_CC + AC_PROG_CC_C_O diff --git a/system/BasiliskII/slack-desc b/system/BasiliskII/slack-desc new file mode 100644 index 000000000000..8324be383a87 --- /dev/null +++ b/system/BasiliskII/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +BasiliskII: BasiliskII (68k Macintosh Emulator) +BasiliskII: +BasiliskII: Basilisk II is an Open Source 68k Macintosh emulator. +BasiliskII: It allows you to run 68k MacOS software on your computer, however +BasiliskII: you still need a copy of MacOS and a Macintosh ROM image to use it. +BasiliskII: +BasiliskII: homepage: http://basilisk.cebix.net/ +BasiliskII: +BasiliskII: +BasiliskII: +BasiliskII: -- cgit v1.2.3