pkgsrc/audio/mt-daapd/Makefile
adrianp e122ded917 mt-daapd is a program which acts as an iTunes (DAAP) server for Linux
and other POSIX unixes. It may eventually support Win32 as well.

Some random features that it supports:
Supports the Roku SoundBridge (query/browse/index support)
Supports periodic rescans of the database
Can advertise shoutcast streams
Supports password-protected shares
Is web-configurable and managable
Support dynamic playlists, like iTunes "Smart playlists"
Probably other things I've forgotten

All is not perfect, however. Currently, there are several drawbacks to it:
database is indexed by inode, so all music must be on one filesystem
browse by artist is slow on Roku, times out (with large databases ~10K songs)
Probably other things I've forgotten
2006-10-20 20:28:28 +00:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2006/10/20 20:28:28 adrianp Exp $
DISTNAME= mt-daapd-0.2.4
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mt-daapd/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.mt-daapd.org/
COMMENT= Server for DAAP (iTunes)
USE_LANGUAGES= c
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
RCD_SCRIPTS= mtdaapd
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
MTDAAPD_USER?= mtdaapd
PKG_USERS= ${MTDAAPD_USER}:${ROOT_GROUP}
BUILD_DEFS+= VARBASE MTDAAPD_USER
CONF_FILES_PERMS= ${EGDIR}/mt-daapd.conf ${PKG_SYSCONFDIR}/mt-daapd.conf \
${MTDAAPD_USER} ${ROOT_GROUP} 0660
OWN_DIRS_PERMS= ${VARBASE}/cache/mt-daapd \
${MTDAAPD_USER} ${ROOT_GROUP} 0750
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= contrib/mt-daapd.conf
SUBST_SED.conf= -e "s,@PREFIX@,${PREFIX},"
SUBST_SED.conf+= -e "s,@VARBASE@,${VARBASE},g"
SUBST_SED.conf+= -e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},"
SUBST_SED.conf+= -e "s,@MTDAAPD_USER@,${MTDAAPD_USER},"
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= src/main.c
SUBST_SED.paths= -e "s,/etc,${PKG_SYSCONFDIR},"
SUBST_SED.paths+= -e "s,/var,${VARBASE},"
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.playlist ${EGDIR}
.include "../../audio/libid3tag/buildlink3.mk"
.include "../../databases/gdbm/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"