2019-05-23 21:22:54 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2019/05/23 19:22:55 rillig Exp $
|
2006-10-20 22:28:28 +02:00
|
|
|
|
2008-05-14 23:12:12 +02:00
|
|
|
DISTNAME= mt-daapd-0.2.4.2
|
2018-01-28 21:10:34 +01:00
|
|
|
PKGREVISION= 5
|
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
|
2017-09-03 10:36:49 +02:00
|
|
|
#HOMEPAGE= http://www.mt-daapd.org/
|
2006-10-20 22:28:28 +02:00
|
|
|
COMMENT= Server for DAAP (iTunes)
|
2016-04-20 14:10:24 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2006-10-20 22:28:28 +02:00
|
|
|
|
|
|
|
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
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.conf= pre-configure
|
2006-10-20 22:28:28 +02:00
|
|
|
SUBST_FILES.conf= contrib/mt-daapd.conf
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.conf= PREFIX
|
|
|
|
SUBST_VARS.conf+= VARBASE
|
|
|
|
SUBST_VARS.conf+= PKG_SYSCONFDIR
|
|
|
|
SUBST_VARS.conf+= MTDAAPD_USER
|
2006-10-20 22:28:28 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= Fixing hardcoded paths.
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.paths= pre-configure
|
2006-10-20 22:28:28 +02:00
|
|
|
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"
|