mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
80 lines
2.5 KiB
Bash
80 lines
2.5 KiB
Bash
SUMMARY="A graphical tool for configurations of TuxPaint"
|
|
DESCRIPTION="Tux Paint is a free, award-winning drawing program for children \
|
|
ages 3 to 12 (for example, preschool and K-6). Tux Paint is used \
|
|
in schools and around the world as a computer literacy drawing activity. \
|
|
It combines an easy-to-use interface, fun sound effects, and an \
|
|
encouraging cartoon mascot who guides children as they use the program."
|
|
HOMEPAGE="http://www.tuxpaint.org/"
|
|
COPYRIGHT="2002-2023 Bill Kendrick and others"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://sourceforge.net/projects/tuxpaint/files/tuxpaint-config/0.0.21-beta/tuxpaint-config-${portVersion/\~/-}.tar.gz"
|
|
CHECKSUM_SHA256="b52bd643e8c93b855da491c6e40db840ee35d5af910aae40f4d0b1f68cf42b3b"
|
|
SOURCE_DIR="tuxpaint-config-${portVersion/\~/-}"
|
|
ADDITIONAL_FILES="tuxpaint_config.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
tuxpaint_config$secondaryArchSuffix = $portVersion
|
|
cmd:tuxpaint_config = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libfltk$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libpaper$secondaryArchSuffix
|
|
lib:libunibreak$secondaryArchSuffix
|
|
lib:libX11$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfltk$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libpaper$secondaryArchSuffix
|
|
devel:libunibreak$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
|
|
BUILD()
|
|
{
|
|
make haiku PREFIX=$prefix DATA_PREFIX=$dataDir DOC_PREFIX=$docDir \
|
|
MAN_PREFIX=$manDir LOCALE_PREFIX=$dataDir/locale
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make haiku PREFIX=$prefix DATA_PREFIX=$dataDir DOC_PREFIX=$docDir \
|
|
MAN_PREFIX=$manDir LOCALE_PREFIX=$dataDir/locale install
|
|
|
|
# remove not needed files
|
|
rm -rf $prefix/{share,X11R6}
|
|
rm -rf $dataDir/images
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
|
|
local APP_NAME="Tux Paint Config"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.newbreedsoftware-tuxpaint_config"
|
|
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/tuxpaint_config.rdef.in > tuxpaint_config.rdef
|
|
|
|
addResourcesToBinaries tuxpaint_config.rdef $prefix/bin/tuxpaint-config
|
|
|
|
addAppDeskbarSymlink $prefix/bin/tuxpaint-config "Tux Paint Config"
|
|
}
|