mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
121 lines
3.0 KiB
Bash
121 lines
3.0 KiB
Bash
SUMMARY="Emulator for running DOS programs under Haiku"
|
|
DESCRIPTION="Dosemu can run programs directly in the Terminal and allow you to capture standard \
|
|
input and output directly."
|
|
HOMEPAGE="https://dosemu2.github.io/dosemu2"
|
|
COPYRIGHT="2025 Stas Sergeev and other developers"
|
|
LICENSE="GNU GPL v2"
|
|
SOURCE_URI="https://github.com/dosemu2/dosemu2/archive/851953056a3b5efa1ebda72b712aec76c91dc0a5.tar.gz"
|
|
SOURCE_DIR="dosemu2-851953056a3b5efa1ebda72b712aec76c91dc0a5"
|
|
CHECKSUM_SHA256="78a48b0fc332f74ff9fbc07643d24a7370a237f8ecd776847771e82df82e5eb4"
|
|
PATCHES="dosemu-$portVersion.patchset"
|
|
REVISION="9"
|
|
ADDITIONAL_FILES="dosemu.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
dosemu$secondaryArchSuffix = $portVersion
|
|
cmd:dosemu
|
|
cmd:mkfatimage16
|
|
lib:libdosemu2$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libdjdev64$secondaryArchSuffix
|
|
lib:libdjstub64$secondaryArchSuffix
|
|
lib:libfdldr$secondaryArchSuffix
|
|
lib:libfdpp$secondaryArchSuffix
|
|
lib:libslang$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
dosemu${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libdosemu2$secondaryArchSuffix
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
dosemu$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
PROVIDES_sdl="
|
|
dosemu${secondaryArchSuffix}_sdl = $portVersion
|
|
"
|
|
|
|
REQUIRES_sdl="
|
|
haiku$secondaryArchSuffix
|
|
dosemu$secondaryArchSuffix == $portVersion base
|
|
lib:libfontconfig$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libsdl2_2.0$secondaryArchSuffix
|
|
lib:libsdl2_ttf_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="settings/dosemu/dosemu.conf auto-merge"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
dj64$secondaryArchSuffix
|
|
devel:libfdpp$secondaryArchSuffix
|
|
devel:libfontconfig$secondaryArchSuffix
|
|
devel:libsdl2$secondaryArchSuffix
|
|
devel:libsdl2_ttf$secondaryArchSuffix
|
|
devel:libslang$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:bison
|
|
cmd:flex
|
|
cmd:gawk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -d~ -f1 `"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
"$portDir"/additional-files/dosemu.rdef.in > dosemu.rdef
|
|
|
|
./autogen.sh
|
|
export CFLAGS="-O2 -DMAP_32BIT=0"
|
|
runConfigure ./default-configure --disable-searpc --enable-cpuemu-jit
|
|
make $jobArgs OBJ_DIR=objects
|
|
|
|
addResourcesToBinaries dosemu.rdef 2.0-pre9/bin/dosemu2.bin
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLib libdosemu2
|
|
|
|
# Remove desktop file and bitmap icon
|
|
rm -rf $dataDir/applications/
|
|
rm -rf $dataDir/dosemu/icons
|
|
rm -rf $libDir/sysusers.d
|
|
|
|
addAppDeskbarSymlink $binDir/dosemu
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
packageEntries sdl \
|
|
$libDir/dosemu/libplugin_sdl.so \
|
|
$dataDir/fonts/oldschool \
|
|
$dataDir/deskbar
|
|
}
|