alternative from mk/jpeg.buildlink3.mk
This allows selection of an alternative jpeg library (namely the x86 MMX,
SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and
follows the current standard model for alternatives (fam, motif, fuse etc).
The mechanical edits were applied via the following script:
#!/bin/sh
for d in */*; do
[ -d "$d" ] || continue
for i in "$d/"Makefile* "$d/"*.mk; do
case "$i" in *.orig|*"*"*) continue;; esac
out="$d/x"
sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \
-e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \
< "$i" > "$out"
if cmp -s "$i" "$out"; then
rm -f "$out"
else
echo "Edited $i"
mv -f "$i" "$i.orig" && mv "$out" "$i"
fi
done
done
At some point, pkgsrc started setting a different MAKE_ENV in the
install phase than in the build phase. This caused scons to report that
"the build action changed", which caused scons to rebuild csound5 and
install it with a broken configuration.
This hack saves MAKE_ENV to a file in WRKDIR, then uses that file to set
the environment in the install phase.
sequencer.
Csound is a software synthesis package in the tradition of so-called
music-N languages, among which the best-known is Music V. It consists
of an orchestra- and score-driven executable, written in C for
portability. Since Csound is a computational language, it is highly
flexible and efficient; complexity is gained only at the expense of
computation time.
To do:
- fix pthread issues in csound5 (is breaking realtime audio)
- use options.mk framework for various modules
- enable portaudio module (requires audio/portaudio-devel)
- port portmidi to netbsd