openbsd-ports/audio/tracker/Makefile
jakemsr 56cbd2c6ca convert to sndio(7), which allows this port to be used with all
non-"isdn bullshit" audio devices OpenBSD currently (and most
likely ever will) supports.  sndio(7) doesn't support audioamd(4)
(which is an isdn device), but the audio(4) backend here didn't
support that device either.

tested on a 195 MHz r10k O2 extracting install tarballs +
'cvs co ports' + repeatedly compiling tracker in a loop +
'find /', all running simultaneously over the built-in mec0 NIC,
a zaurus with hw.setperf set to 0 + 'find /' running on the
console + tracker and an audio device monitoring program run
from an ssh session through a wi(4) pcmcia card, a 233MHz
Toshiba Tecra 8000 with wss(4), and various other machines.
2010-06-30 11:50:51 +00:00

58 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.26 2010/06/30 11:50:51 jakemsr Exp $
COMMENT= MOD player
DISTNAME= tracker-5.3
PKGNAME= ${DISTNAME}p1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.uni-trier.de/pub/unix/audio/tracker/
EXTRACT_SUFX= .tgz
MAINTAINER= Marc Espie <espie@openbsd.org>
# OpenBSD has a special exemption. Other BSD should contact me (Marc Espie)
# for redistribution on the CD.
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m sndio
WRKDIST= ${WRKDIR}/tracker
MAKE_FLAGS= MACHINE=openbsd CC=$(CC) INSTALL="$(INSTALL)" \
CFLAGS_openbsd='-O3 -funroll-loops -finline-functions ${COPTS}' \
LIBS_openbsd='-lm -lsndio' \
INST_BIN_OPT="-c -s -m $(BINMODE) -o $(BINOWN) -g $(BINGRP)" \
INST_MAN_OPT="-c -m 644 -o $(BINOWN) -g $(BINGRP)" \
COMPRESSION_FILE='$${DESTDIR}${SYSCONFDIR}/compression_methods' \
PREFIX='$${DESTDIR}/${TRUEPREFIX}'
NO_REGRESS= Yes
post-extract:
@mkdir -p ${WRKSRC}/Arch/OpenBSD
@cp files/{audio.c,config.h} ${WRKSRC}/Arch/OpenBSD
pre-install:
${INSTALL_DATA_DIR} ${DESTDIR}${SYSCONFDIR}
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tracker
@${INSTALL_DATA_DIR} ${PREFIX}/lib/tracker
@cd ${WRKSRC}/Docs && \
makeinfo --no-split tracker.texinfo -o tracker.info && \
$(INSTALL_MAN) tracker.info ${PREFIX}/info && \
rm -f tracker.info *.orig
cp -R ${WRKSRC}/Docs/* ${PREFIX}/share/doc/tracker
${INSTALL_DATA} ${WRKSRC}/Lib/compression_methods ${PREFIX}/lib/tracker/compression_methods.sample
# there is a small test module included. This target tests that
# - tracker correctly handles compressed files (only after install),
# - tracker doesn't crash on random files,
# - tracker plays some music.
test:
@cd ${WRKSRC} && ${SH} ${FILESDIR}/test.uu && tracker *
.include <bsd.port.mk>