2009-03-19 22:35:14 +01:00
|
|
|
# $NetBSD: Makefile,v 1.36 2009/03/19 21:35:14 asau Exp $
|
2004-04-30 12:48:21 +02:00
|
|
|
|
2009-03-19 22:35:14 +01:00
|
|
|
DISTNAME= mpd-0.14.2
|
2004-10-05 15:12:40 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/mpd/musicpd/}
|
2004-04-30 12:48:21 +02:00
|
|
|
CATEGORIES= audio
|
2009-01-20 23:52:17 +01:00
|
|
|
#MASTER_SITES= http://musicpd.org/uploads/files/
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
|
2007-01-10 00:19:26 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-04-30 12:48:21 +02:00
|
|
|
|
2005-11-18 19:34:11 +01:00
|
|
|
CONFLICTS= mpd-[0-9]*
|
2005-10-19 06:43:31 +02:00
|
|
|
|
2008-05-09 16:03:12 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-04-30 12:48:21 +02:00
|
|
|
HOMEPAGE= http://musicpd.org/
|
|
|
|
COMMENT= Remote controllable audio player
|
|
|
|
|
2009-03-17 19:16:20 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-04-30 12:48:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2009-01-20 23:52:17 +01:00
|
|
|
USE_TOOLS+= pkg-config
|
2004-04-30 12:48:21 +02:00
|
|
|
|
2004-11-25 21:16:52 +01:00
|
|
|
.include "options.mk"
|
2004-04-30 12:48:21 +02:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/mpd
|
|
|
|
RCD_SCRIPTS= mpd
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= DEVOSSAUDIO=${DEVOSSAUDIO:Q}
|
2004-04-30 12:48:21 +02:00
|
|
|
LDFLAGS+= ${LIBOSSAUDIO}
|
|
|
|
|
2006-01-04 18:46:15 +01:00
|
|
|
SUBST_CLASSES+= config paths
|
2004-04-30 12:48:21 +02:00
|
|
|
SUBST_STAGE.config= pre-configure
|
|
|
|
SUBST_FILES.config= src/main.c
|
|
|
|
SUBST_SED.config= -e s,/etc/mpd.conf,${PKG_SYSCONFDIR}/mpd.conf,
|
2006-01-04 18:46:15 +01:00
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
SUBST_FILES.paths= mpd.conf
|
|
|
|
SUBST_SED.paths= -e 's,@DEVOSSAUDIO@,${DEVOSSAUDIO},'
|
2004-04-30 12:48:21 +02:00
|
|
|
|
2006-01-04 18:46:15 +01:00
|
|
|
post-extract:
|
2006-05-19 18:18:51 +02:00
|
|
|
${CP} ${FILESDIR}/mpd.conf ${WRKSRC}/mpd.conf
|
2004-04-30 12:48:21 +02:00
|
|
|
|
|
|
|
post-install:
|
2009-03-17 19:16:20 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mpd.conf ${DESTDIR}${EGDIR}
|
2004-04-30 12:48:21 +02:00
|
|
|
|
2009-01-20 23:52:17 +01:00
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2004-04-30 12:48:21 +02:00
|
|
|
.include "../../audio/libmad/buildlink3.mk"
|
|
|
|
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2004-04-30 12:48:21 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|