summaryrefslogtreecommitdiff
path: root/audio/musicpd/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-11-25 20:16:52 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-11-25 20:16:52 +0000
commitc7b82d627beac2bde972af2a3c006e2f7cb42cbf (patch)
tree80e22eb49fa7c5b791c0b94491a9d32485921640 /audio/musicpd/Makefile
parent8116b8ee846b8a627e5bcf3dc1849c3fa16a436a (diff)
downloadpkgsrc-c7b82d627beac2bde972af2a3c006e2f7cb42cbf.tar.gz
Convert to use bsd.options.mk, the following options are available:
aac audiofile flac iconv id3 ogg # XXX Support for the following variables will be removed after the # XXX pkgsrc-2004Q4 branch is released: # XXX # XXX MUSICPD_WITH_AAC # XXX MUSICPD_WITH_AUDIOFILE # XXX MUSICPD_WITH_FLAC # XXX MUSICPD_WITH_ICONV # XXX MUSICPD_WITH_ID3 # XXX MUSICPD_WITH_OGG
Diffstat (limited to 'audio/musicpd/Makefile')
-rw-r--r--audio/musicpd/Makefile61
1 files changed, 2 insertions, 59 deletions
diff --git a/audio/musicpd/Makefile b/audio/musicpd/Makefile
index 7ecc6279ee3..fd5c932f288 100644
--- a/audio/musicpd/Makefile
+++ b/audio/musicpd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2004/11/11 03:17:07 simonb Exp $
+# $NetBSD: Makefile,v 1.12 2004/11/25 20:16:52 xtraeme Exp $
DISTNAME= mpd-0.11.5
PKGNAME= ${DISTNAME:S/mpd/musicpd/}
@@ -14,23 +14,9 @@ USE_BUILDLINK3= yes
USE_LIBTOOL= yes
USE_PKGINSTALL= yes
-BUILD_DEFS+= MUSICPD_WITH_AAC
-BUILD_DEFS+= MUSICPD_WITH_AUDIOFILE
-BUILD_DEFS+= MUSICPD_WITH_FLAC
-BUILD_DEFS+= MUSICPD_WITH_ICONV
-BUILD_DEFS+= MUSICPD_WITH_ID3
-BUILD_DEFS+= MUSICPD_WITH_OGG
-#BUILD_DEFS+= USE_INET6
-
+.include "options.mk"
.include "../../mk/bsd.prefs.mk"
-MUSICPD_WITH_AAC?= YES
-MUSICPD_WITH_AUDIOFILE?=YES
-MUSICPD_WITH_FLAC?= YES
-MUSICPD_WITH_ICONV?= YES
-MUSICPD_WITH_ID3?= YES
-MUSICPD_WITH_OGG?= YES
-
EGDIR= ${PREFIX}/share/examples/mpd
RCD_SCRIPTS= mpd
@@ -42,49 +28,6 @@ SUBST_STAGE.config= pre-configure
SUBST_FILES.config= src/main.c
SUBST_SED.config= -e s,/etc/mpd.conf,${PKG_SYSCONFDIR}/mpd.conf,
-.if ${MUSICPD_WITH_AAC} == "YES"
-. include "../../audio/faad2/buildlink3.mk"
-CONFIGURE_ARGS+= --with-faad=${BUILDLINK_PREFIX.faad2}
-.else
-CONFIGURE_ARGS+= --disable-aac
-.endif
-
-.if ${MUSICPD_WITH_AUDIOFILE} == "YES"
-. include "../../audio/libaudiofile/buildlink3.mk"
-CONFIGURE_ARGS+= --with-audiofile=${BUILDLINK_PREFIX.audiofile}
-CONFIGURE_ENV+= ac_cv_lib_iconv_iconv_open=yes
-.else
-CONFIGURE_ARGS+= --disable-audiofile
-.endif
-
-.if ${MUSICPD_WITH_FLAC} == "YES"
-. include "../../audio/flac/buildlink3.mk"
-CONFIGURE_ARGS+= --with-flac=${BUILDLINK_PREFIX.flac}
-.else
-CONFIGURE_ARGS+= --disable-flac
-.endif
-
-.if ${MUSICPD_WITH_ICONV} == "YES"
-. include "../../converters/libiconv/buildlink3.mk"
-CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
-.else
-CONFIGURE_ARGS+= --disable-iconv
-.endif
-
-.if ${MUSICPD_WITH_ID3} == "YES"
-. include "../../audio/libid3tag/buildlink3.mk"
-CONFIGURE_ARGS+= --with-id3tag=${BUILDLINK_PREFIX.libid3tag}
-.else
-CONFIGURE_ARGS+= --disable-id3
-.endif
-
-.if ${MUSICPD_WITH_OGG} == "YES"
-. include "../../audio/libvorbis/buildlink3.mk"
-CONFIGURE_ARGS+= --with-ogg=${BUILDLINK_PREFIX.libvorbis}
-.else
-CONFIGURE_ARGS+= --disable-ogg
-.endif
-
# when IPv6 support is enabled, mpd doesn't listen on an IPv4 address.
#.if defined(USE_INET6) && ${USE_INET6} == "YES"
#CONFIGURE_ARGS+= --enable-ipv6