mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
165 lines
5.3 KiB
Bash
165 lines
5.3 KiB
Bash
SUMMARY="A CD/DVD/Blu-ray premastering and recording software"
|
|
DESCRIPTION="cdrtools is a set of command line programs suitable for creating \
|
|
and recording file system images to CD, DVD and Blu-ray media.
|
|
|
|
The suite includes the following programs:
|
|
- cdrecord: A CD/DVD/BD recording program
|
|
- readcd: A program to read CD/DVD/BD media with CD-clone features
|
|
- cdda2wav: The most evolved CD-audio extraction program with paranoia support
|
|
- mkisofs: A program to create hybrid ISO9660/JOLIET/HFS filesystems with \
|
|
optional Rock Ridge attributes
|
|
- isodebug: A program to print mkisofs debug information from media
|
|
- isodump: A program to dump ISO-9660 media
|
|
- isoinfo: A program to analyse/verify ISO/9660/Joliet/Rock-Ridge Filesystems
|
|
- isovfy: A program to verify the ISO-9660 structures
|
|
- rscsi: A Remote SCSI enabling daemon"
|
|
HOMEPAGE="http://cdrecord.org/"
|
|
COPYRIGHT="1995-2016 Joerg Schilling (cdrecord, readcd)
|
|
1993-2004,2015,2017 Heiko Eißfeldt, 2004-2017 Joerg Schilling (cdda2wav)
|
|
1993-1997 Eric Youngdale, 1997-2017 Joerg Schilling, 1997-2002 James \
|
|
Pearson, 2006 HELIOS Software GmbH (mkisofs)"
|
|
LICENSE="GNU GPL v2
|
|
CDDL v1"
|
|
REVISION="1"
|
|
SOURCE_URI="http://downloads.sf.net/cdrtools/cdrtools-${portVersion/\~/}.tar.bz2"
|
|
CHECKSUM_SHA256="aa28438f458ef3f314b79f2029db27679dae1d5ffe1569b6de57742511915e81"
|
|
SOURCE_DIR="cdrtools-${portVersion%\~*}"
|
|
PATCHES="
|
|
cdrtools-${portVersion%\~*}-Defaults.haiku.patch
|
|
cdrtools-${portVersion%\~*}-scsi-beos.c.patch
|
|
"
|
|
|
|
ARCHITECTURES="all ?arm ?ppc"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/cdrecord keep-old
|
|
settings/rscsi keep-old
|
|
"
|
|
|
|
PROVIDES="
|
|
cdrtools$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:btcflash$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:cdda2mp3$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:cdda2ogg$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:cdda2wav$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:cdrecord$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:devdump$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:isodebug$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:isodump$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:isoinfo$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:isovfy$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:mkhybrid$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:mkisofs$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:readcd$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:rscsi$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:scgcheck$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:scgskeleton$secondaryArchSuffix = $portVersion compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
cdrtools${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libcdrdeflt$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libdeflt$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libedc_ecc$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libedc_ecc_dec$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libfile$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libfind$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libhfs$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libmdigest$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libparanoia$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:librscg$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libscg$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libscgcmd$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libschily$secondaryArchSuffix = $portVersion compat >= 3
|
|
devel:libsiconv$secondaryArchSuffix = $portVersion compat >= 3
|
|
"
|
|
REQUIRES_devel="
|
|
cdrtools$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
patchInsdir()
|
|
{
|
|
# Usage: patchInsdir <oldDir> <newDir> <file> ...
|
|
oldDir=$1
|
|
newDir=$2
|
|
shift 2
|
|
|
|
sed -i "s,^INSDIR=\s*$oldDir,INSDIR= $newDir," $@
|
|
}
|
|
|
|
PATCH()
|
|
{
|
|
allMakefiles="$(find . -name Makefile\* -o -name \*.mk)"
|
|
|
|
patchInsdir bin $relativeBinDir $allMakefiles
|
|
patchInsdir sbin $relativeBinDir $allMakefiles
|
|
patchInsdir share/doc $relativeDocDir $allMakefiles
|
|
patchInsdir include $relativeIncludeDir $allMakefiles
|
|
patchInsdir lib $relativeLibDir $allMakefiles
|
|
patchInsdir etc/default settings $allMakefiles
|
|
|
|
sed -i "s,/etc/default,$sysconfDir," \
|
|
btcflash/btcflash.1 \
|
|
cdda2wav/cdda2mp3 \
|
|
cdda2wav/cdda2ogg \
|
|
cdda2wav/cdda2*.1 \
|
|
cdrecord/COPYING \
|
|
cdrecord/README.* \
|
|
cdrecord/auinfo.c \
|
|
cdrecord/cdrecord.1 \
|
|
doc/*.man \
|
|
doc/*.ps \
|
|
include/schily/deflts.h \
|
|
libcdrdeflt/cdrdeflt.c \
|
|
libcdrdeflt/cdrdeflt.h \
|
|
mkisofs/diag/isoinfo.8 \
|
|
readcd/readcd.1 \
|
|
rscsi/rscsi.1 \
|
|
rscsi/rscsi.c \
|
|
scgskeleton/scgskeleton.1
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
# not multi-job safe
|
|
make GMAKE_NOWARN=true INS_BASE=$prefix INS_RBASE=$prefix LDPATH="" \
|
|
RUNPATH="" DEFMANBASE=$relativeDocumentationDir
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make GMAKE_NOWARN=true INS_BASE=$prefix INS_RBASE=$prefix LDPATH="" \
|
|
RUNPATH="" DEFMANBASE=$relativeDocumentationDir install
|
|
|
|
# The whole lib folder only contains static libraries (even in several
|
|
# subdirectories).
|
|
mkdir -p $developLibDir
|
|
mv $libDir/lib* $libDir/profiled $developLibDir
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir/man3
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make tests
|
|
}
|