Files
haikuports/dev-tex/pmx/pmx-3.0.0.recipe
Joachim Mairböck 9b4705a35a pmx: unbundle from texlive_core
The category is again an estimation because there is no separate package in Gentoo.
2024-09-02 21:16:24 +02:00

74 lines
1.7 KiB
Bash

SUMMARY="Preprocessor for MusiXTEX"
DESCRIPTION="PMX provides a preprocessor for MusiXTeX.
pmxab builds a TeX input file based on a .pmx input file in a much simpler language, making most \
of the layout decisions by itself. It has most of MusiXTeX's functionality, but it also permits \
in-line TeX to give access to virtually all of MusiXTeX. For proof-listening, pmxab will make a \
MIDI file of your score.
scor2prt is an auxiliary program that makes parts from a score."
HOMEPAGE="http://icking-music-archive.org/software/htdocs/index.html"
COPYRIGHT="Don Simons"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://mirrors.ctan.org/support/pmx/source/pmx-$portVersion.tar.gz"
CHECKSUM_SHA256="7695db503ea4eef96c313c737bf5dc471526429cbeef091f1ac542a88408eb82"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
pmx$secondaryArchSuffix = $portVersion
cmd:pmxab = $portVersion
cmd:scor2prt
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgfortran$secondaryArchSuffix
lib:libquadmath$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
#cmd:awk
cmd:gcc$secondaryArchSuffix # missing requirement of gfortran?
cmd:gfortran$secondaryArchSuffix
#cmd:make
"
TEST_REQUIRES="
cmd:diff
"
defineDebugInfoPackage pmx$secondaryArchSuffix \
$prefix/bin/pmxab \
$prefix/bin/scor2prt
BUILD()
{
# there is no build-system for the direct fortran build
gfortran -g -O2 -o pmxab pmx${portVersion//./}.for
gfortran -g -O2 -o scor2prt scor2prt.for
#runConfigure --omit-dirs "binDir" ./configure \
# --bindir=$prefix/bin
#make $jobArgs
}
INSTALL()
{
mkdir -p $prefix/bin
cp pmxab scor2prt $prefix/bin
#make install
}
TEST()
{
srcdir=. test_src=tests ./pmx.test
#make check
}