Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / daapd / Makefile
blob9b6300facf5398bb9e5da768bacdd875d5821309
1 # $NetBSD: Makefile,v 1.26 2011/11/13 14:47:26 dholland Exp $
3 DISTNAME= daapd-0.2.4b
4 PKGREVISION= 1
5 CATEGORIES= audio
6 MASTER_SITES= ${HOMEPAGE}
7 EXTRACT_SUFX= .tgz
9 MAINTAINER= nathanw@NetBSD.org
10 HOMEPAGE= http://www.deleet.de/projekte/daap/daapd/
11 COMMENT= Server for DAA protocol (iTunes)
13 MAKE_JOBS_SAFE= no
15 USE_LANGUAGES= c c++
16 USE_TOOLS+= gmake
17 MAKE_FILE= makefile
19 RCD_SCRIPTS= daapd
20 EGDIR= ${PREFIX}/share/examples/${PKGBASE}
22 CONF_FILES= ${EGDIR}/daapd.conf ${PKG_SYSCONFDIR}/daapd.conf
24 .include "options.mk"
26 MAKE_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
28 FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
30 SUBST_CLASSES+= paths
31 SUBST_MESSAGE.paths= Fixing hardcoded paths.
32 SUBST_STAGE.paths= post-patch
33 SUBST_FILES.paths= daapd.8 daapd.cc
34 SUBST_SED.paths= -e 's,/etc/,${PKG_SYSCONFDIR}/,g'
36 INSTALLATION_DIRS+= bin ${PKGMANDIR}/man8 ${EGDIR}
38 post-extract:
39 for FILE in `${FIND} ${WRKSRC}/daaplib -type f -print`; do \
40 ${TR} -d \\r <$${FILE} >$${FILE}.new; \
41 ${MV} $${FILE}.new $${FILE}; \
42 done
44 do-install:
45 ${INSTALL_PROGRAM} ${WRKSRC}/daapd ${DESTDIR}${PREFIX}/bin
46 ${INSTALL_MAN} ${WRKSRC}/daapd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
47 ${INSTALL_DATA} ${WRKSRC}/daapd-example.conf ${DESTDIR}${EGDIR}/daapd.conf
49 .include "../../audio/libid3tag/buildlink3.mk"
50 .include "../../net/howl/buildlink3.mk"
51 .include "../../mk/pthread.buildlink3.mk"
52 .include "../../mk/bsd.pkg.mk"