diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-02-18 17:58:16 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-02-18 17:58:16 +0000 |
commit | bcccbdfaf86fb0333ce6caaf9c5989073bcfc324 (patch) | |
tree | 2f8d1a7917d63f8e602b9c67f534f5ebf6364396 /audio/zinf | |
parent | 67bfc3b798702b43bc0fed41d4123c8193cb4007 (diff) | |
download | ports-bcccbdfaf86fb0333ce6caaf9c5989073bcfc324.tar.gz ports-bcccbdfaf86fb0333ce6caaf9c5989073bcfc324.zip |
Notes
Diffstat (limited to 'audio/zinf')
-rw-r--r-- | audio/zinf/Makefile | 47 | ||||
-rw-r--r-- | audio/zinf/files/patch-ftc-kjofol-kjofol.cpp | 10 | ||||
-rw-r--r-- | audio/zinf/files/patch-lib-http-src-Http.cpp | 10 | ||||
-rw-r--r-- | audio/zinf/files/patch-ui-zinf-unix-src-GTKFileSelector.cpp | 7 | ||||
-rw-r--r-- | audio/zinf/pkg-plist | 10 |
5 files changed, 43 insertions, 41 deletions
diff --git a/audio/zinf/Makefile b/audio/zinf/Makefile index 8114ec20bcfc..ec64fc8f0efe 100644 --- a/audio/zinf/Makefile +++ b/audio/zinf/Makefile @@ -13,17 +13,25 @@ COMMENT= GTK-based MP3 player LIB_DEPENDS= libid3-3.8.so:${PORTSDIR}/audio/id3lib \ libgdbm.so:${PORTSDIR}/databases/gdbm -USES= pathfix gettext gmake perl5 -NO_STAGE= yes +USES= pathfix pkgconfig gettext gmake perl5 USE_GNOME= gtk20 lthack -WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-ipv6 \ --disable-arts -CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} +OPTIONS_DEFINE= ESOUND VORBIS +OPTIONS_DEFAULT=VORBIS +OPTIONS_SUB= yes + +ESOUND_CONFIGURE_OFF= --disable-esd +ESOUND_USE= GNOME=esound + +VORBIS_CONFIGURE_OFF= --disable-vorbis +VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis + .include <bsd.port.pre.mk> .if ${ARCH} == "i386" @@ -37,40 +45,13 @@ CONFIGURE_ARGS+= --disable-x86opts CPPFLAGS+= "-D_M_ALPHA" .endif -.if ${HAVE_GNOME:Mesound}!="" || defined(WITH_ALL_PLUGINS) -USE_GNOME+= esound -PLIST_SUB+= ESOUND="" -.else -CONFIGURE_ARGS+= --disable-esd -PLIST_SUB+= ESOUND="@comment " -.endif - -.if !defined(WITHOUT_VORBIS) || defined(WITH_ALL_PLUGINS) -LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis -PLIST_SUB+= VORBIS="" -.else -CONFIGURE_ARGS+= --disable-vorbis -PLIST_SUB+= VORBIS="@comment " -.endif - -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} "You may use the following build options:" - @${ECHO_MSG} - @${ECHO_MSG} "WITHOUT_GNOME=esound do NOT build with esd support" - @${ECHO_MSG} "WITHOUT_VORBIS=yes do NOT build with Ogg/Vorbis codec plugin" - @${ECHO_MSG} - @${ECHO_MSG} "WITH_ALL_PLUGINS=yes build with all plugins" - @${ECHO_MSG} - post-patch: @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|Player::||' ${WRKSRC}/base/include/player.h post-install: - @${MKDIR} ${PREFIX}/etc/sdr/plugins + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/sdr/plugins ${INSTALL_DATA} ${FILESDIR}/sdr2.plugin.S100.audio.rtp.mpa.zinf \ - ${PREFIX}/etc/sdr/plugins - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR} + ${STAGEDIR}${PREFIX}/etc/sdr/plugins .include <bsd.port.post.mk> diff --git a/audio/zinf/files/patch-ftc-kjofol-kjofol.cpp b/audio/zinf/files/patch-ftc-kjofol-kjofol.cpp new file mode 100644 index 000000000000..7c59022623b5 --- /dev/null +++ b/audio/zinf/files/patch-ftc-kjofol-kjofol.cpp @@ -0,0 +1,10 @@ +--- ftc/kjofol/kjofol.cpp.orig 2014-02-18 17:48:40.481824991 +0100 ++++ ftc/kjofol/kjofol.cpp 2014-02-18 17:49:16.578764197 +0100 +@@ -47,6 +47,7 @@ + + #include <sys/types.h> + #include <sys/stat.h> ++#include <stdlib.h> + + #include "path_max.h" + diff --git a/audio/zinf/files/patch-lib-http-src-Http.cpp b/audio/zinf/files/patch-lib-http-src-Http.cpp new file mode 100644 index 000000000000..096dcb0cf965 --- /dev/null +++ b/audio/zinf/files/patch-lib-http-src-Http.cpp @@ -0,0 +1,10 @@ +--- lib/http/src/Http.cpp.orig 2014-02-15 18:56:59.580491668 +0100 ++++ lib/http/src/Http.cpp 2014-02-15 18:57:10.490545507 +0100 +@@ -31,6 +31,7 @@ + + #include "config.h" + #include <stdio.h> ++#include <stdlib.h> + #include <sys/types.h> + #include <sys/stat.h> + #ifndef WIN32 diff --git a/audio/zinf/files/patch-ui-zinf-unix-src-GTKFileSelector.cpp b/audio/zinf/files/patch-ui-zinf-unix-src-GTKFileSelector.cpp index bfbe652583a8..022f779622c5 100644 --- a/audio/zinf/files/patch-ui-zinf-unix-src-GTKFileSelector.cpp +++ b/audio/zinf/files/patch-ui-zinf-unix-src-GTKFileSelector.cpp @@ -1,11 +1,12 @@ ---- ui/zinf/unix/src/GTKFileSelector.cpp.orig Wed Feb 19 16:39:23 2003 -+++ ui/zinf/unix/src/GTKFileSelector.cpp Sat Sep 13 03:02:14 2003 -@@ -25,7 +25,7 @@ +--- ui/zinf/unix/src/GTKFileSelector.cpp.orig 2003-09-16 19:36:23.000000000 +0200 ++++ ui/zinf/unix/src/GTKFileSelector.cpp 2014-02-18 17:46:56.364931015 +0100 +@@ -25,7 +25,8 @@ #include <unistd.h> #include <dirent.h> -#if defined(solaris) +#if defined(solaris) || defined(__FreeBSD__) ++#include <stdlib.h> #include <sys/types.h> #include <sys/param.h> /* for MAXPATHLEN */ #include <sys/stat.h> diff --git a/audio/zinf/pkg-plist b/audio/zinf/pkg-plist index 74af921ba167..b09738126563 100644 --- a/audio/zinf/pkg-plist +++ b/audio/zinf/pkg-plist @@ -32,11 +32,11 @@ share/locale/ru/LC_MESSAGES/zinf.mo %%DATADIR%%/themes/Aquatica.fat %%DATADIR%%/themes/Zinf.fat %%DATADIR%%/themes/ZinfClassic.fat -@dirrm share/zinf/themes -@dirrm share/zinf +@dirrm %%DATADIR%%/themes +@dirrm %%DATADIR%% +@dirrm share/locale/ca_ES/LC_MESSAGES +@dirrm share/locale/ca_ES @dirrm lib/zinf/plugins @dirrm lib/zinf -@dirrmtry etc/sdr/plugins +@dirrm etc/sdr/plugins @dirrmtry etc/sdr -@dirrmtry share/locale/ca_ES/LC_MESSAGES -@dirrmtry share/locale/ca_ES |