2013-07-12 12:44:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.15 2013/07/12 10:44:52 jperkin Exp $
|
2006-10-20 22:28:28 +02:00
|
|
|
|
2008-05-14 23:12:12 +02:00
|
|
|
DISTNAME= mt-daapd-0.2.4.2
|
2013-07-12 12:44:52 +02:00
|
|
|
PKGREVISION= 4
|
2006-10-20 22:28:28 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mt-daapd/}
|
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-20 22:28:28 +02:00
|
|
|
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"
|
|
|
|
|
2012-01-11 20:51:26 +01:00
|
|
|
CPPFLAGS.SunOS+= -std=c99 -Du_int32_t=uint32_t
|
|
|
|
|
2006-10-20 22:28:28 +02:00
|
|
|
RCD_SCRIPTS= mtdaapd
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
MTDAAPD_USER?= mtdaapd
|
2007-02-04 20:57:09 +01:00
|
|
|
MTDAAPD_GROUP?= mtdaapd
|
|
|
|
PKG_USERS= ${MTDAAPD_USER}:${MTDAAPD_GROUP}
|
2007-02-17 17:39:23 +01:00
|
|
|
PKG_GROUPS= ${MTDAAPD_GROUP}
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
|
|
|
PKG_USERS_VARS+= MTDAAPD_USER
|
|
|
|
PKG_GROUPS_VARS+= MTDAAPD_GROUP
|
2006-10-20 22:28:28 +02:00
|
|
|
|
|
|
|
CONF_FILES_PERMS= ${EGDIR}/mt-daapd.conf ${PKG_SYSCONFDIR}/mt-daapd.conf \
|
2007-02-04 20:57:09 +01:00
|
|
|
${MTDAAPD_USER} ${MTDAAPD_GROUP} 0660
|
2006-10-20 22:28:28 +02:00
|
|
|
|
|
|
|
OWN_DIRS_PERMS= ${VARBASE}/cache/mt-daapd \
|
2007-02-04 20:57:09 +01:00
|
|
|
${MTDAAPD_USER} ${MTDAAPD_GROUP} 0750
|
2006-10-20 22:28:28 +02:00
|
|
|
|
2008-12-20 15:12:28 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2006-10-20 22:28:28 +02:00
|
|
|
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},"
|
|
|
|
|
2010-02-01 02:16:24 +01:00
|
|
|
INSTALLATION_DIRS+= ${EGDIR}
|
|
|
|
|
2006-10-20 22:28:28 +02:00
|
|
|
post-install:
|
2010-02-01 02:16:24 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.playlist ${DESTDIR}${EGDIR}
|
2006-10-20 22:28:28 +02:00
|
|
|
|
|
|
|
.include "../../audio/libid3tag/buildlink3.mk"
|
|
|
|
.include "../../databases/gdbm/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|