summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2003-09-14 09:56:09 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2003-09-14 09:56:09 +0000
commit63dcec2a01d0319828b5db86dc1cbbc758b763a9 (patch)
tree86e488992e6b796ecbecf51fd402ec8b54489390 /multimedia
parentFix segfault on Alpha platform. (diff)
unbreak package at bento(i386/RELENG_4):
o get rid of hardcoded CONFIGURE_TARGET from pkg-plist. o utilize USE_SDL as pkg-plist includes its modules. o utilize USE_GETOPT_LONG as configure detects libgnugetopt. o utilize PTHREAD_LIBS to avoid linking both libc and libc_r in -STABLE. o supply CPPFLAGS/LDFLAGS to configure to detect ogg/vorbis/id3tag and others. o and add number of modules built accordingly. o then sort pkg-plist.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/vlc-devel/Makefile21
-rw-r--r--multimedia/vlc-devel/files/patch-configure14
-rw-r--r--multimedia/vlc-devel/pkg-plist23
-rw-r--r--multimedia/vlc/Makefile21
-rw-r--r--multimedia/vlc/files/patch-configure14
-rw-r--r--multimedia/vlc/pkg-plist23
6 files changed, 76 insertions, 40 deletions
diff --git a/multimedia/vlc-devel/Makefile b/multimedia/vlc-devel/Makefile
index d74054294aa6..bb51d385061a 100644
--- a/multimedia/vlc-devel/Makefile
+++ b/multimedia/vlc-devel/Makefile
@@ -31,10 +31,18 @@ LIB_DEPENDS= dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \
# After libmpeg2 release 0.3.2
# mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
+USE_GETOPT_LONG=yes
+USE_GMAKE= yes
+USE_GNOME= gtk12
+USE_REINPLACE= yes
+USE_SDL= yes
USE_XLIB= yes
-GNU_CONFIGURE= yes
+
INSTALLS_SHLIB= yes
-CONFIGURE_ENV= PATH_GTKCONFIG="${GTK_CONFIG}"
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= PATH_GTKCONFIG="${GTK_CONFIG}" \
+ CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-dvdcss=${LOCALBASE} \
--with-dvdread=${LOCALBASE} \
--with-mad=${LOCALBASE} \
@@ -44,14 +52,11 @@ CONFIGURE_ARGS+=--with-dvdcss=${LOCALBASE} \
--enable-ffmpeg \
--with-ffmpeg=${LOCALBASE} \
--disable-libmpeg2 \
+ --program-prefix="" \
--without-libintl-prefix \
--without-libiconv-prefix
-# dirty
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-
-USE_GNOME= gtk12
-USE_GMAKE= yes
+post-patch:
+ @${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/' ${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/multimedia/vlc-devel/files/patch-configure b/multimedia/vlc-devel/files/patch-configure
index 54bebea7aed0..2751c0139c98 100644
--- a/multimedia/vlc-devel/files/patch-configure
+++ b/multimedia/vlc-devel/files/patch-configure
@@ -1,6 +1,14 @@
---- configure.orig Mon Jun 30 18:06:22 2003
-+++ configure Mon Jun 30 18:07:02 2003
-@@ -14017,7 +14017,7 @@
+--- configure.orig Mon Jun 23 04:24:14 2003
++++ configure Fri Sep 12 14:30:22 2003
+@@ -4501,7 +4501,6 @@
+ ;;
+ *bsd*)
+ SYS="${target_os}"
+- CFLAGS_save="${CFLAGS_save} -pthread"; CFLAGS="${CFLAGS_save}"
+ ;;
+ darwin*)
+ SYS=darwin
+@@ -14017,7 +14016,7 @@
fi
diff --git a/multimedia/vlc-devel/pkg-plist b/multimedia/vlc-devel/pkg-plist
index 14b81288e62e..e450bd4c72f8 100644
--- a/multimedia/vlc-devel/pkg-plist
+++ b/multimedia/vlc-devel/pkg-plist
@@ -1,6 +1,6 @@
-bin/i386-portbld-freebsd4.8-vlc-config
-bin/i386-portbld-freebsd4.8-vlc
bin/gvlc
+bin/vlc
+bin/vlc-config
bin/wxvlc
include/vlc/aout.h
include/vlc/decoder.h
@@ -9,12 +9,7 @@ include/vlc/intf.h
include/vlc/sout.h
include/vlc/vlc.h
include/vlc/vout.h
-lib/charset.alias
lib/libvlc.a
-lib/vlc/libidct.a
-lib/vlc/libidctclassic.a
-lib/vlc/libmotion.a
-lib/vlc/libmpeg_video_old.a
lib/vlc/access/libaccess_directory_plugin.so
lib/vlc/access/libaccess_file_plugin.so
lib/vlc/access/libaccess_ftp_plugin.so
@@ -24,6 +19,7 @@ lib/vlc/access/libaccess_udp_plugin.so
lib/vlc/access/libcdda_plugin.so
lib/vlc/access/libdvd_plugin.so
lib/vlc/access/libdvdread_plugin.so
+lib/vlc/access/libslp_plugin.so
lib/vlc/access/libvcd_plugin.so
lib/vlc/access_output/libaccess_output_dummy_plugin.so
lib/vlc/access_output/libaccess_output_file_plugin.so
@@ -66,6 +62,7 @@ lib/vlc/codec/liblpcm_plugin.so
lib/vlc/codec/libmpeg_audio_plugin.so
lib/vlc/codec/librawvideo_plugin.so
lib/vlc/codec/libspudec_plugin.so
+lib/vlc/codec/libvorbis_plugin.so
lib/vlc/control/libgestures_plugin.so
lib/vlc/control/libhttp_plugin.so
lib/vlc/control/librc_plugin.so
@@ -79,10 +76,12 @@ lib/vlc/demux/libdemuxdump_plugin.so
lib/vlc/demux/libdemuxsub_plugin.so
lib/vlc/demux/libes_plugin.so
lib/vlc/demux/libid3_plugin.so
+lib/vlc/demux/libid3tag_plugin.so
lib/vlc/demux/libm3u_plugin.so
lib/vlc/demux/libm4v_plugin.so
lib/vlc/demux/libmp4_plugin.so
lib/vlc/demux/libmpeg_system_plugin.so
+lib/vlc/demux/libogg_plugin.so
lib/vlc/demux/libps_plugin.so
lib/vlc/demux/librawdv_plugin.so
lib/vlc/demux/libts_plugin.so
@@ -93,9 +92,13 @@ lib/vlc/libi420_rgb_mmx.a
lib/vlc/libi420_ymga_mmx.a
lib/vlc/libi420_yuy2_mmx.a
lib/vlc/libi422_yuy2_mmx.a
+lib/vlc/libidct.a
+lib/vlc/libidctclassic.a
lib/vlc/libmemcpy3dn.a
lib/vlc/libmemcpymmx.a
lib/vlc/libmemcpymmxext.a
+lib/vlc/libmotion.a
+lib/vlc/libmpeg_video_old.a
lib/vlc/misc/libdummy_plugin.so
lib/vlc/misc/libgtk_main_plugin.so
lib/vlc/misc/libhttpd_plugin.so
@@ -107,6 +110,7 @@ lib/vlc/misc/libsap_plugin.so
lib/vlc/misc/libscreensaver_plugin.so
lib/vlc/mux/libmux_avi_plugin.so
lib/vlc/mux/libmux_dummy_plugin.so
+lib/vlc/mux/libmux_ogg_plugin.so
lib/vlc/mux/libmux_ps_plugin.so
lib/vlc/mux/libmux_ts_plugin.so
lib/vlc/packetizer/libpacketizer_a52_plugin.so
@@ -226,6 +230,7 @@ share/vlc/vlc48x48.png
@dirrm share/vlc/skins/default
@dirrm share/vlc/skins
@dirrm share/vlc
+@dirrm lib/vlc/visualization
@dirrm lib/vlc/video_output
@dirrm lib/vlc/video_filter
@dirrm lib/vlc/video_chroma
@@ -234,6 +239,7 @@ share/vlc/vlc48x48.png
@dirrm lib/vlc/mux
@dirrm lib/vlc/misc
@dirrm lib/vlc/gui
+@dirrm lib/vlc/encoder
@dirrm lib/vlc/demux
@dirrm lib/vlc/control
@dirrm lib/vlc/codec
@@ -242,6 +248,5 @@ share/vlc/vlc48x48.png
@dirrm lib/vlc/audio_filter
@dirrm lib/vlc/access_output
@dirrm lib/vlc/access
-@unexec rmdir %D/lib/vlc/visualization 2>/dev/null || true
-@unexec rmdir %D/lib/vlc/encoder 2>/dev/null || true
@dirrm lib/vlc
+@dirrm include/vlc
diff --git a/multimedia/vlc/Makefile b/multimedia/vlc/Makefile
index d74054294aa6..bb51d385061a 100644
--- a/multimedia/vlc/Makefile
+++ b/multimedia/vlc/Makefile
@@ -31,10 +31,18 @@ LIB_DEPENDS= dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \
# After libmpeg2 release 0.3.2
# mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
+USE_GETOPT_LONG=yes
+USE_GMAKE= yes
+USE_GNOME= gtk12
+USE_REINPLACE= yes
+USE_SDL= yes
USE_XLIB= yes
-GNU_CONFIGURE= yes
+
INSTALLS_SHLIB= yes
-CONFIGURE_ENV= PATH_GTKCONFIG="${GTK_CONFIG}"
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= PATH_GTKCONFIG="${GTK_CONFIG}" \
+ CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-dvdcss=${LOCALBASE} \
--with-dvdread=${LOCALBASE} \
--with-mad=${LOCALBASE} \
@@ -44,14 +52,11 @@ CONFIGURE_ARGS+=--with-dvdcss=${LOCALBASE} \
--enable-ffmpeg \
--with-ffmpeg=${LOCALBASE} \
--disable-libmpeg2 \
+ --program-prefix="" \
--without-libintl-prefix \
--without-libiconv-prefix
-# dirty
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-
-USE_GNOME= gtk12
-USE_GMAKE= yes
+post-patch:
+ @${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/' ${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/multimedia/vlc/files/patch-configure b/multimedia/vlc/files/patch-configure
index 54bebea7aed0..2751c0139c98 100644
--- a/multimedia/vlc/files/patch-configure
+++ b/multimedia/vlc/files/patch-configure
@@ -1,6 +1,14 @@
---- configure.orig Mon Jun 30 18:06:22 2003
-+++ configure Mon Jun 30 18:07:02 2003
-@@ -14017,7 +14017,7 @@
+--- configure.orig Mon Jun 23 04:24:14 2003
++++ configure Fri Sep 12 14:30:22 2003
+@@ -4501,7 +4501,6 @@
+ ;;
+ *bsd*)
+ SYS="${target_os}"
+- CFLAGS_save="${CFLAGS_save} -pthread"; CFLAGS="${CFLAGS_save}"
+ ;;
+ darwin*)
+ SYS=darwin
+@@ -14017,7 +14016,7 @@
fi
diff --git a/multimedia/vlc/pkg-plist b/multimedia/vlc/pkg-plist
index 14b81288e62e..e450bd4c72f8 100644
--- a/multimedia/vlc/pkg-plist
+++ b/multimedia/vlc/pkg-plist
@@ -1,6 +1,6 @@
-bin/i386-portbld-freebsd4.8-vlc-config
-bin/i386-portbld-freebsd4.8-vlc
bin/gvlc
+bin/vlc
+bin/vlc-config
bin/wxvlc
include/vlc/aout.h
include/vlc/decoder.h
@@ -9,12 +9,7 @@ include/vlc/intf.h
include/vlc/sout.h
include/vlc/vlc.h
include/vlc/vout.h
-lib/charset.alias
lib/libvlc.a
-lib/vlc/libidct.a
-lib/vlc/libidctclassic.a
-lib/vlc/libmotion.a
-lib/vlc/libmpeg_video_old.a
lib/vlc/access/libaccess_directory_plugin.so
lib/vlc/access/libaccess_file_plugin.so
lib/vlc/access/libaccess_ftp_plugin.so
@@ -24,6 +19,7 @@ lib/vlc/access/libaccess_udp_plugin.so
lib/vlc/access/libcdda_plugin.so
lib/vlc/access/libdvd_plugin.so
lib/vlc/access/libdvdread_plugin.so
+lib/vlc/access/libslp_plugin.so
lib/vlc/access/libvcd_plugin.so
lib/vlc/access_output/libaccess_output_dummy_plugin.so
lib/vlc/access_output/libaccess_output_file_plugin.so
@@ -66,6 +62,7 @@ lib/vlc/codec/liblpcm_plugin.so
lib/vlc/codec/libmpeg_audio_plugin.so
lib/vlc/codec/librawvideo_plugin.so
lib/vlc/codec/libspudec_plugin.so
+lib/vlc/codec/libvorbis_plugin.so
lib/vlc/control/libgestures_plugin.so
lib/vlc/control/libhttp_plugin.so
lib/vlc/control/librc_plugin.so
@@ -79,10 +76,12 @@ lib/vlc/demux/libdemuxdump_plugin.so
lib/vlc/demux/libdemuxsub_plugin.so
lib/vlc/demux/libes_plugin.so
lib/vlc/demux/libid3_plugin.so
+lib/vlc/demux/libid3tag_plugin.so
lib/vlc/demux/libm3u_plugin.so
lib/vlc/demux/libm4v_plugin.so
lib/vlc/demux/libmp4_plugin.so
lib/vlc/demux/libmpeg_system_plugin.so
+lib/vlc/demux/libogg_plugin.so
lib/vlc/demux/libps_plugin.so
lib/vlc/demux/librawdv_plugin.so
lib/vlc/demux/libts_plugin.so
@@ -93,9 +92,13 @@ lib/vlc/libi420_rgb_mmx.a
lib/vlc/libi420_ymga_mmx.a
lib/vlc/libi420_yuy2_mmx.a
lib/vlc/libi422_yuy2_mmx.a
+lib/vlc/libidct.a
+lib/vlc/libidctclassic.a
lib/vlc/libmemcpy3dn.a
lib/vlc/libmemcpymmx.a
lib/vlc/libmemcpymmxext.a
+lib/vlc/libmotion.a
+lib/vlc/libmpeg_video_old.a
lib/vlc/misc/libdummy_plugin.so
lib/vlc/misc/libgtk_main_plugin.so
lib/vlc/misc/libhttpd_plugin.so
@@ -107,6 +110,7 @@ lib/vlc/misc/libsap_plugin.so
lib/vlc/misc/libscreensaver_plugin.so
lib/vlc/mux/libmux_avi_plugin.so
lib/vlc/mux/libmux_dummy_plugin.so
+lib/vlc/mux/libmux_ogg_plugin.so
lib/vlc/mux/libmux_ps_plugin.so
lib/vlc/mux/libmux_ts_plugin.so
lib/vlc/packetizer/libpacketizer_a52_plugin.so
@@ -226,6 +230,7 @@ share/vlc/vlc48x48.png
@dirrm share/vlc/skins/default
@dirrm share/vlc/skins
@dirrm share/vlc
+@dirrm lib/vlc/visualization
@dirrm lib/vlc/video_output
@dirrm lib/vlc/video_filter
@dirrm lib/vlc/video_chroma
@@ -234,6 +239,7 @@ share/vlc/vlc48x48.png
@dirrm lib/vlc/mux
@dirrm lib/vlc/misc
@dirrm lib/vlc/gui
+@dirrm lib/vlc/encoder
@dirrm lib/vlc/demux
@dirrm lib/vlc/control
@dirrm lib/vlc/codec
@@ -242,6 +248,5 @@ share/vlc/vlc48x48.png
@dirrm lib/vlc/audio_filter
@dirrm lib/vlc/access_output
@dirrm lib/vlc/access
-@unexec rmdir %D/lib/vlc/visualization 2>/dev/null || true
-@unexec rmdir %D/lib/vlc/encoder 2>/dev/null || true
@dirrm lib/vlc
+@dirrm include/vlc