mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
fre:ac: New recipe for fre:ac 1.1 alpha. (#3197)
This commit is contained in:
69
media-sound/freac/additional-files/freac.rdef.in
Normal file
69
media-sound/freac/additional-files/freac.rdef.in
Normal file
@@ -0,0 +1,69 @@
|
||||
resource app_signature "application/x-vnd.freac-freac";
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_ALPHA,
|
||||
internal = 0,
|
||||
|
||||
short_info = "fre:ac - free audio converter",
|
||||
long_info = "free audio converter to rip CDs and convert various file types."
|
||||
};
|
||||
|
||||
resource large_icon array {
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8E8DFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAE8D8D8766668DB4"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB48D8D8D86868686868693B4"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF128D8D8D8D8D8D8D8D8D8DB3B4"
|
||||
$"FFFFFFFFFFFFFFFF101214141412FFFFFFFFFF8E8D9393939393939393B35FB5"
|
||||
$"FFFFFFFFFFFF14181B1C1D1E1E1E1E1C16FFFF8E93B3B3B3B3B3B37EDCD5D5FF"
|
||||
$"FFFFFFFF13611B1D1D1E1E1F1F1F1F1F1F1E168EB35FB3DCD4D5D5FFFFFFFFFF"
|
||||
$"FFFFFF15611C1C1C1D1D1E1F1F1F1F1F1F1F1F87B3D508FFFFFFFFFFFFFFFFFF"
|
||||
$"FFFF14611B1B1C1C1C1D1D1F1F1F1F1F1F1F1F87B310FFFFFFFFFFFFFFFFFFFF"
|
||||
$"FF10611B1B1B1D1C1C1C1D1E1F1F1F1F1F1F1F87B31B10FFFFFFFFFFFFFFFFFF"
|
||||
$"FF17611A191616181B1A1C1E1F1F1F1F1F1F1F87931D1BFFFFFFFFFFFFFFFFFF"
|
||||
$"FF1A1B1616181818181A1A181C1C1E1F1F1F1F878D1D1F16FFFFFFFFFFFFFFFF"
|
||||
$"1216181517171717181717151F1F1E1C1E1D1D678D1D1F1EFFFFFFFFFFFFFFFF"
|
||||
$"14188716161213121587131715181C878786878D8D1E1F1F14FFFFFFFFFFFFFF"
|
||||
$"1116871616181C1987151312AF0A87606066668D931D1F1F18FFFFFFFFFFFFFF"
|
||||
$"11138787181A1C1A181614AFFFAD666666868C8D931A1E1E1BFFFFFFFFFFFFFF"
|
||||
$"11181317611A1B1A1A181310FF938D8C6666666C8D181D1C1BFFFFFFFFFFFFFF"
|
||||
$"FF1210151A1B1B1B1A160E1061878C666666606087611C1B1AFFFFFFFFFFFFFF"
|
||||
$"FF161C1113181A1914AE611B1A1A611C1B401C87171B1B1B61FFFFFFFFFFFFFF"
|
||||
$"FF0F1E111212AE0F130F1C18611C1B1B191614181A1A1A1A15FFFFFFFFFFFFFF"
|
||||
$"FFFF161E1E1E12171F61181A1B611A1B18151A1A1A61611B0FFFFFFFFFFFFFFF"
|
||||
$"FFFFFF1A1E1E1E1F1F1B171A141412181516616161196117FFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFF1A1E1E1F1E138716181C18871310161818181AFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFF181F1F1F1A14148718161312131818191A0EFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFF121D1F171087141213870F10181A18AFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFF121A1BAE121412AE161A1910FFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFF0C0B100B0E0E0F0CFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
};
|
||||
|
||||
resource mini_icon array {
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFFFFFFFFFFFFFFFF8E87AE"
|
||||
$"FFFFFFFFFFFFFFFFFFFFAE8D8D868CB4"
|
||||
$"FFFFFFFF12151411FFFF8D939393B3D4"
|
||||
$"FFFF141B1D1F1F1F1D877EB4D5FFFFFF"
|
||||
$"FF141B1C1C1E1F1F1F608EFFFFFFFFFF"
|
||||
$"121918181A1B1E1F1F606013FFFFFFFF"
|
||||
$"1517161616161A1B60871B1EFFFFFFFF"
|
||||
$"1387181A1711AE86668D19FFFFFFFFFF"
|
||||
$"1114191B191287666666181C10FFFFFF"
|
||||
$"FF17151514191B1B19181A1AFFFFFFFF"
|
||||
$"FFFF1E1C1C18181816191916FFFFFFFF"
|
||||
$"FFFF101E1D141715121818FFFFFFFFFF"
|
||||
$"FFFFFFFF141311111413FFFFFFFFFFFF"
|
||||
$"FFFFFFFFFFFF0C0CFFFFFFFFFFFFFFFF"
|
||||
};
|
||||
117
media-sound/freac/freac-1.1~alpha20180913.recipe
Normal file
117
media-sound/freac/freac-1.1~alpha20180913.recipe
Normal file
@@ -0,0 +1,117 @@
|
||||
SUMMARY="A free and open source audio converter"
|
||||
DESCRIPTION="fre:ac is a free and open source audio converter. It comes with \
|
||||
an integrated tag editor and converts between various formats.
|
||||
|
||||
Features include:
|
||||
|
||||
- Support for MP3, MP4/AAC, Opus, FLAC and other formats
|
||||
- Integrated player and tag editor
|
||||
- Support for playlists, cue sheets and chapters
|
||||
- Fast, multi-threaded conversion engine
|
||||
- Ability to convert to multiple formats at once
|
||||
- Can verify lossless input and output files
|
||||
- Support for freedb/CDDB queries and submits
|
||||
- Support for using command line codecs
|
||||
- User interface available in 40+ languages
|
||||
- Optional command line interface"
|
||||
HOMEPAGE="https://freac.org/"
|
||||
COPYRIGHT="2001-2018 Robert Kausch"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/enzo1982/freac/releases/download/v${portVersion/\~alpha/-alpha-}/freac-${portVersion/\~alpha/-alpha-}.tar.gz"
|
||||
CHECKSUM_SHA256="5ca1f3b8f548815ced94e8df3b0b736d75879816939661ba1f1baa94fd36f168"
|
||||
SOURCE_DIR="freac-${portVersion/\~alpha/-alpha-}"
|
||||
PATCHES="freac-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="freac.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
fi
|
||||
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
freac$secondaryArchSuffix = $portVersion
|
||||
app:freac = $portVersion
|
||||
cmd:freaccmd = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:ffmpeg
|
||||
cmd:mpcdec
|
||||
cmd:mpcenc
|
||||
cmd:wavpack
|
||||
cmd:wvunpack
|
||||
lib:libsmooth_0.8.74$secondaryArchSuffix >= 0
|
||||
lib:libboca_1.0$secondaryArchSuffix >= 0
|
||||
lib:libcdio$secondaryArchSuffix
|
||||
lib:libcdio_cdda$secondaryArchSuffix
|
||||
lib:libcdio_paranoia$secondaryArchSuffix
|
||||
lib:libfaac$secondaryArchSuffix
|
||||
lib:libfaad$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libmp3lame$secondaryArchSuffix
|
||||
lib:libmp4v2$secondaryArchSuffix
|
||||
lib:libmpg123$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libopus$secondaryArchSuffix
|
||||
lib:librubberband$secondaryArchSuffix
|
||||
lib:libsamplerate$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
lib:libspeex$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libboca_1.0$secondaryArchSuffix >= 0
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
sed -i \
|
||||
-e "s|/lib/freac|/$relativeLibDir/freac|" \
|
||||
src/loader/console.cpp
|
||||
sed -i \
|
||||
-e "s|/lib/freac|/$relativeLibDir/freac|" \
|
||||
src/loader/gui.cpp
|
||||
fi
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make prefix="$prefix" bindir="$commandBinDir" libdir="$libDir" \
|
||||
includedir="$includeDir" datadir="$dataDir" install
|
||||
|
||||
mkdir -p "$appsDir"
|
||||
mv "$commandBinDir"/freac "$appsDir"
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -d~ -f1`"
|
||||
local MINOR="0"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
"$portDir"/additional-files/freac.rdef.in > freac.rdef
|
||||
|
||||
addResourcesToBinaries freac.rdef "$appsDir"/freac
|
||||
addAppDeskbarSymlink "$appsDir"/freac fre:ac
|
||||
}
|
||||
29
media-sound/freac/patches/freac-1.1~alpha20180913.patchset
Normal file
29
media-sound/freac/patches/freac-1.1~alpha20180913.patchset
Normal file
@@ -0,0 +1,29 @@
|
||||
From d6d18041d5d98dcb85e104c4516324571338aa74 Mon Sep 17 00:00:00 2001
|
||||
From: Robert Kausch <robert.kausch@freac.org>
|
||||
Date: Sun, 7 Oct 2018 17:41:10 +0000
|
||||
Subject: Fix for Haiku packaging.
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 2706bf5..d5ceb4f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -241,15 +241,9 @@ endif
|
||||
|
||||
$(EXENAME): $(EXEOBJECTS) $(RESOBJECTS)
|
||||
$(LD) $(EXEOBJECTS) $(RESOBJECTS) $(LDOPTS) $(LDOPTS_GUI) $(LDFLAGS) -o $@
|
||||
-ifeq ($(BUILD_HAIKU),True)
|
||||
- xres -o $(EXENAME) resources/binary/freac.rsrc
|
||||
-endif
|
||||
|
||||
$(CMDNAME): $(CMDOBJECTS) $(RESOBJECTS)
|
||||
$(LD) $(CMDOBJECTS) $(RESOBJECTS) $(LDOPTS) $(LDOPTS_CMD) $(LDFLAGS) -o $@
|
||||
-ifeq ($(BUILD_HAIKU),True)
|
||||
- xres -o $(CMDNAME) resources/binary/freac.rsrc
|
||||
-endif
|
||||
|
||||
$(OBJECTS)/%.o: $(SRC)/%.cpp
|
||||
$(CXX) $(CCOPTS) $(CXXFLAGS) $< -o $@
|
||||
--
|
||||
2.19.0
|
||||
|
||||
Reference in New Issue
Block a user