mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
76 lines
1.7 KiB
Bash
76 lines
1.7 KiB
Bash
SUMMARY="The open-source IA-32 emulator"
|
|
DESCRIPTION="Bochs IA-32 Emulator provides a virtual PC that can run operating systems such as Windows, Linux, and BSD"
|
|
HOMEPAGE="http://bochs.sourceforge.net/"
|
|
COPYRIGHT="2001-2017 The Bochs Project"
|
|
LICENSE="GNU LGPL v2.1
|
|
Bochs"
|
|
REVISION="3"
|
|
SOURCE_URI="https://downloads.sourceforge.net/bochs/bochs-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ee5b677fd9b1b9f484b5aeb4614f43df21993088c0c0571187f93acb0866e98c"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
bochs$secondaryArchSuffix = $portVersion
|
|
cmd:bochs$secondaryArchSuffix = $portVersion
|
|
cmd:bximage$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libreadline$secondaryArchSuffix
|
|
lib:libsdl$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
REQUIRES+="
|
|
lib:libgfortran$secondaryArchSuffix
|
|
"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libreadline$secondaryArchSuffix
|
|
devel:libsdl$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
BUILD_REQUIRES+="
|
|
devel:libgfortran$secondaryArchSuffix
|
|
"
|
|
fi
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gzip
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:tar
|
|
"
|
|
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
|
|
BUILD_PREREQUIRES+="
|
|
cmd:gfortran$secondaryArchSuffix
|
|
"
|
|
fi
|
|
|
|
defineDebugInfoPackage bochs$secondaryArchSuffix \
|
|
"$binDir"/bochs \
|
|
"$binDir"/bximage
|
|
|
|
BUILD()
|
|
{
|
|
if [ $effectiveTargetArchitecture == x86_64 ]; then
|
|
GCC5FLAGS="--enable-x86-64 --enable-smp"
|
|
fi
|
|
|
|
LIBS=-lnetwork runConfigure ./configure \
|
|
--with-sdl \
|
|
$GCC5FLAGS
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|