fizmo, playinteractive fiction, also known as textadventures, new recipe (#689)

This commit is contained in:
Begasus
2016-07-22 18:44:23 +02:00
committed by waddlesplash
parent 618424924d
commit ff31d5b059
2 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
SUMMARY="A Z-Machine interpreter development library"
DESCRIPTION="That means it allows you to play interactive fiction, also \
known as textadventures, which were implemented either by Infocom or created \
using the Inform compiler on a terminal, or to develop your own interactive \
fiction front end in C or any C-related language like C++ or Objective-C."
HOMEPAGE="https://christoph-ender.de/fizmo/"
COPYRIGHT="20092014 Christoph Ender"
LICENSE="Fizmo"
REVISION="1"
SOURCE_URI="https://christoph-ender.de/fizmo/source/fizmo-$portVersion.tar.gz"
CHECKSUM_SHA256="0e3561492ece58ff60eba768f3b2cfa943ba111736b0f63b775e3face590462b"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
fizmo$secondaryArchSuffix = $portVersion
cmd:fizmo_console$secondaryArchSuffix = $portVersion
cmd:fizmo_ncursesw$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libSDL2$secondaryArchSuffix
lib:libsndfile$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libSDL2$secondaryArchSuffix
devel:libsndfile$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
PATCH()
{
sed -i "s,-lm,," configure
}
BUILD()
{
runConfigure ./configure --disable-x11 \
--with-jpeg-includedir=$(finddir B_SYSTEM_HEADERS_DIRECTORY)/${secondaryArchSubDir} \
--with-ncurses-includedir=$(finddir B_SYSTEM_HEADERS_DIRECTORY)/${secondaryArchSubDir}
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,51 @@
Copyright (c) 2009-2015 Christoph Ender
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---
This package includes software written by other authors:
libfizmo includes the Mersenne Twister random number generator, available
at http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html.
This is available via a BSD license, which is stored in the source file
"libfizmo/src/interpreter/mt19937ar.c".
libfizmo includes hyphenation patterns provided by the hyph-utf8 project
at http://www.ctan.org/tex-archive/language/hyph-utf8/. For every file's
detailed respective copyright information, please refer to the description
stored at the top of the corresponding file:
- "src/locales/en_US/patterns.txt" from hyph-utf8's "hyph-en-us.tex".
- "src/locales/de_DE/patterns.txt" from hyph-utf8's "hyph-de-1996.tex".
- "src/locales/fr_FR/patterns.txt" from hyph-utf8's "hyph-fr.tex".
libdrilbo includes code from the pix2gif utility by Mark Howell in ztools,
which are available from http://www.ifarchive.org/indexes/if-
archiveXinfocomXtoolsXztools.html. The copyright status of Mark Howell's
work is unknown. Since he released the software for free and since it is
also used by multiple other projects it can also be distributed or used
freely, to the best of my knowledge.