diff --git a/media-sound/sfxr/additional-files/sfxr.rdef.in b/media-sound/sfxr/additional-files/sfxr.rdef.in new file mode 100644 index 000000000..66c2e7628 --- /dev/null +++ b/media-sound/sfxr/additional-files/sfxr.rdef.in @@ -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@"; diff --git a/media-sound/sfxr/sfxr-1.2.1.recipe b/media-sound/sfxr/sfxr-1.2.1.recipe new file mode 100644 index 000000000..796cb5f73 --- /dev/null +++ b/media-sound/sfxr/sfxr-1.2.1.recipe @@ -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 +}