mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
sfxr: add recipe for 1.2.1 (#7934)
This commit is contained in:
16
media-sound/sfxr/additional-files/sfxr.rdef.in
Normal file
16
media-sound/sfxr/additional-files/sfxr.rdef.in
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "sfxr",
|
||||
long_info = "Sound effect generator with SDL GUI"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
97
media-sound/sfxr/sfxr-1.2.1.recipe
Normal file
97
media-sound/sfxr/sfxr-1.2.1.recipe
Normal file
@@ -0,0 +1,97 @@
|
||||
SUMMARY="Sound effect generator with SDL GUI"
|
||||
DESCRIPTION="The original purpose was to provide a simple means of getting basic sound effects into \
|
||||
a game. The idea was that a person could just hit a few buttons in this application and get some \
|
||||
largely randomized effects that were custom in the sense that the user could accept/reject each \
|
||||
proposed sound."
|
||||
HOMEPAGE="http://www.drpetter.se/project_sfxr.html"
|
||||
COPYRIGHT="2007 Tomas Pettersson"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://www.drpetter.se/files/sfxr-sdl-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ca93be8964c92fe3a2c945640cd3e93c95ae7abe24290818f4fe7f6e5a7cd835"
|
||||
SOURCE_DIR="sfxr-sdl-${portVersion}"
|
||||
ADDITIONAL_FILES="sfxr.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
sfxr$secondaryArchSuffix = $portVersion
|
||||
app:sfxr
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libatk_1.0$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libcairo_gobject$secondaryArchSuffix
|
||||
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libgtk_3$secondaryArchSuffix
|
||||
lib:libharfbuzz$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libpango_1.0$secondaryArchSuffix
|
||||
lib:libpangocairo_1.0$secondaryArchSuffix
|
||||
lib:libSDL_1.2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libatk_1.0$secondaryArchSuffix
|
||||
devel:libcairo$secondaryArchSuffix
|
||||
devel:libcairo_gobject$secondaryArchSuffix
|
||||
devel:libgdk_pixbuf_2.0$secondaryArchSuffix
|
||||
devel:libgio_2.0$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgobject_2.0$secondaryArchSuffix
|
||||
devel:libgtk_3$secondaryArchSuffix
|
||||
devel:libharfbuzz$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libpango_1.0$secondaryArchSuffix
|
||||
devel:libpangocairo_1.0$secondaryArchSuffix
|
||||
devel:libSDL_1.2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i -e "s,/usr/share,$dataDir," main.cpp sdlkit.h
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $dataDir/sfxr
|
||||
cp -f *.tga *.bmp $dataDir/sfxr
|
||||
|
||||
mkdir -p $docDir
|
||||
cp -f readme.txt $docDir
|
||||
|
||||
mkdir -p $appsDir
|
||||
cp -f sfxr $appsDir
|
||||
|
||||
# Add Haiku resources
|
||||
local APP_SIGNATURE="application/x-vnd.sfxr-sdl"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/sfxr.rdef.in > sfxr.rdef
|
||||
|
||||
addResourcesToBinaries sfxr.rdef $appsDir/sfxr
|
||||
addAppDeskbarSymlink $appsDir/sfxr sfxr
|
||||
}
|
||||
Reference in New Issue
Block a user