2011-11-13 15:47:26 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2011/11/13 14:47:26 dholland Exp $
|
2004-06-05 21:07:51 +02:00
|
|
|
|
2006-04-23 20:25:27 +02:00
|
|
|
DISTNAME= daapd-0.2.4b
|
2006-05-31 09:56:20 +02:00
|
|
|
PKGREVISION= 1
|
2004-06-05 21:07:51 +02:00
|
|
|
CATEGORIES= audio
|
2004-08-17 01:32:04 +02:00
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
2004-06-05 21:07:51 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= nathanw@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.deleet.de/projekte/daap/daapd/
|
|
|
|
COMMENT= Server for DAA protocol (iTunes)
|
|
|
|
|
2010-02-01 01:59:27 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2011-11-13 15:47:26 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2004-08-17 01:32:04 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= makefile
|
2004-06-05 21:07:51 +02:00
|
|
|
|
2004-11-20 16:08:23 +01:00
|
|
|
RCD_SCRIPTS= daapd
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
|
2006-05-31 09:56:20 +02:00
|
|
|
CONF_FILES= ${EGDIR}/daapd.conf ${PKG_SYSCONFDIR}/daapd.conf
|
2004-11-20 16:08:23 +01:00
|
|
|
|
2007-01-30 08:05:58 +01:00
|
|
|
.include "options.mk"
|
2006-01-24 16:18:38 +01:00
|
|
|
|
2006-01-01 19:32:01 +01:00
|
|
|
MAKE_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
2005-10-11 14:20:57 +02:00
|
|
|
|
2006-01-01 19:32:01 +01:00
|
|
|
FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
2006-01-24 16:18:38 +01:00
|
|
|
SUBST_MESSAGE.paths= Fixing hardcoded paths.
|
2006-01-01 19:32:01 +01:00
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
SUBST_FILES.paths= daapd.8 daapd.cc
|
|
|
|
SUBST_SED.paths= -e 's,/etc/,${PKG_SYSCONFDIR}/,g'
|
2005-10-11 14:20:57 +02:00
|
|
|
|
2010-02-01 01:59:27 +01:00
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man8 ${EGDIR}
|
|
|
|
|
2006-07-03 04:18:15 +02:00
|
|
|
post-extract:
|
|
|
|
for FILE in `${FIND} ${WRKSRC}/daaplib -type f -print`; do \
|
|
|
|
${TR} -d \\r <$${FILE} >$${FILE}.new; \
|
|
|
|
${MV} $${FILE}.new $${FILE}; \
|
|
|
|
done
|
|
|
|
|
2010-02-01 01:59:27 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/daapd ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/daapd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/daapd-example.conf ${DESTDIR}${EGDIR}/daapd.conf
|
2004-11-20 16:08:23 +01:00
|
|
|
|
2004-06-05 21:07:51 +02:00
|
|
|
.include "../../audio/libid3tag/buildlink3.mk"
|
|
|
|
.include "../../net/howl/buildlink3.mk"
|
2004-08-17 01:32:04 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2004-06-05 21:07:51 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|