2005-12-23 10:08:37 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2005/12/23 15:08:37 espie Exp $
|
1998-05-21 21:00:50 -04:00
|
|
|
|
2003-04-10 14:08:56 -04:00
|
|
|
COMMENT= "MOD player"
|
1999-09-06 14:46:47 -04:00
|
|
|
DISTNAME= tracker-5.3
|
2005-12-23 10:08:37 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
1999-09-06 14:46:47 -04:00
|
|
|
CATEGORIES= audio
|
2002-10-24 18:20:03 -04:00
|
|
|
|
1999-09-06 14:46:47 -04:00
|
|
|
MASTER_SITES= ftp://ftp.uni-trier.de/pub/unix/audio/tracker/
|
|
|
|
EXTRACT_SUFX= .tgz
|
1998-10-02 13:19:44 -04:00
|
|
|
|
2000-10-22 10:02:46 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
1998-10-06 20:22:52 -04:00
|
|
|
|
2000-03-10 20:08:42 -05: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
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB= c m
|
1998-10-06 20:22:52 -04:00
|
|
|
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/tracker
|
1999-09-06 14:46:47 -04:00
|
|
|
MAKE_FLAGS= MACHINE=openbsd CC=$(CC) INSTALL="$(INSTALL)" \
|
2001-04-09 20:51:59 -04:00
|
|
|
CFLAGS_openbsd='-O3 -funroll-loops -finline-functions ${COPTS}' \
|
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)" \
|
2003-05-12 14:02:44 -04:00
|
|
|
COMPRESSION_FILE='$${DESTDIR}${SYSCONFDIR}/compression_methods' \
|
2005-12-23 10:08:37 -05:00
|
|
|
PREFIX='$${DESTDIR}/${TRUEPREFIX}'
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
2000-03-10 20:08:42 -05:00
|
|
|
|
2002-10-24 18:20:03 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1998-05-21 21:00:50 -04:00
|
|
|
|
1998-10-02 13:19:44 -04:00
|
|
|
post-extract:
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${WRKSRC}/Arch/OpenBSD
|
2001-04-09 20:51:59 -04:00
|
|
|
@cp files/{audio.c,config.h} ${WRKSRC}/Arch/OpenBSD
|
1998-10-02 13:19:44 -04:00
|
|
|
|
2003-05-12 14:02:44 -04:00
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${SYSCONFDIR}
|
|
|
|
|
1998-05-21 21:00:50 -04:00
|
|
|
post-install:
|
2000-02-11 19:43:57 -05:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tracker
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/lib/tracker
|
1999-09-06 14:46:47 -04:00
|
|
|
@cd ${WRKSRC}/Docs && \
|
2001-04-09 20:51:59 -04:00
|
|
|
makeinfo --no-split tracker.texinfo -o tracker.info && \
|
1998-10-02 13:19:44 -04:00
|
|
|
$(INSTALL_MAN) tracker.info ${PREFIX}/info && \
|
2001-04-09 20:51:59 -04:00
|
|
|
rm -f tracker.info *.orig
|
2000-02-10 20:09:59 -05:00
|
|
|
cp -R ${WRKSRC}/Docs/* ${PREFIX}/share/doc/tracker
|
2001-04-09 20:51:59 -04:00
|
|
|
${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:
|
1999-09-06 14:46:47 -04:00
|
|
|
@cd ${WRKSRC} && ${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>
|