Hi Tobias,

Here is an updated version of your diff for mpd-0.16.2 . Previously discussed
issues (http://marc.info/?l=openbsd-ports&m=130114470610474&w=2) seem to have
been fixed.

I've tested the libao and the httpd output without any problem on amd64.

The manpage is also well displayed with mandoc.

Regards,
Martin
Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/mpd/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- Makefile    14 Mar 2011 09:17:26 -0000      1.37
+++ Makefile    4 Apr 2011 17:44:05 -0000
@@ -1,8 +1,7 @@
 # $OpenBSD: Makefile,v 1.37 2011/03/14 09:17:26 sthen Exp $
 
 COMMENT =              Music Player Daemon
-DISTNAME =             mpd-0.15.12
-REVISION =             6
+DISTNAME =             mpd-0.16.2
 CATEGORIES =           audio
 HOMEPAGE =             http://www.musicpd.org/
 MAINTAINER =           Tobias Ulmer <tobi...@tmux.org>
@@ -13,8 +12,8 @@ PERMIT_PACKAGE_FTP =  Yes
 PERMIT_DISTFILES_CDROM =Yes
 PERMIT_DISTFILES_FTP = Yes
 
-WANTLIB =              c m pthread ogg z stdc++ sndio curl glib-2.0 gthread-2.0
-WANTLIB +=             audiofile ao samplerate FLAC id3tag mad mikmod
+WANTLIB +=             c m pthread ogg z stdc++ sndio curl glib-2.0 gthread-2.0
+WANTLIB +=             audiofile ao samplerate sndfile FLAC id3tag mad mikmod
 
 MASTER_SITES =         ${MASTER_SITE_SOURCEFORGE:=musicpd/}
 
@@ -51,11 +50,19 @@ CONFIGURE_ARGS +=   --enable-ao \
                        --disable-modplug \
                        --disable-sidplay \
                        --disable-ffmpeg \
-                       --enable-mpc
+                       --enable-mpc \
+                       --disable-libwrap \
+                       --enable-lsr \
+                       --enable-audiofile \
+                       --disable-gme \
+                       --enable-mad \
+                       --disable-mpg123 \
+                       --enable-sndfile \
+                       --disable-twolame-encoder
+
 # OggFLAC and tremor tests, initgroups(3)
 CONFIGURE_ENV =                LDFLAGS="-L${LOCALBASE}/lib" \
                        CPPFLAGS="-I${LOCALBASE}/include -D_BSD_SOURCE"
-USE_GROFF =            Yes
 
 .if ${FLAVOR:L:Mtremor}
 CONFIGURE_ARGS +=      --with-tremor \
@@ -76,7 +83,9 @@ LIB_DEPENDS +=                audio/libvorbis \
                        net/libshout \
                        audio/faad>=2.6.1p0 \
                        audio/libmpcdec
-CONFIGURE_ARGS +=      --enable-aac
+CONFIGURE_ARGS +=      --enable-aac \
+                       --enable-shout \
+                       --enable-vorbis-encoder
 .endif
 
 USE_LIBTOOL =          Yes
Index: distinfo
===================================================================
RCS file: /cvs/ports/audio/mpd/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo    23 Aug 2010 14:46:55 -0000      1.10
+++ distinfo    4 Apr 2011 16:59:28 -0000
@@ -1,5 +1,5 @@
-MD5 (mpd-0.15.12.tar.gz) = W9YcISTUOIsTmLMvLHFDig==
-RMD160 (mpd-0.15.12.tar.gz) = QUgnNCADCYPdKuKiN6qiOc9kO9M=
-SHA1 (mpd-0.15.12.tar.gz) = fZObgk2YmjG+NmA/jVA+N3RJxj8=
-SHA256 (mpd-0.15.12.tar.gz) = p2oa1OAxLL2EwJ9S0/eLpcEvLrmRRSSJsEsXlkrftBc=
-SIZE (mpd-0.15.12.tar.gz) = 483928
+MD5 (mpd-0.16.2.tar.gz) = p1rXFcw4HcXv7/bb8xOpVA==
+RMD160 (mpd-0.16.2.tar.gz) = ma4X2KyatcMiNwiLrjp0EZ4ksd8=
+SHA1 (mpd-0.16.2.tar.gz) = kL9F9FZ+XW+C0nn3jaGIFLD0OsQ=
+SHA256 (mpd-0.16.2.tar.gz) = RWec8xqZ3Fuv0lMcrVrK6QTFy0xsuaLiUyfglLjotkE=
+SIZE (mpd-0.16.2.tar.gz) = 619586
Index: patches/patch-Makefile_in
===================================================================
RCS file: /cvs/ports/audio/mpd/patches/patch-Makefile_in,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile_in
--- patches/patch-Makefile_in   23 Aug 2010 14:46:55 -0000      1.2
+++ patches/patch-Makefile_in   4 Apr 2011 17:07:20 -0000
@@ -1,12 +1,12 @@
 $OpenBSD: patch-Makefile_in,v 1.2 2010/08/23 14:46:55 jasper Exp $
---- Makefile.in.orig   Wed Jul 21 02:42:27 2010
-+++ Makefile.in        Sun Aug 22 18:45:03 2010
-@@ -1447,7 +1447,7 @@ SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) -I$(shell $(CC) 
+--- Makefile.in        Mon Apr  4 22:31:44 2011
++++ Makefile.in        Mon Apr  4 22:31:30 2011
+@@ -2254,7 +2254,7 @@
  # Documentation
  #
  man_MANS = doc/mpd.1 doc/mpd.conf.5
 -doc_DATA = AUTHORS COPYING NEWS README UPGRADING doc/mpdconf.example
 +doc_DATA = AUTHORS COPYING NEWS README UPGRADING
- DOCBOOK_FILES = doc/protocol.xml doc/user.xml doc/developer.xml 
doc/sticker.xml
+ DOCBOOK_FILES = doc/protocol.xml doc/user.xml doc/developer.xml
  @ENABLE_DOCUMENTATION_TRUE@protocoldir = $(docdir)/protocol
  @ENABLE_DOCUMENTATION_TRUE@protocol_DATA = $(wildcard doc/protocol/*.html)
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/audio/mpd/patches/patch-configure,v
retrieving revision 1.12
diff -u -p -r1.12 patch-configure
--- patches/patch-configure     23 Aug 2010 14:46:55 -0000      1.12
+++ patches/patch-configure     4 Apr 2011 17:07:06 -0000
@@ -2,18 +2,9 @@ $OpenBSD: patch-configure,v 1.12 2010/08
 
 Don't reset CPPFLAGS...stupid configure.
 
---- configure.orig     Wed Jul 21 02:42:27 2010
-+++ configure  Sun Aug 22 18:45:03 2010
-@@ -8990,7 +8990,7 @@ if test x$enable_mpc = xyes; then
-       oldcppflags=$CPPFLAGS
-       CFLAGS="$CFLAGS $MPD_CFLAGS $MPCDEC_CFLAGS -I."
-       LIBS="$LIBS $MPD_LIBS $MPCDEC_LIBS"
--      CPPFLAGS=$CFLAGS
-+      CPPFLAGS="$CPPFLAGS $CFLAGS"
-       ac_fn_c_check_header_mongrel "$LINENO" "mpc/mpcdec.h" 
"ac_cv_header_mpc_mpcdec_h" "$ac_includes_default"
- if test "x$ac_cv_header_mpc_mpcdec_h" = x""yes; then :
-   old_mpcdec=no
-@@ -9214,7 +9214,7 @@ if test x$enable_aac = xyes; then
+--- configure  Mon Apr  4 22:34:06 2011
++++ configure  Mon Apr  4 22:35:15 2011
+@@ -8759,7 +8759,7 @@
        oldcppflags=$CPPFLAGS
        CFLAGS="$CFLAGS $MPD_CFLAGS $FAAD_CFLAGS -I."
        LIBS="$LIBS $MPD_LIBS $FAAD_LIBS"
@@ -22,7 +13,7 @@ Don't reset CPPFLAGS...stupid configure.
        ac_fn_c_check_header_mongrel "$LINENO" "faad.h" "ac_cv_header_faad_h" 
"$ac_includes_default"
  if test "x$ac_cv_header_faad_h" = x""yes; then :
  
-@@ -9468,7 +9468,7 @@ if test x$enable_aac = xyes; then
+@@ -9013,7 +9013,7 @@
        oldcppflags=$CPPFLAGS
        CFLAGS="$CFLAGS $MPD_CFLAGS $FAAD_CFLAGS -Werror"
        LIBS="$LIBS $MPD_LIBS $FAAD_LIBS"
@@ -31,7 +22,7 @@ Don't reset CPPFLAGS...stupid configure.
  
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libfaad 
headers" >&5
  $as_echo_n "checking for broken libfaad headers... " >&6; }
-@@ -9514,7 +9514,7 @@ if test x$enable_aac = xyes; then
+@@ -9059,7 +9059,7 @@
        oldcppflags=$CPPFLAGS
        CFLAGS="$CFLAGS $FAAD_CFLAGS"
        LIBS="$LIBS $FAAD_LIBS $MP4FF_LIBS"
@@ -40,3 +31,12 @@ Don't reset CPPFLAGS...stupid configure.
  
        ac_fn_c_check_header_mongrel "$LINENO" "mp4ff.h" "ac_cv_header_mp4ff_h" 
"$ac_includes_default"
  if test "x$ac_cv_header_mp4ff_h" = x""yes; then :
+@@ -10370,7 +10370,7 @@
+       oldcppflags=$CPPFLAGS
+       CFLAGS="$CFLAGS $MPD_CFLAGS $MPCDEC_CFLAGS -I."
+       LIBS="$LIBS $MPD_LIBS $MPCDEC_LIBS"
+-      CPPFLAGS=$CFLAGS
++      CPPFLAGS="$CPPFLAGS $CFLAGS"
+       ac_fn_c_check_header_mongrel "$LINENO" "mpc/mpcdec.h" 
"ac_cv_header_mpc_mpcdec_h" "$ac_includes_default"
+ if test "x$ac_cv_header_mpc_mpcdec_h" = x""yes; then :
+   old_mpcdec=no
Index: patches/patch-doc_mpdconf_example
===================================================================
RCS file: /cvs/ports/audio/mpd/patches/patch-doc_mpdconf_example,v
retrieving revision 1.6
diff -u -p -r1.6 patch-doc_mpdconf_example
--- patches/patch-doc_mpdconf_example   12 Jan 2010 18:58:26 -0000      1.6
+++ patches/patch-doc_mpdconf_example   4 Apr 2011 17:14:25 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-doc_mpdconf_example,v 1.6 2010/01/12 18:58:26 wcmaier Exp $
---- doc/mpdconf.example.orig   Wed Nov 18 20:47:54 2009
-+++ doc/mpdconf.example        Thu Dec 17 16:13:38 2009
+--- doc/mpdconf.example.orig   Sat Mar 19 06:11:52 2011
++++ doc/mpdconf.example        Mon Apr  4 22:43:42 2011
 @@ -10,14 +10,14 @@
  # be disabled and audio files will only be accepted over ipc socket (using
  # file:// protocol) or streaming files over an accepted protocol.
@@ -49,18 +49,18 @@ $OpenBSD: patch-doc_mpdconf_example,v 1.
 -#state_file                   "~/.mpd/state"
 +state_file                      "/var/spool/mpd/mpdstate"
  #
- 
###############################################################################
- 
-@@ -59,7 +59,7 @@
+ # The location of the sticker database.  This is a database which
+ # manages dynamic information attached to songs.
+@@ -64,7 +64,7 @@
  # initialization. This setting is disabled by default and MPD is run as the
  # current user.
  #
 -#user                         "nobody"
 +user                            "_mpd"
  #
- # This setting sets the address for the daemon to listen on. Careful attention
- # should be paid if this is assigned to anything other then the default, any.
-@@ -71,6 +71,8 @@
+ # This setting specifies the group that MPD will run as. If not specified
+ # primary group of user specified with "user" setting will be used (if set).
+@@ -83,6 +83,8 @@
  # And for Unix Socket
  #bind_to_address              "~/.mpd/socket"
  #
@@ -69,26 +69,18 @@ $OpenBSD: patch-doc_mpdconf_example,v 1.
  # This setting is the TCP port that is desired for the daemon to get assigned
  # to.
  #
-@@ -257,6 +259,13 @@ input {
+@@ -296,6 +298,14 @@
  #     name            "My Null Output"
+ #     mixer_type      "none"                  # optional
  #}
- #
++#
 +## Default libao output:
 +#
 +audio_output {
 +      type                    "ao"
 +      name                    "Libao Audio Device"
++      mixer_type              "software"
 +}
-+#
+ #
  # This setting will change all decoded audio to be converted to the specified
  # format before being passed to the audio outputs. By default, this setting is
- # disabled.
-@@ -290,7 +299,7 @@ input {
- # all controls, even if the mixer is not supported by the device and will not
- # affect any other sound producing applications.
- #
--#mixer_type                   "software"
-+mixer_type                    "software"
- #
- # This example will not allow MPD to touch the mixer at all and will disable
- # all volume controls.
Index: patches/patch-src_output_ao_plugin_c
===================================================================
RCS file: patches/patch-src_output_ao_plugin_c
diff -N patches/patch-src_output_ao_plugin_c
--- patches/patch-src_output_ao_plugin_c        3 Jun 2010 16:06:07 -0000       
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-src_output_ao_plugin_c,v 1.1 2010/06/03 16:06:07 pea Exp $
---- src/output/ao_plugin.c.orig        Fri May 14 23:58:27 2010
-+++ src/output/ao_plugin.c     Fri May 14 23:58:58 2010
-@@ -169,6 +169,7 @@ ao_output_open(void *data, struct audio_format *audio_
-       ao_sample_format format;
-       struct ao_data *ad = (struct ao_data *)data;
- 
-+      memset(&format, 0, sizeof(format));
-       /* support for 24 bit samples in libao is currently dubious,
-          and until we have sorted that out, resample everything to
-          16 bit */

Reply via email to