openbsd-ports/audio/tracker/Makefile

59 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.29 2011/10/21 17:43:30 espie Exp $
1998-05-21 21:00:50 -04:00
COMMENT = MOD player
DISTNAME = tracker-5.3
REVISION = 1
CATEGORIES = audio
2002-10-24 18:20:03 -04:00
MASTER_SITES = ftp://ftp.uni-trier.de/pub/unix/audio/tracker/
EXTRACT_SUFX = .tgz
MAINTAINER = Marc Espie <espie@openbsd.org>
1998-10-06 20:22:52 -04:00
# 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
2010-09-05 20:04:28 -04:00
WANTLIB = c m sndio
1998-10-06 20:22:52 -04:00
WRKDIST = ${WRKDIR}/tracker
MAKE_FLAGS = MACHINE=openbsd CC=$(CC) INSTALL="$(INSTALL)" \
CFLAGS_openbsd='-O3 -funroll-loops -finline-functions ${COPTS}' \
LIBS_openbsd='-lm -lsndio' \
1998-05-21 21:00:50 -04:00
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
2002-10-24 18:20:03 -04:00
1998-05-21 21:00:50 -04:00
post-extract:
@mkdir -p ${WRKSRC}/Arch/OpenBSD
@cp files/{audio.c,config.h} ${WRKSRC}/Arch/OpenBSD
pre-install:
${INSTALL_DATA_DIR} ${DESTDIR}${SYSCONFDIR}
1998-05-21 21:00:50 -04:00
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
1998-05-21 21:00:50 -04:00
1998-10-10 09:43:04 -04:00
# 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} && /bin/sh ${FILESDIR}/test.uu && tracker *
1998-10-10 09:43:04 -04:00
1998-05-21 21:00:50 -04:00
.include <bsd.port.mk>