mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
80 lines
2.2 KiB
Bash
80 lines
2.2 KiB
Bash
SUMMARY="Basic to C converter"
|
|
DESCRIPTION="The name 'BaCon' is an acronym for 'Basic Converter'. \
|
|
It is a free BASIC to C translator for Unix-based systems, which \
|
|
runs on most Unix/Linux/BSD platforms, including MacOSX. It intends \
|
|
to be a programming aid in creating tools which can be compiled on \
|
|
different platforms (both 32bit and 64bit), while trying to revive \
|
|
the days of the good old BASIC."
|
|
HOMEPAGE="https://chiselapp.com/user/bacon/repository/bacon/home"
|
|
COPYRIGHT="2009-2025 Peter van Eerten"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.basic-converter.org/stable/bacon-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7f0a6dd3a3d465dd414f165a319838f0691d44157bd034845694fa32649ab97b"
|
|
ADDITIONAL_FILES="bacon.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
bacon$secondaryArchSuffix = $portVersion
|
|
cmd:bacon$commandSuffix = $portVersion
|
|
cmd:bacon.sh$commandSuffix = $portVersion
|
|
cmd:bacongui_fltk$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libfltk$secondaryArchSuffix
|
|
lib:libfltk_images$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfltk$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:indent
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="0"
|
|
local APP_NAME="BaConGUI FLTK"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.bacon"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
-e "s|@APP_NAME@|$APP_NAME|" \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
$portDir/additional-files/bacon.rdef.in > bacon.rdef
|
|
|
|
addResourcesToBinaries bacon.rdef $commandBinDir/bacongui-fltk
|
|
addAppDeskbarSymlink $commandBinDir/bacongui-fltk "BaConGUI FLTK"
|
|
}
|