mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
tuxpaint_config, add RC version 0.0.26 (#12097)
This commit is contained in:
89
media-gfx/tuxpaint-config/tuxpaint_config-0.0.26~rc1.recipe
Normal file
89
media-gfx/tuxpaint-config/tuxpaint_config-0.0.26~rc1.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="A configuration tool for Tux Paint"
|
||||
DESCRIPTION="The Tux Paint Configuration Tool (tuxpaint-config) is a graphical configuration \
|
||||
program for Tux Paint, a drawing program for young children. It can be used to create a \
|
||||
configuration file for Tux Paint, rather than doing it manually by editing the configuration file \
|
||||
in a text edtior."
|
||||
HOMEPAGE="https://www.tuxpaint.org/"
|
||||
COPYRIGHT="2002-2025 Bill Kendrick and others"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://sourceforge.net/projects/tuxpaint/files/tuxpaint-config/${portVersion/\~rc1/-beta}/tuxpaint-config-${portVersion/\~/-}.tar.gz"
|
||||
CHECKSUM_SHA256="e80acf4f3bb78fa7dc39d1ea9f90b8447f709a18724e35b5a5f9ea4eb45b87e1"
|
||||
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:libfontconfig$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libharfbuzz$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libpango_1.0$secondaryArchSuffix
|
||||
lib:libpangoft2_1.0$secondaryArchSuffix
|
||||
lib:libpaper$secondaryArchSuffix
|
||||
lib:libunibreak$secondaryArchSuffix
|
||||
lib:libX11$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libfltk$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libpangoft2_1.0$secondaryArchSuffix
|
||||
devel:libpaper$secondaryArchSuffix >= 2
|
||||
devel:libunibreak$secondaryArchSuffix
|
||||
devel:libX11$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:msgfmt
|
||||
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/{include,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
|
||||
|
||||
# Add a symlink to the Desktop applets directory in Deskbar
|
||||
addPreferencesDeskbarSymlink $prefix/bin/tuxpaint-config "Tux Paint Config"
|
||||
}
|
||||
Reference in New Issue
Block a user