Index: head/multimedia/gstreamer-plugins/Makefile =================================================================== --- head/multimedia/gstreamer-plugins/Makefile (revision 126328) +++ head/multimedia/gstreamer-plugins/Makefile (revision 126329) @@ -1,1239 +1,1240 @@ # New ports collection makefile for: gstreamer plugins # Date created: Wed Jul 10 23:38:01 UTC 2002 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= gstreamer PORTVERSION= 0.8.7 +PORTREVISION= 1 CATEGORIES= multimedia audio MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-plugins/ \ ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gst-plugins/0.8 PKGNAMESUFFIX= -plugins DISTNAME= gst-plugins-${PORTVERSION} DIST_SUBDIR= gnome2 MAINTAINER= lioux@FreeBSD.org COMMENT= GStreamer written collection of plugins handling several media types LIB_DEPENDS= gstreamer-0.8.5:${PORTSDIR}/multimedia/gstreamer \ popt.0:${PORTSDIR}/devel/popt USE_X_PREFIX= yes USE_BZIP2= yes USE_GMAKE= yes USE_GNOME= gnomehack \ gnomehier \ gnomeprefix \ pkgconfig \ gconf2 USE_REINPLACE= yes USE_LIBTOOL_VER=15 GCONF_SCHEMAS= gstreamer-${GST_VERSION}.schemas CONFIGURE_ARGS= --disable-tests \ --disable-alsa \ --enable-cdrom \ --disable-divx \ --disable-dxr3 \ --disable-http \ --disable-qcam \ --disable-raw1394 \ --disable-v4l2 \ --disable-v4l \ --disable-osx_audio \ --disable-sunaudio \ --disable-dependency-tracking \ --enable-xshm \ --enable-x \ --enable-xvideo \ --enable-static # list of plugins that need some work in one way or the other to work # probable the lib needs to be ported, disable them for now. CONFIGURE_ARGS+=\ --disable-tarkin \ --disable-lcs \ --disable-shout2 \ --disable-dirac \ --disable-librfb CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib" CONFIGURE_TARGET= PLIST_SUB= \ VERSION="${GST_VERSION}" \ SHLIB_VERSION="${SHLIB_VERSION}" INSTALLS_SHLIB= yes # for various GNOME-related component detection WANT_GNOME= yes MAN1= gst-launch-ext-${GST_VERSION}.1 gst-visualise-${GST_VERSION}.1 PKG_CONFIG?="${LOCALBASE}/bin/pkg-config" SDL_CONFIG?="${LOCALBASE}/bin/sdl11-config" GST_VERSION=${PORTVERSION:C/..$//} # library minor number SHLIB_VERSION= 1 ## Additional directories which should be both built and installed ## but configure neglected to correctly identify them # cdrom/vcd support EXTRA_BUILD_DIR+= sys/vcd # modplug EXTRA_BUILD_DIR+= gst/modplug post-extract: # for cdrom/vcd support # taken from mplayer distfile # MD5 (MPlayer-1.0pre4.tar.bz2) = 83ebac0f05b192516a41fca2350ca01a @${CP} ${FILESDIR}/bsdi_dvd.h ${WRKSRC}/sys/vcd/ .include post-patch: .if ${CXXFLAGS:M*=athlon-4} || ${CXXFLAGS:M*=athlon-mp} || ${CXXFLAGS:M*=athlon-xp} # Fix gst-register when using -O -march=athlon-xp @${REINPLACE_CMD} -e 's|@CXXF|-fgcse @CXXF|g' \ ${WRKSRC}/gst/modplug/Makefile.in \ ${WRKSRC}/gst/modplug/libmodplug/Makefile.in .endif # as of this writing, FreeBSD does not support lrint* C99 math functions @${REINPLACE_CMD} -E -e \ 's|^#define.*LRINT.*$$||' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} # respect CFLAGS @${FIND} ${WRKSRC} -type f -name Makefile.in | \ ${XARGS} -n 10 ${REINPLACE_CMD} -E -e \ 's,-O(2|3),,; \ s|-mcpu=i486||' # mcopidl takes the file as the last argument @${REINPLACE_CMD} -E -e \ 's|(mcopidl.+)(\$$<)(.+)$$|\1 \3 \2|' \ ${WRKSRC}/ext/arts/Makefile.in # malloc.h was deprecated in favor of stdlib.h # inttypes.h not stdint.h @${FIND} ${WRKSRC} -type f | \ ${XARGS} -n 10 ${REINPLACE_CMD} -e \ 's|malloc\.h|stdlib.h|; \ s|stdint\.h|inttypes.h|' # force libaudiofile detection @${REINPLACE_CMD} -E -e \ 's|^.*afOpenVirtualFile[[:space:]]*\(\);|;|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} # cdrom default device @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ ${WRKSRC}/ext/cdparanoia/gstcdparanoia.c \ ${WRKSRC}/sys/cdrom/gstcdplayer.c \ ${WRKSRC}/sys/vcd/vcdsrc.c # dvd default device @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ ${WRKSRC}/ext/dvdnav/dvdnavsrc.c \ ${WRKSRC}/ext/dvdread/dvdreadsrc.c # cdrom/vcd support @${REINPLACE_CMD} -e 's||"bsdi_dvd.h"|' \ ${WRKSRC}/sys/cdrom/gstcdplayer_ioctl.c \ ${WRKSRC}/sys/vcd/vcdsrc.c \ ${WRKSRC}/sys/vcd/vcdsrc.h # hermes is required for gstreamer-player to work # since it is currently the only colorspace plugin available # XXX However, it currently does not work on sparc64. .if ${ARCH} != "sparc64" WITH_HERMES= yes .endif # gnomevfs is required for gstreamer-player to work WITH_GNOMEVFS= yes # Add default MAD support. This is required for rhythmbox to work. WITH_MAD= yes ## ## auto detect possible plugins ## # aalib .if exists(${LOCALBASE}/lib/libaa.a) WITH_AALIB=yes .endif # arts .if exists(${LOCALBASE}/lib/libartsc.so.0) && !defined(WITHOUT_ARTS) WITH_ARTS=yes .endif # cairo .if exists(${LOCALBASE}/lib/libcairo.a) WITH_CAIRO=yes .endif # cdparanoia .if exists(${LOCALBASE}/lib/libcdda_paranoia.a) WITH_CDPARANOIA=yes .endif # dts .if exists(${LOCALBASE}/lib/libdts_pic.a) WITH_DTS=yes .endif # faac .if exists(${LOCALBASE}/lib/libfaac.a) WITH_FAAC=yes .endif # esound .if (${HAVE_GNOME:Mesound}!="") WITH_ESOUND=yes .endif # faad .if exists(${LOCALBASE}/lib/libfaad.a) WITH_FAAD=yes .endif # flac .if exists(${LOCALBASE}/lib/libFLAC.a) WITH_FLAC=yes .endif # freetype .if exists(${LOCALBASE}/lib/libfreetype.a) WITH_FREETYPE=yes .endif # gdkpixbuf .if ${HAVE_GNOME:Mgtk20}!="" WITH_GDKPIXBUF=yes .endif # lame .if exists(${LOCALBASE}/lib/libmp3lame.a) WITH_LAME=yes .endif # gnomevfs .if ${HAVE_GNOME:Mgnomevfs2}!="" WITH_GNOMEVFS=yes .endif # jack .if exists(${LOCALBASE}/lib/libjack.so.0) WITH_JACK=YES .endif # libcaca .if exists(${LOCALBASE}/lib/libcaca.a) WITH_LIBCACA=yes .endif # libmng .if exists(${LOCALBASE}/lib/libmng.a) WITH_MNG=yes .endif # libmms .if exists(${LOCALBASE}/lib/libmms.a) WITH_MMS=yes .endif # gsm .if exists(${LOCALBASE}/lib/libgsm.a) WITH_GSM=yes .endif # Hermes .if exists (${LOCALBASE}/lib/libHermes.a) WITH_HERMES=yes .endif # jpeg .if exists(${LOCALBASE}/lib/libjpeg.a) WITH_JPEG=yes .endif # ladspa .if exists(${LOCALBASE}/include/ladspa.h) WITH_LADSPA=yes .endif # liba52 .if exists(${LOCALBASE}/lib/liba52.a) WITH_LIBA52=yes .endif # libaudiofile .if exists(${LOCALBASE}/lib/libaudiofile.a) WITH_LIBAUDIOFILE=yes .endif # libcdaudio .if exists(${LOCALBASE}/lib/libcdaudio.a) WITH_LIBCDAUDIO=yes .endif # libdv .if exists(${LOCALBASE}/lib/libdv.a) WITH_LIBDV=yes .endif # libdvdnav .if exists(${LOCALBASE}/lib/libdvdnav.so) WITH_LIBDVDNAV=yes .endif # libdvdread .if exists(${LOCALBASE}/lib/libdvdread.a) WITH_LIBDVDREAD=yes .endif # libfame .if exists(${LOCALBASE}/lib/libfame.a) WITH_LIBFAME=yes .endif # libmikmod .if exists(${LOCALBASE}/lib/libmikmod.a) WITH_LIBMIKMOD=yes .endif # libmpeg2 .if exists(${LOCALBASE}/lib/libmpeg2.a) WITH_LIBMPEG2=yes .endif # libmusicbrainz .if exists(${LOCALBASE}/lib/libmusicbrainz.a) WITH_LIBMUSICBRAINZ=yes .endif # libshout .if exists(${LOCALBASE}/lib/libshout.so.2) WITH_LIBSHOUT=yes .endif # libsidplay .if exists(${LOCALBASE}/lib/libsidplay.a) WITH_LIBSIDPLAY=yes .endif # libsndfile .if exists(${LOCALBASE}/lib/libsndfile.a) WITH_LIBSNDFILE=yes .endif # libtheora .if exists(${LOCALBASE}/lib/libtheora.a) WITH_LIBTHEORA=yes .endif # libvisual .if exists(${LOCALBASE}/lib/libvisual.a) WITH_LIBVISUAL=yes .endif # mad .if exists(${LOCALBASE}/lib/libmad.a) WITH_MAD=yes .endif # mjpegtools .if exists(${LOCALBASE}/lib/libmjpegutils.a) WITH_MJPEGTOOLS=yes .endif # musepack .if exists(${LOCALBASE}/lib/libmusepack.a) WITH_MUSEPACK=yes .endif # nas .if exists(${X11BASE}/lib/libaudio.a) WITH_NAS=YES .endif # ogg .if exists(${LOCALBASE}/lib/libogg.a) WITH_OGG=yes .endif # pango .if exists(${X11BASE}/lib/libpangoft2-1.0.a) WITH_PANGO=yes .endif # png .if exists(${LOCALBASE}/lib/libpng.a) WITH_PNG=yes .endif # polypaudio .if exists(${LOCALBASE}/lib/libpolyp-0.7.a) WITH_POLYPAUDIO=yes .endif # sdl .if exists(${LOCALBASE}/lib/libSDL-1.1.a) WITH_SDL=yes .endif # smoothwave .if exists(${X11BASE}/lib/libgtk-x11-2.0.a) WITH_SMOOTHWAVE=yes .endif # speex .if exists(${LOCALBASE}/lib/libspeex.a) WITH_SPEEX=yes .endif # swfdec .if exists(${X11BASE}/lib/libswfdec-0.3.a) WITH_SWFDEC=yes .endif # vorbis .if exists(${LOCALBASE}/lib/libvorbis.a) WITH_VORBIS=yes .endif # vorbisidec .if exists(${LOCALBASE}/lib/libvorbisidec.a) WITH_VORBISIDEC=yes .endif # xine # this plugins is meant to support plugins that gstreamer doesn't have (yet) .if exists(${X11BASE}/lib/libxine.so.12) WITH_XINE=yes .endif # xvid .if exists(${LOCALBASE}/lib/libxvidcore.so.4) WITH_XVID=yes .endif ## ## control CONFIGURE options ## # aalib .ifndef(WITH_AALIB) CONFIGURE_ARGS+= --disable-aalib \ --disable-aalibtest PLIST_SUB+= AALIB="@comment " .else LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib CONFIGURE_ARGS+= --with-aalib-prefix=${LOCALBASE} \ --with-aalib-exec-prefix=${LOCALBASE} PLIST_SUB+= AALIB="" .endif # arts .ifndef(WITH_ARTS) CONFIGURE_ARGS+= --disable-arts \ --disable-artsc \ --disable-artstest PLIST_SUB+= ARTS="@comment " .else LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+= --with-arts-prefix=${LOCALBASE} \ --with-arts-exec-prefix=${LOCALBASE} PLIST_SUB+= ARTS="" .endif # cairo .ifndef(WITH_CAIRO) CONFIGURE_ARGS+= --disable-cairo PLIST_SUB+= CAIRO="@comment " .else LIB_DEPENDS+= cairo.1:${PORTSDIR}/graphics/cairo PLIST_SUB+= CAIRO="" .endif # cdparanoia .ifndef(WITH_CDPARANOIA) CONFIGURE_ARGS+= --disable-cdparanoia PLIST_SUB+= CDPARANOIA="@comment " .else LIB_DEPENDS+= cdda_interface.0:${PORTSDIR}/audio/cdparanoia PLIST_SUB+= CDPARANOIA="" .endif # cdrom default device .ifdef(WITH_CDROM_DEVICE) DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} .else . if ${OSVERSION} < 500000 DEFAULT_CDROM_DEVICE=/dev/acd0c . else DEFAULT_CDROM_DEVICE=/dev/acd0 . endif .endif # dts .ifndef(WITH_DTS) CONFIGURE_ARGS+= --disable-dts PLIST_SUB+= DTS="@comment " .else BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts_pic.a:${PORTSDIR}/multimedia/libdts RUN_DEPENDS+= ${LOCALBASE}/lib/libdts_pic.a:${PORTSDIR}/multimedia/libdts PLIST_SUB+= DTS="" .endif # dvd default device .ifdef(WITH_DVD_DEVICE) DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} .else . if ${OSVERSION} < 500000 DEFAULT_DVD_DEVICE=/dev/acd0c . else DEFAULT_DVD_DEVICE=/dev/acd0 . endif .endif # esound .ifndef(WITH_ESOUND) CONFIGURE_ARGS+= --disable-esd \ --disable-esdtest PLIST_SUB+= ESOUND="@comment " .else USE_GNOME+= esound CONFIGURE_ARGS+= --with-esd-prefix=${LOCALBASE} \ --with-esd-exec-prefix=${LOCALBASE} PLIST_SUB+= ESOUND="" .endif # faac .ifndef(WITH_FAAC) CONFIGURE_ARGS+= --disable-faac PLIST_SUB+= FAAC="@comment " .else LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac PLIST_SUB+= FAAC="" .endif # faad .ifndef(WITH_FAAD) CONFIGURE_ARGS+= --disable-faad PLIST_SUB+= FAAD="@comment " .else LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad PLIST_SUB+= FAAD="" .endif # flac .ifndef(WITH_FLAC) CONFIGURE_ARGS+= --disable-flac PLIST_SUB+= FLAC="@comment " .else LIB_DEPENDS+= FLAC.5:${PORTSDIR}/audio/flac PLIST_SUB+= FLAC="" .endif # freetype .ifndef(WITH_FREETYPE) CONFIGURE_ARGS+= --disable-freetypetest PLIST_SUB+= FREETYPE="@comment " .else LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 CONFIGURE_ARGS+= --with-ft-prefix=${LOCALBASE} \ --with-ft-exec-prefix=${LOCALBASE} PLIST_SUB+= FREETYPE="" .endif # gdkpixbuf .ifndef(WITH_GDKPIXBUF) CONFIGURE_ARGS+= --disable-gdk_pixbuf PLIST_SUB+= GDKPIXBUF="@comment " .else USE_GNOME+= gtk20 PLIST_SUB+= GDKPIXBUF="" .endif # gnomevfs .ifndef(WITH_GNOMEVFS) CONFIGURE_ARGS+= --disable-gnome_vfs PLIST_SUB+= GNOMEVFS="@comment " .else USE_GNOME+= gnomevfs2 PLIST_SUB+= GNOMEVFS="" .endif # gsm .ifndef(WITH_GSM) CONFIGURE_ARGS+= --disable-gsm PLIST_SUB+= GSM="@comment " .else LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm PLIST_SUB+= GSM="" .endif # jack .ifndef(WITH_JACK) CONFIGURE_ARGS+= --disable-jack PLIST_SUB+= JACK="@comment " .else LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack PLIST_SUB+= JACK="" .endif # Hermes .ifndef(WITH_HERMES) CONFIGURE_ARGS+= --disable-hermes PLIST_SUB+= HERMES="@comment " .else LIB_DEPENDS+= Hermes.1:${PORTSDIR}/graphics/Hermes PLIST_SUB+= HERMES="" .endif # jpeg .ifndef(WITH_JPEG) CONFIGURE_ARGS+= --disable-jpeg PLIST_SUB+= JPEG="@comment " .else LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg PLIST_SUB+= JPEG="" .endif # ladspa .ifndef(WITH_LADSPA) CONFIGURE_ARGS+= --disable-ladspa PLIST_SUB+= LADSPA="@comment " .else BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa PLIST_SUB+= LADSPA="" .endif # lame .ifndef(WITH_LAME) CONFIGURE_ARGS+= --disable-lame PLIST_SUB+= LAME="@comment " .else LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame PLIST_SUB+= LAME="" .endif # liba52 .ifndef(WITH_LIBA52) CONFIGURE_ARGS+= --disable-a52dec PLIST_SUB+= LIBA52="@comment " .else LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 CONFIGURE_ARGS+= --with-a52dec-prefix=${LOCALBASE} PLIST_SUB+= LIBA52="" .endif # libaudiofile .ifndef(WITH_LIBAUDIOFILE) CONFIGURE_ARGS+= --disable-audiofile PLIST_SUB+= LIBAUDIOFILE="@comment " .else LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile PLIST_SUB+= LIBAUDIOFILE="" .endif # libcaca .ifndef(WITH_LIBCACA) CONFIGURE_ARGS+= --disable-libcaca PLIST_SUB+= LIBCACA="@comment " .else BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca PLIST_SUB+= LIBCACA="" .endif # libcdaudio .ifndef(WITH_LIBCDAUDIO) CONFIGURE_ARGS+= --disable-cdaudio PLIST_SUB+= LIBCDAUDIO="@comment " .else LIB_DEPENDS+= cdaudio.1:${PORTSDIR}/audio/libcdaudio PLIST_SUB+= LIBCDAUDIO="" .endif # libdv .ifndef(WITH_LIBDV) CONFIGURE_ARGS+= --disable-libdv PLIST_SUB+= LIBDV="@comment " .else LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv PLIST_SUB+= LIBDV="" .endif # libdvdnav .ifndef(WITH_LIBDVDNAV) CONFIGURE_ARGS+= --disable-dvdnav PLIST_SUB+= LIBDVDNAV="@comment " .else LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav PLIST_SUB+= LIBDVDNAV="" .endif # libdvdread .ifndef(WITH_LIBDVDREAD) CONFIGURE_ARGS+= --disable-dvdread PLIST_SUB+= LIBDVDREAD="@comment " .else LIB_DEPENDS+= dvdread.3:${PORTSDIR}/multimedia/libdvdread PLIST_SUB+= LIBDVDREAD="" .endif # libfame .ifndef(WITH_LIBFAME) CONFIGURE_ARGS+= --disable-libfame \ --disable-libfametest PLIST_SUB+= LIBFAME="@comment " .else LIB_DEPENDS+= fame-0.9.1:${PORTSDIR}/multimedia/libfame CONFIGURE_ARGS+= --with-libfame-prefix=${LOCALBASE} \ --with-libfame-exec-prefix=${LOCALBASE} PLIST_SUB+= LIBFAME="" .endif # libmikmod .ifndef(WITH_LIBMIKMOD) CONFIGURE_ARGS+= --disable-libmikmodtest \ --disable-mikmod PLIST_SUB+= LIBMIKMOD="@comment " .else LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod CONFIGURE_ARGS+= --with-libmikmod-prefix=${LOCALBASE} \ --with-libmikmod-exec-prefix=${LOCALBASE} PLIST_SUB+= LIBMIKMOD="" .endif # libmpeg2 .ifndef(WITH_LIBMPEG2) CONFIGURE_ARGS+= --disable-mpeg2dec PLIST_SUB+= LIBMPEG2="@comment " .else LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 PLIST_SUB+= LIBMPEG2="" .endif # libmusicbrainz .ifndef(WITH_LIBMUSICBRAINZ) CONFIGURE_ARGS+= --disable-musicbrainz PLIST_SUB+= LIBMUSICBRAINZ="@comment " .else LIB_DEPENDS+= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz PLIST_SUB+= LIBMUSICBRAINZ="" .endif # libshout .ifndef(WITH_LIBSHOUT) CONFIGURE_ARGS+= --disable-shout PLIST_SUB+= LIBSHOUT="@comment " .else LIB_DEPENDS+= shout.2:${PORTSDIR}/audio/libshout PLIST_SUB+= LIBSHOUT="" .endif # libsidplay .ifndef(WITH_LIBSIDPLAY) CONFIGURE_ARGS+= --disable-sidplay PLIST_SUB+= LIBSIDPLAY="@comment " .else LIB_DEPENDS+= sidplay.1:${PORTSDIR}/audio/libsidplay PLIST_SUB+= LIBSIDPLAY="" .endif # libsndfile .ifndef(WITH_LIBSNDFILE) CONFIGURE_ARGS+= --disable-sndfile PLIST_SUB+= LIBSNDFILE="@comment " .else LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile PLIST_SUB+= LIBSNDFILE="" .endif # libtheora .ifndef(WITH_LIBTHEORA) CONFIGURE_ARGS+= --disable-theora PLIST_SUB+= LIBTHEORA="@comment " .else -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +LIB_DEPENDS+= theora.1:${PORTSDIR}/multimedia/libtheora PLIST_SUB+= LIBTHEORA="" .endif # libvisual .ifndef(WITH_LIBVISUAL) CONFIGURE_ARGS+= --disable-libvisual PLIST_SUB+= LIBVISUAL="@comment " .else LIB_DEPENDS+= visual.0:${PORTSDIR}/graphics/libvisual PLIST_SUB+= LIBVISUAL="" .endif # mad .ifndef(WITH_MAD) CONFIGURE_ARGS+= --disable-mad PLIST_SUB+= LIBMAD="@comment " .else LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad \ id3tag.2:${PORTSDIR}/audio/libid3tag PLIST_SUB+= LIBMAD="" .endif # mjpegtools .ifndef(WITH_MJPEGTOOLS) CONFIGURE_ARGS+= --disable-mpeg2enc --disable-mplex PLIST_SUB+= MJPEGTOOLS="@comment " .else LIB_DEPENDS+= lavjpeg-1.6.2:${PORTSDIR}/multimedia/mjpegtools EXTRA_BUILD_DIR+= ext/mpeg2enc # XXX - make sure CONFIGURE works with mpeg2enc even with "ccache # c++" ... weird but necessary CONFIGURE_ENV+= HAVE_CXX=yes PLIST_SUB+= MJPEGTOOLS="" .endif # musepack .ifndef(WITH_MUSEPACK) CONFIGURE_ARGS+= --disable-musepack PLIST_SUB+= MUSEPACK="@comment " .else LIB_DEPENDS+= musepack.1:${PORTSDIR}/audio/libmusepack PLIST_SUB+= MUSEPACK="" .endif # nas .ifndef(WITH_NAS) CONFIGURE_ARGS+= --disable-nas PLIST_SUB+= NAS="@comment " .else LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas PLIST_SUB+= NAS="" .endif # ogg .ifndef(WITH_OGG) CONFIGURE_ARGS+= --disable-ogg \ --disable-oggtest PLIST_SUB+= OGG="@comment " .else LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg PLIST_SUB+= OGG="" .endif # oss .ifdef(WITHOUT_OSS) CONFIGURE_ARGS+= --disable-oss PLIST_SUB+= OSS="@comment " .else PLIST_SUB+= OSS="" .endif # pango .ifndef(WITH_PANGO) CONFIGURE_ARGS+= --disable-pango PLIST_SUB+= PANGO="@comment " .else USE_GNOME+= pango PLIST_SUB+= PANGO="" .endif # mng .ifndef(WITH_MNG) CONFIGURE_ARGS+= --disable-libmng PLIST_SUB+= MNG="@comment " .else LIB_DEPENDS+= mng.1:${PORTSDIR}/graphics/libmng PLIST_SUB+= MNG="" .endif # mms .ifndef(WITH_MMS) CONFIGURE_ARGS+= --disable-libmms PLIST_SUB+= MMS="@comment " .else LIB_DEPENDS+= mms.0:${PORTSDIR}/net/libmms PLIST_SUB+= MMS="" .endif # png .ifndef(WITH_PNG) CONFIGURE_ARGS+= --disable-libpng PLIST_SUB+= PNG="@comment " .else LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png PLIST_SUB+= PNG="" .endif # polypaudio .ifndef(WITH_POLYPAUDIO) CONFIGURE_ARGS+= --disable-polyp PLIST_SUB+= POLYPAUDIO="@comment " .else LIB_DEPENDS+= polyp-0.7.0:${PORTSDIR}/audio/polypaudio PLIST_SUB+= POLYPAUDIO="" .endif # sdl .ifndef(WITH_SDL) CONFIGURE_ARGS+= --disable-sdl \ --disable-sdltest PLIST_SUB+= SDL="@comment " .else USE_SDL= sdl CONFIGURE_ARGS+= --with-sdl-prefix=${LOCALBASE} \ --with-sdl-exec-prefix=${LOCALBASE} CONFIGURE_ENV+= SDL_CONFIG=${SDL_CONFIG} PLIST_SUB+= SDL="" .endif # smoothwave .ifndef(WITH_SMOOTHWAVE) CONFIGURE_ARGS+= --disable-smoothwave PLIST_SUB+= SMOOTHWAVE="@comment " .else USE_GNOME+= gtk20 PLIST_SUB+= SMOOTHWAVE="" .endif # speex .ifndef(WITH_SPEEX) CONFIGURE_ARGS+= --disable-speex PLIST_SUB+= SPEEX="@comment " .else LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex PLIST_SUB+= SPEEX="" .endif # swfdec .ifndef(WITH_SWFDEC) CONFIGURE_ARGS+= --disable-swfdec PLIST_SUB+= SWFDEC="@comment " .else LIB_DEPENDS+= swfdec-0.3.0:${PORTSDIR}/graphics/swfdec CONFIGURE_ARGS+= --enable-swfdec PLIST_SUB+= SWFDEC="" .endif # vorbis .ifndef(WITH_VORBIS) CONFIGURE_ARGS+= --disable-vorbis \ --disable-vorbistest PLIST_SUB+= VORBIS="@comment " .else LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis CONFIGURE_ARGS+= --with-vorbis=${LOCALBASE} \ --with-vorbis-libraries=${LOCALBASE}/lib \ --with-vorbis-includes=${LOCALBASE}/include PLIST_SUB+= VORBIS="" .endif # vorbisidec .ifndef(WITH_VORBISIDEC) CONFIGURE_ARGS+= --disable-ivorbis PLIST_SUB+= IVORBIS="@comment " .else LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor PLIST_SUB+= IVORBIS="" .endif # xine .ifndef(WITH_XINE) CONFIGURE_ARGS+= --disable-xine PLIST_SUB+= XINE="@comment " .else CONFIGURE_ARGS+= --enable-xine LIB_DEPENDS+= xine.12:${PORTSDIR}/multimedia/libxine PLIST_SUB+= XINE="" .endif # xvid .ifndef(WITH_XVID) CONFIGURE_ARGS+= --disable-xvid PLIST_SUB+= XVID="@comment " .else LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid PLIST_SUB+= XVID="" .endif pre-build: # This port cannot be CFLAGS safe, using p4 optimizations # break the mod plugin @${REINPLACE_CMD} -E \ -e 's|(-march=pentiu)m4|\1m3|g' \ -e 's|(-mcpu=pentiu)m4|\1m3|g' \ -e 's|(-mtune=pentiu)m)4|\1m3|g' \ ${WRKSRC}/gst/modplug/Makefile \ ${WRKSRC}/gst/modplug/libmodplug/Makefile post-build: .ifdef(EXTRA_BUILD_DIR) . for dir in ${EXTRA_BUILD_DIR} @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} . endfor .endif post-install: .ifdef(EXTRA_BUILD_DIR) . for dir in ${EXTRA_BUILD_DIR} @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} . endfor .endif # register plugins -@${X11BASE}/bin/gst-register-${GST_VERSION} \ --gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST_VERSION}/registry.xml 2>/dev/null pre-everything:: .ifndef(WITH_AALIB) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_AALIB to enable aalib Video plugin' .endif .ifdef(WITH_ARTS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITHOUT_ARTS to disable aRts Audio plugin' .else @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_ARTS to enable aRts Audio plugin' .endif .ifndef(WITH_CAIRO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_CDPARANOIA to enable cairo textoverlay plugin' .endif .ifndef(WITH_CDPARANOIA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_CDPARANOIA to enable cdparanoia Audio plugin' .endif .ifndef(WITH_CDROM_DEVICE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}' @${ECHO_MSG} '===> Define WITH_CDROM_DEVICE if you want to change the default' @${ECHO_MSG} '===> For example, make WITH_CDROM_DEVICE="/dev/somedevice"' .endif .ifndef(WITH_DTS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_DTS to enable DTS decoding support' .endif .ifndef(WITH_DVD_DEVICE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> The default DVD device is ${DEFAULT_DVD_DEVICE}' @${ECHO_MSG} '===> Define WITH_DVD_DEVICE if you want to change the default' @${ECHO_MSG} '===> For example, make WITH_DVD_DEVICE="/dev/somedevice"' .endif .ifndef(WITH_ESOUND) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_ESOUND to enable esound Audio plugin' .endif .ifndef(WITH_FAAC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FAAC to enable faac Audio plugin' .endif .ifndef(WITH_FAAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FAAD to enable faad Audio plugin' .endif .ifndef(WITH_FLAC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FLAC to enable flac Audio plugin' .endif .ifndef(WITH_FREETYPE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FREETYPE to enable freetype support' .endif .ifndef(WITH_GDKPIXBUF) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_GDKPIXBUF to enable gdk-pixbuf plugin' .endif .ifndef(WITH_GSM) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_GSM to enable gsm Audio plugin' .endif .ifndef(WITH_GNOMEVFS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_GNOMEVFS to enable gnomevfs Network plugin' .endif .ifndef(WITH_JACK) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_JACK to enable jackd audio plugin' .endif .ifndef(WITH_HERMES) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_HERMES to enable Hermes colorspace plugin' .endif .ifndef(WITH_JPEG) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_JPEG to enable jpeg Video plugin' .endif .ifndef(WITH_LADSPA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LADSPA to enable LADSPA framework Audio plugin' .endif .ifndef(WITH_LAME) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LAME to enable lame MP3 Audio plugin' .endif .ifndef(WITH_LIBA52) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBA52 to enable liba52 AC3 Audio plugin' .endif .ifndef(WITH_LIBAUDIOFILE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBAUDIOFILE to enable libaudiofile Audio plugin' .endif .ifndef(WITH_LIBCACA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBCACA to enable libcaca Video plugin' .endif .ifndef(WITH_LIBCDAUDIO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBCDAUDIO to enable libcdaudio Audio plugin' .endif .ifndef(WITH_LIBDV) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBDV to enable libdv Video plugin' .endif .ifndef(WITH_LIBDVDNAV) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBDVDNAV to enable libdvdnav Video plugin' .endif .ifndef(WITH_LIBDVDREAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBDVDREAD to enable libdvdread Video plugin' .endif .ifndef(WITH_LIBFAME) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBFAME to enable libfame Video plugin' .endif .ifndef(WITH_LIBMIKMOD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBMIKMOD to enable libmikmod Audio plugin' .endif .ifndef(WITH_LIBMPEG2) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBMPEG2 to enable libmpeg2 Video plugin' .endif .ifndef(WITH_LIBMUSICBRAINZ) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBMUSICBRAINZ to enable libmusicbrainz Audio plugin' .endif .ifndef(WITH_LIBSHOUT) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBSHOUT to enable libshout Audio plugin' .endif .ifndef(WITH_LIBSIDPLAY) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBSIDPLAY to enable libsidplay Audio plugin' .endif .ifndef(WITH_LIBSNDFILE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBSNDFILE to enable libsndfile Audio plugin' .endif .ifndef(WITH_LIBTHEORA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBTHEORA to enable libtheora Video plugin' .endif .ifndef(WITH_LIBVISUAL) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBVISUAL to enable libvisual Video plugin' .endif .ifndef(WITH_MAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MAD to enable mad Audio plugin' .endif .ifndef(WITH_MNG) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MNG to enable libmng plugin' .endif .ifndef(WITH_MMS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MMS to enable libmms network plugin' .endif .ifndef(WITH_MUSEPACK) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MUSEPACK to enable musepack Audio plugin' .endif .ifndef(WITH_NAS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_NAS to enable nas Audio plugin' .endif .ifndef(WITHOUT_OSS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITHOUT_OSS to disable OSS Audio plugin' .endif .ifndef(WITH_PANGO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_PANGO to enable pango textoverlay plugin' .endif .ifndef(WITH_PNG) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_PNG to enable png Video plugin' .endif .ifndef(WITH_POLYPAUDIO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_POLYPAUDIO to enable polypaudio audio plugin' .endif .ifndef(WITH_SDL) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SDL to enable SDL Video plugin' .endif .ifndef(WITH_SMOOTHWAVE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SMOOTHWAVE to enable Smoothwave Video plugin' .endif .ifndef(WITH_SPEEX) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SPEEX to enable Speex Video plugin' .endif .ifndef(WITH_SWFDEC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SWFDEC to enable Flash Video plugin' .endif .ifndef(WITH_VORBIS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_VORBIS to enable vorbis Audio plugin' .endif .ifndef(WITH_VORBISIDEC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_VORBISIDEC to enable vorbisidec Audio plugin' .endif .ifndef(WITH_XINE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_XINE to enable xine plugin' .endif .ifndef(WITH_XVID) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_XVID to enable xvid Video plugin' .endif .include Property changes on: head/multimedia/gstreamer-plugins/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.73 \ No newline at end of property +1.74 \ No newline at end of property Index: head/multimedia/gstreamer-plugins80/Makefile =================================================================== --- head/multimedia/gstreamer-plugins80/Makefile (revision 126328) +++ head/multimedia/gstreamer-plugins80/Makefile (revision 126329) @@ -1,1239 +1,1240 @@ # New ports collection makefile for: gstreamer plugins # Date created: Wed Jul 10 23:38:01 UTC 2002 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= gstreamer PORTVERSION= 0.8.7 +PORTREVISION= 1 CATEGORIES= multimedia audio MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-plugins/ \ ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gst-plugins/0.8 PKGNAMESUFFIX= -plugins DISTNAME= gst-plugins-${PORTVERSION} DIST_SUBDIR= gnome2 MAINTAINER= lioux@FreeBSD.org COMMENT= GStreamer written collection of plugins handling several media types LIB_DEPENDS= gstreamer-0.8.5:${PORTSDIR}/multimedia/gstreamer \ popt.0:${PORTSDIR}/devel/popt USE_X_PREFIX= yes USE_BZIP2= yes USE_GMAKE= yes USE_GNOME= gnomehack \ gnomehier \ gnomeprefix \ pkgconfig \ gconf2 USE_REINPLACE= yes USE_LIBTOOL_VER=15 GCONF_SCHEMAS= gstreamer-${GST_VERSION}.schemas CONFIGURE_ARGS= --disable-tests \ --disable-alsa \ --enable-cdrom \ --disable-divx \ --disable-dxr3 \ --disable-http \ --disable-qcam \ --disable-raw1394 \ --disable-v4l2 \ --disable-v4l \ --disable-osx_audio \ --disable-sunaudio \ --disable-dependency-tracking \ --enable-xshm \ --enable-x \ --enable-xvideo \ --enable-static # list of plugins that need some work in one way or the other to work # probable the lib needs to be ported, disable them for now. CONFIGURE_ARGS+=\ --disable-tarkin \ --disable-lcs \ --disable-shout2 \ --disable-dirac \ --disable-librfb CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib" CONFIGURE_TARGET= PLIST_SUB= \ VERSION="${GST_VERSION}" \ SHLIB_VERSION="${SHLIB_VERSION}" INSTALLS_SHLIB= yes # for various GNOME-related component detection WANT_GNOME= yes MAN1= gst-launch-ext-${GST_VERSION}.1 gst-visualise-${GST_VERSION}.1 PKG_CONFIG?="${LOCALBASE}/bin/pkg-config" SDL_CONFIG?="${LOCALBASE}/bin/sdl11-config" GST_VERSION=${PORTVERSION:C/..$//} # library minor number SHLIB_VERSION= 1 ## Additional directories which should be both built and installed ## but configure neglected to correctly identify them # cdrom/vcd support EXTRA_BUILD_DIR+= sys/vcd # modplug EXTRA_BUILD_DIR+= gst/modplug post-extract: # for cdrom/vcd support # taken from mplayer distfile # MD5 (MPlayer-1.0pre4.tar.bz2) = 83ebac0f05b192516a41fca2350ca01a @${CP} ${FILESDIR}/bsdi_dvd.h ${WRKSRC}/sys/vcd/ .include post-patch: .if ${CXXFLAGS:M*=athlon-4} || ${CXXFLAGS:M*=athlon-mp} || ${CXXFLAGS:M*=athlon-xp} # Fix gst-register when using -O -march=athlon-xp @${REINPLACE_CMD} -e 's|@CXXF|-fgcse @CXXF|g' \ ${WRKSRC}/gst/modplug/Makefile.in \ ${WRKSRC}/gst/modplug/libmodplug/Makefile.in .endif # as of this writing, FreeBSD does not support lrint* C99 math functions @${REINPLACE_CMD} -E -e \ 's|^#define.*LRINT.*$$||' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} # respect CFLAGS @${FIND} ${WRKSRC} -type f -name Makefile.in | \ ${XARGS} -n 10 ${REINPLACE_CMD} -E -e \ 's,-O(2|3),,; \ s|-mcpu=i486||' # mcopidl takes the file as the last argument @${REINPLACE_CMD} -E -e \ 's|(mcopidl.+)(\$$<)(.+)$$|\1 \3 \2|' \ ${WRKSRC}/ext/arts/Makefile.in # malloc.h was deprecated in favor of stdlib.h # inttypes.h not stdint.h @${FIND} ${WRKSRC} -type f | \ ${XARGS} -n 10 ${REINPLACE_CMD} -e \ 's|malloc\.h|stdlib.h|; \ s|stdint\.h|inttypes.h|' # force libaudiofile detection @${REINPLACE_CMD} -E -e \ 's|^.*afOpenVirtualFile[[:space:]]*\(\);|;|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} # cdrom default device @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ ${WRKSRC}/ext/cdparanoia/gstcdparanoia.c \ ${WRKSRC}/sys/cdrom/gstcdplayer.c \ ${WRKSRC}/sys/vcd/vcdsrc.c # dvd default device @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ ${WRKSRC}/ext/dvdnav/dvdnavsrc.c \ ${WRKSRC}/ext/dvdread/dvdreadsrc.c # cdrom/vcd support @${REINPLACE_CMD} -e 's||"bsdi_dvd.h"|' \ ${WRKSRC}/sys/cdrom/gstcdplayer_ioctl.c \ ${WRKSRC}/sys/vcd/vcdsrc.c \ ${WRKSRC}/sys/vcd/vcdsrc.h # hermes is required for gstreamer-player to work # since it is currently the only colorspace plugin available # XXX However, it currently does not work on sparc64. .if ${ARCH} != "sparc64" WITH_HERMES= yes .endif # gnomevfs is required for gstreamer-player to work WITH_GNOMEVFS= yes # Add default MAD support. This is required for rhythmbox to work. WITH_MAD= yes ## ## auto detect possible plugins ## # aalib .if exists(${LOCALBASE}/lib/libaa.a) WITH_AALIB=yes .endif # arts .if exists(${LOCALBASE}/lib/libartsc.so.0) && !defined(WITHOUT_ARTS) WITH_ARTS=yes .endif # cairo .if exists(${LOCALBASE}/lib/libcairo.a) WITH_CAIRO=yes .endif # cdparanoia .if exists(${LOCALBASE}/lib/libcdda_paranoia.a) WITH_CDPARANOIA=yes .endif # dts .if exists(${LOCALBASE}/lib/libdts_pic.a) WITH_DTS=yes .endif # faac .if exists(${LOCALBASE}/lib/libfaac.a) WITH_FAAC=yes .endif # esound .if (${HAVE_GNOME:Mesound}!="") WITH_ESOUND=yes .endif # faad .if exists(${LOCALBASE}/lib/libfaad.a) WITH_FAAD=yes .endif # flac .if exists(${LOCALBASE}/lib/libFLAC.a) WITH_FLAC=yes .endif # freetype .if exists(${LOCALBASE}/lib/libfreetype.a) WITH_FREETYPE=yes .endif # gdkpixbuf .if ${HAVE_GNOME:Mgtk20}!="" WITH_GDKPIXBUF=yes .endif # lame .if exists(${LOCALBASE}/lib/libmp3lame.a) WITH_LAME=yes .endif # gnomevfs .if ${HAVE_GNOME:Mgnomevfs2}!="" WITH_GNOMEVFS=yes .endif # jack .if exists(${LOCALBASE}/lib/libjack.so.0) WITH_JACK=YES .endif # libcaca .if exists(${LOCALBASE}/lib/libcaca.a) WITH_LIBCACA=yes .endif # libmng .if exists(${LOCALBASE}/lib/libmng.a) WITH_MNG=yes .endif # libmms .if exists(${LOCALBASE}/lib/libmms.a) WITH_MMS=yes .endif # gsm .if exists(${LOCALBASE}/lib/libgsm.a) WITH_GSM=yes .endif # Hermes .if exists (${LOCALBASE}/lib/libHermes.a) WITH_HERMES=yes .endif # jpeg .if exists(${LOCALBASE}/lib/libjpeg.a) WITH_JPEG=yes .endif # ladspa .if exists(${LOCALBASE}/include/ladspa.h) WITH_LADSPA=yes .endif # liba52 .if exists(${LOCALBASE}/lib/liba52.a) WITH_LIBA52=yes .endif # libaudiofile .if exists(${LOCALBASE}/lib/libaudiofile.a) WITH_LIBAUDIOFILE=yes .endif # libcdaudio .if exists(${LOCALBASE}/lib/libcdaudio.a) WITH_LIBCDAUDIO=yes .endif # libdv .if exists(${LOCALBASE}/lib/libdv.a) WITH_LIBDV=yes .endif # libdvdnav .if exists(${LOCALBASE}/lib/libdvdnav.so) WITH_LIBDVDNAV=yes .endif # libdvdread .if exists(${LOCALBASE}/lib/libdvdread.a) WITH_LIBDVDREAD=yes .endif # libfame .if exists(${LOCALBASE}/lib/libfame.a) WITH_LIBFAME=yes .endif # libmikmod .if exists(${LOCALBASE}/lib/libmikmod.a) WITH_LIBMIKMOD=yes .endif # libmpeg2 .if exists(${LOCALBASE}/lib/libmpeg2.a) WITH_LIBMPEG2=yes .endif # libmusicbrainz .if exists(${LOCALBASE}/lib/libmusicbrainz.a) WITH_LIBMUSICBRAINZ=yes .endif # libshout .if exists(${LOCALBASE}/lib/libshout.so.2) WITH_LIBSHOUT=yes .endif # libsidplay .if exists(${LOCALBASE}/lib/libsidplay.a) WITH_LIBSIDPLAY=yes .endif # libsndfile .if exists(${LOCALBASE}/lib/libsndfile.a) WITH_LIBSNDFILE=yes .endif # libtheora .if exists(${LOCALBASE}/lib/libtheora.a) WITH_LIBTHEORA=yes .endif # libvisual .if exists(${LOCALBASE}/lib/libvisual.a) WITH_LIBVISUAL=yes .endif # mad .if exists(${LOCALBASE}/lib/libmad.a) WITH_MAD=yes .endif # mjpegtools .if exists(${LOCALBASE}/lib/libmjpegutils.a) WITH_MJPEGTOOLS=yes .endif # musepack .if exists(${LOCALBASE}/lib/libmusepack.a) WITH_MUSEPACK=yes .endif # nas .if exists(${X11BASE}/lib/libaudio.a) WITH_NAS=YES .endif # ogg .if exists(${LOCALBASE}/lib/libogg.a) WITH_OGG=yes .endif # pango .if exists(${X11BASE}/lib/libpangoft2-1.0.a) WITH_PANGO=yes .endif # png .if exists(${LOCALBASE}/lib/libpng.a) WITH_PNG=yes .endif # polypaudio .if exists(${LOCALBASE}/lib/libpolyp-0.7.a) WITH_POLYPAUDIO=yes .endif # sdl .if exists(${LOCALBASE}/lib/libSDL-1.1.a) WITH_SDL=yes .endif # smoothwave .if exists(${X11BASE}/lib/libgtk-x11-2.0.a) WITH_SMOOTHWAVE=yes .endif # speex .if exists(${LOCALBASE}/lib/libspeex.a) WITH_SPEEX=yes .endif # swfdec .if exists(${X11BASE}/lib/libswfdec-0.3.a) WITH_SWFDEC=yes .endif # vorbis .if exists(${LOCALBASE}/lib/libvorbis.a) WITH_VORBIS=yes .endif # vorbisidec .if exists(${LOCALBASE}/lib/libvorbisidec.a) WITH_VORBISIDEC=yes .endif # xine # this plugins is meant to support plugins that gstreamer doesn't have (yet) .if exists(${X11BASE}/lib/libxine.so.12) WITH_XINE=yes .endif # xvid .if exists(${LOCALBASE}/lib/libxvidcore.so.4) WITH_XVID=yes .endif ## ## control CONFIGURE options ## # aalib .ifndef(WITH_AALIB) CONFIGURE_ARGS+= --disable-aalib \ --disable-aalibtest PLIST_SUB+= AALIB="@comment " .else LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib CONFIGURE_ARGS+= --with-aalib-prefix=${LOCALBASE} \ --with-aalib-exec-prefix=${LOCALBASE} PLIST_SUB+= AALIB="" .endif # arts .ifndef(WITH_ARTS) CONFIGURE_ARGS+= --disable-arts \ --disable-artsc \ --disable-artstest PLIST_SUB+= ARTS="@comment " .else LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+= --with-arts-prefix=${LOCALBASE} \ --with-arts-exec-prefix=${LOCALBASE} PLIST_SUB+= ARTS="" .endif # cairo .ifndef(WITH_CAIRO) CONFIGURE_ARGS+= --disable-cairo PLIST_SUB+= CAIRO="@comment " .else LIB_DEPENDS+= cairo.1:${PORTSDIR}/graphics/cairo PLIST_SUB+= CAIRO="" .endif # cdparanoia .ifndef(WITH_CDPARANOIA) CONFIGURE_ARGS+= --disable-cdparanoia PLIST_SUB+= CDPARANOIA="@comment " .else LIB_DEPENDS+= cdda_interface.0:${PORTSDIR}/audio/cdparanoia PLIST_SUB+= CDPARANOIA="" .endif # cdrom default device .ifdef(WITH_CDROM_DEVICE) DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} .else . if ${OSVERSION} < 500000 DEFAULT_CDROM_DEVICE=/dev/acd0c . else DEFAULT_CDROM_DEVICE=/dev/acd0 . endif .endif # dts .ifndef(WITH_DTS) CONFIGURE_ARGS+= --disable-dts PLIST_SUB+= DTS="@comment " .else BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts_pic.a:${PORTSDIR}/multimedia/libdts RUN_DEPENDS+= ${LOCALBASE}/lib/libdts_pic.a:${PORTSDIR}/multimedia/libdts PLIST_SUB+= DTS="" .endif # dvd default device .ifdef(WITH_DVD_DEVICE) DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} .else . if ${OSVERSION} < 500000 DEFAULT_DVD_DEVICE=/dev/acd0c . else DEFAULT_DVD_DEVICE=/dev/acd0 . endif .endif # esound .ifndef(WITH_ESOUND) CONFIGURE_ARGS+= --disable-esd \ --disable-esdtest PLIST_SUB+= ESOUND="@comment " .else USE_GNOME+= esound CONFIGURE_ARGS+= --with-esd-prefix=${LOCALBASE} \ --with-esd-exec-prefix=${LOCALBASE} PLIST_SUB+= ESOUND="" .endif # faac .ifndef(WITH_FAAC) CONFIGURE_ARGS+= --disable-faac PLIST_SUB+= FAAC="@comment " .else LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac PLIST_SUB+= FAAC="" .endif # faad .ifndef(WITH_FAAD) CONFIGURE_ARGS+= --disable-faad PLIST_SUB+= FAAD="@comment " .else LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad PLIST_SUB+= FAAD="" .endif # flac .ifndef(WITH_FLAC) CONFIGURE_ARGS+= --disable-flac PLIST_SUB+= FLAC="@comment " .else LIB_DEPENDS+= FLAC.5:${PORTSDIR}/audio/flac PLIST_SUB+= FLAC="" .endif # freetype .ifndef(WITH_FREETYPE) CONFIGURE_ARGS+= --disable-freetypetest PLIST_SUB+= FREETYPE="@comment " .else LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 CONFIGURE_ARGS+= --with-ft-prefix=${LOCALBASE} \ --with-ft-exec-prefix=${LOCALBASE} PLIST_SUB+= FREETYPE="" .endif # gdkpixbuf .ifndef(WITH_GDKPIXBUF) CONFIGURE_ARGS+= --disable-gdk_pixbuf PLIST_SUB+= GDKPIXBUF="@comment " .else USE_GNOME+= gtk20 PLIST_SUB+= GDKPIXBUF="" .endif # gnomevfs .ifndef(WITH_GNOMEVFS) CONFIGURE_ARGS+= --disable-gnome_vfs PLIST_SUB+= GNOMEVFS="@comment " .else USE_GNOME+= gnomevfs2 PLIST_SUB+= GNOMEVFS="" .endif # gsm .ifndef(WITH_GSM) CONFIGURE_ARGS+= --disable-gsm PLIST_SUB+= GSM="@comment " .else LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm PLIST_SUB+= GSM="" .endif # jack .ifndef(WITH_JACK) CONFIGURE_ARGS+= --disable-jack PLIST_SUB+= JACK="@comment " .else LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack PLIST_SUB+= JACK="" .endif # Hermes .ifndef(WITH_HERMES) CONFIGURE_ARGS+= --disable-hermes PLIST_SUB+= HERMES="@comment " .else LIB_DEPENDS+= Hermes.1:${PORTSDIR}/graphics/Hermes PLIST_SUB+= HERMES="" .endif # jpeg .ifndef(WITH_JPEG) CONFIGURE_ARGS+= --disable-jpeg PLIST_SUB+= JPEG="@comment " .else LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg PLIST_SUB+= JPEG="" .endif # ladspa .ifndef(WITH_LADSPA) CONFIGURE_ARGS+= --disable-ladspa PLIST_SUB+= LADSPA="@comment " .else BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa PLIST_SUB+= LADSPA="" .endif # lame .ifndef(WITH_LAME) CONFIGURE_ARGS+= --disable-lame PLIST_SUB+= LAME="@comment " .else LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame PLIST_SUB+= LAME="" .endif # liba52 .ifndef(WITH_LIBA52) CONFIGURE_ARGS+= --disable-a52dec PLIST_SUB+= LIBA52="@comment " .else LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 CONFIGURE_ARGS+= --with-a52dec-prefix=${LOCALBASE} PLIST_SUB+= LIBA52="" .endif # libaudiofile .ifndef(WITH_LIBAUDIOFILE) CONFIGURE_ARGS+= --disable-audiofile PLIST_SUB+= LIBAUDIOFILE="@comment " .else LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile PLIST_SUB+= LIBAUDIOFILE="" .endif # libcaca .ifndef(WITH_LIBCACA) CONFIGURE_ARGS+= --disable-libcaca PLIST_SUB+= LIBCACA="@comment " .else BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca PLIST_SUB+= LIBCACA="" .endif # libcdaudio .ifndef(WITH_LIBCDAUDIO) CONFIGURE_ARGS+= --disable-cdaudio PLIST_SUB+= LIBCDAUDIO="@comment " .else LIB_DEPENDS+= cdaudio.1:${PORTSDIR}/audio/libcdaudio PLIST_SUB+= LIBCDAUDIO="" .endif # libdv .ifndef(WITH_LIBDV) CONFIGURE_ARGS+= --disable-libdv PLIST_SUB+= LIBDV="@comment " .else LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv PLIST_SUB+= LIBDV="" .endif # libdvdnav .ifndef(WITH_LIBDVDNAV) CONFIGURE_ARGS+= --disable-dvdnav PLIST_SUB+= LIBDVDNAV="@comment " .else LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav PLIST_SUB+= LIBDVDNAV="" .endif # libdvdread .ifndef(WITH_LIBDVDREAD) CONFIGURE_ARGS+= --disable-dvdread PLIST_SUB+= LIBDVDREAD="@comment " .else LIB_DEPENDS+= dvdread.3:${PORTSDIR}/multimedia/libdvdread PLIST_SUB+= LIBDVDREAD="" .endif # libfame .ifndef(WITH_LIBFAME) CONFIGURE_ARGS+= --disable-libfame \ --disable-libfametest PLIST_SUB+= LIBFAME="@comment " .else LIB_DEPENDS+= fame-0.9.1:${PORTSDIR}/multimedia/libfame CONFIGURE_ARGS+= --with-libfame-prefix=${LOCALBASE} \ --with-libfame-exec-prefix=${LOCALBASE} PLIST_SUB+= LIBFAME="" .endif # libmikmod .ifndef(WITH_LIBMIKMOD) CONFIGURE_ARGS+= --disable-libmikmodtest \ --disable-mikmod PLIST_SUB+= LIBMIKMOD="@comment " .else LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod CONFIGURE_ARGS+= --with-libmikmod-prefix=${LOCALBASE} \ --with-libmikmod-exec-prefix=${LOCALBASE} PLIST_SUB+= LIBMIKMOD="" .endif # libmpeg2 .ifndef(WITH_LIBMPEG2) CONFIGURE_ARGS+= --disable-mpeg2dec PLIST_SUB+= LIBMPEG2="@comment " .else LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 PLIST_SUB+= LIBMPEG2="" .endif # libmusicbrainz .ifndef(WITH_LIBMUSICBRAINZ) CONFIGURE_ARGS+= --disable-musicbrainz PLIST_SUB+= LIBMUSICBRAINZ="@comment " .else LIB_DEPENDS+= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz PLIST_SUB+= LIBMUSICBRAINZ="" .endif # libshout .ifndef(WITH_LIBSHOUT) CONFIGURE_ARGS+= --disable-shout PLIST_SUB+= LIBSHOUT="@comment " .else LIB_DEPENDS+= shout.2:${PORTSDIR}/audio/libshout PLIST_SUB+= LIBSHOUT="" .endif # libsidplay .ifndef(WITH_LIBSIDPLAY) CONFIGURE_ARGS+= --disable-sidplay PLIST_SUB+= LIBSIDPLAY="@comment " .else LIB_DEPENDS+= sidplay.1:${PORTSDIR}/audio/libsidplay PLIST_SUB+= LIBSIDPLAY="" .endif # libsndfile .ifndef(WITH_LIBSNDFILE) CONFIGURE_ARGS+= --disable-sndfile PLIST_SUB+= LIBSNDFILE="@comment " .else LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile PLIST_SUB+= LIBSNDFILE="" .endif # libtheora .ifndef(WITH_LIBTHEORA) CONFIGURE_ARGS+= --disable-theora PLIST_SUB+= LIBTHEORA="@comment " .else -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +LIB_DEPENDS+= theora.1:${PORTSDIR}/multimedia/libtheora PLIST_SUB+= LIBTHEORA="" .endif # libvisual .ifndef(WITH_LIBVISUAL) CONFIGURE_ARGS+= --disable-libvisual PLIST_SUB+= LIBVISUAL="@comment " .else LIB_DEPENDS+= visual.0:${PORTSDIR}/graphics/libvisual PLIST_SUB+= LIBVISUAL="" .endif # mad .ifndef(WITH_MAD) CONFIGURE_ARGS+= --disable-mad PLIST_SUB+= LIBMAD="@comment " .else LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad \ id3tag.2:${PORTSDIR}/audio/libid3tag PLIST_SUB+= LIBMAD="" .endif # mjpegtools .ifndef(WITH_MJPEGTOOLS) CONFIGURE_ARGS+= --disable-mpeg2enc --disable-mplex PLIST_SUB+= MJPEGTOOLS="@comment " .else LIB_DEPENDS+= lavjpeg-1.6.2:${PORTSDIR}/multimedia/mjpegtools EXTRA_BUILD_DIR+= ext/mpeg2enc # XXX - make sure CONFIGURE works with mpeg2enc even with "ccache # c++" ... weird but necessary CONFIGURE_ENV+= HAVE_CXX=yes PLIST_SUB+= MJPEGTOOLS="" .endif # musepack .ifndef(WITH_MUSEPACK) CONFIGURE_ARGS+= --disable-musepack PLIST_SUB+= MUSEPACK="@comment " .else LIB_DEPENDS+= musepack.1:${PORTSDIR}/audio/libmusepack PLIST_SUB+= MUSEPACK="" .endif # nas .ifndef(WITH_NAS) CONFIGURE_ARGS+= --disable-nas PLIST_SUB+= NAS="@comment " .else LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas PLIST_SUB+= NAS="" .endif # ogg .ifndef(WITH_OGG) CONFIGURE_ARGS+= --disable-ogg \ --disable-oggtest PLIST_SUB+= OGG="@comment " .else LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg PLIST_SUB+= OGG="" .endif # oss .ifdef(WITHOUT_OSS) CONFIGURE_ARGS+= --disable-oss PLIST_SUB+= OSS="@comment " .else PLIST_SUB+= OSS="" .endif # pango .ifndef(WITH_PANGO) CONFIGURE_ARGS+= --disable-pango PLIST_SUB+= PANGO="@comment " .else USE_GNOME+= pango PLIST_SUB+= PANGO="" .endif # mng .ifndef(WITH_MNG) CONFIGURE_ARGS+= --disable-libmng PLIST_SUB+= MNG="@comment " .else LIB_DEPENDS+= mng.1:${PORTSDIR}/graphics/libmng PLIST_SUB+= MNG="" .endif # mms .ifndef(WITH_MMS) CONFIGURE_ARGS+= --disable-libmms PLIST_SUB+= MMS="@comment " .else LIB_DEPENDS+= mms.0:${PORTSDIR}/net/libmms PLIST_SUB+= MMS="" .endif # png .ifndef(WITH_PNG) CONFIGURE_ARGS+= --disable-libpng PLIST_SUB+= PNG="@comment " .else LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png PLIST_SUB+= PNG="" .endif # polypaudio .ifndef(WITH_POLYPAUDIO) CONFIGURE_ARGS+= --disable-polyp PLIST_SUB+= POLYPAUDIO="@comment " .else LIB_DEPENDS+= polyp-0.7.0:${PORTSDIR}/audio/polypaudio PLIST_SUB+= POLYPAUDIO="" .endif # sdl .ifndef(WITH_SDL) CONFIGURE_ARGS+= --disable-sdl \ --disable-sdltest PLIST_SUB+= SDL="@comment " .else USE_SDL= sdl CONFIGURE_ARGS+= --with-sdl-prefix=${LOCALBASE} \ --with-sdl-exec-prefix=${LOCALBASE} CONFIGURE_ENV+= SDL_CONFIG=${SDL_CONFIG} PLIST_SUB+= SDL="" .endif # smoothwave .ifndef(WITH_SMOOTHWAVE) CONFIGURE_ARGS+= --disable-smoothwave PLIST_SUB+= SMOOTHWAVE="@comment " .else USE_GNOME+= gtk20 PLIST_SUB+= SMOOTHWAVE="" .endif # speex .ifndef(WITH_SPEEX) CONFIGURE_ARGS+= --disable-speex PLIST_SUB+= SPEEX="@comment " .else LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex PLIST_SUB+= SPEEX="" .endif # swfdec .ifndef(WITH_SWFDEC) CONFIGURE_ARGS+= --disable-swfdec PLIST_SUB+= SWFDEC="@comment " .else LIB_DEPENDS+= swfdec-0.3.0:${PORTSDIR}/graphics/swfdec CONFIGURE_ARGS+= --enable-swfdec PLIST_SUB+= SWFDEC="" .endif # vorbis .ifndef(WITH_VORBIS) CONFIGURE_ARGS+= --disable-vorbis \ --disable-vorbistest PLIST_SUB+= VORBIS="@comment " .else LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis CONFIGURE_ARGS+= --with-vorbis=${LOCALBASE} \ --with-vorbis-libraries=${LOCALBASE}/lib \ --with-vorbis-includes=${LOCALBASE}/include PLIST_SUB+= VORBIS="" .endif # vorbisidec .ifndef(WITH_VORBISIDEC) CONFIGURE_ARGS+= --disable-ivorbis PLIST_SUB+= IVORBIS="@comment " .else LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor PLIST_SUB+= IVORBIS="" .endif # xine .ifndef(WITH_XINE) CONFIGURE_ARGS+= --disable-xine PLIST_SUB+= XINE="@comment " .else CONFIGURE_ARGS+= --enable-xine LIB_DEPENDS+= xine.12:${PORTSDIR}/multimedia/libxine PLIST_SUB+= XINE="" .endif # xvid .ifndef(WITH_XVID) CONFIGURE_ARGS+= --disable-xvid PLIST_SUB+= XVID="@comment " .else LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid PLIST_SUB+= XVID="" .endif pre-build: # This port cannot be CFLAGS safe, using p4 optimizations # break the mod plugin @${REINPLACE_CMD} -E \ -e 's|(-march=pentiu)m4|\1m3|g' \ -e 's|(-mcpu=pentiu)m4|\1m3|g' \ -e 's|(-mtune=pentiu)m)4|\1m3|g' \ ${WRKSRC}/gst/modplug/Makefile \ ${WRKSRC}/gst/modplug/libmodplug/Makefile post-build: .ifdef(EXTRA_BUILD_DIR) . for dir in ${EXTRA_BUILD_DIR} @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} . endfor .endif post-install: .ifdef(EXTRA_BUILD_DIR) . for dir in ${EXTRA_BUILD_DIR} @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} . endfor .endif # register plugins -@${X11BASE}/bin/gst-register-${GST_VERSION} \ --gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST_VERSION}/registry.xml 2>/dev/null pre-everything:: .ifndef(WITH_AALIB) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_AALIB to enable aalib Video plugin' .endif .ifdef(WITH_ARTS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITHOUT_ARTS to disable aRts Audio plugin' .else @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_ARTS to enable aRts Audio plugin' .endif .ifndef(WITH_CAIRO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_CDPARANOIA to enable cairo textoverlay plugin' .endif .ifndef(WITH_CDPARANOIA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_CDPARANOIA to enable cdparanoia Audio plugin' .endif .ifndef(WITH_CDROM_DEVICE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}' @${ECHO_MSG} '===> Define WITH_CDROM_DEVICE if you want to change the default' @${ECHO_MSG} '===> For example, make WITH_CDROM_DEVICE="/dev/somedevice"' .endif .ifndef(WITH_DTS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_DTS to enable DTS decoding support' .endif .ifndef(WITH_DVD_DEVICE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> The default DVD device is ${DEFAULT_DVD_DEVICE}' @${ECHO_MSG} '===> Define WITH_DVD_DEVICE if you want to change the default' @${ECHO_MSG} '===> For example, make WITH_DVD_DEVICE="/dev/somedevice"' .endif .ifndef(WITH_ESOUND) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_ESOUND to enable esound Audio plugin' .endif .ifndef(WITH_FAAC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FAAC to enable faac Audio plugin' .endif .ifndef(WITH_FAAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FAAD to enable faad Audio plugin' .endif .ifndef(WITH_FLAC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FLAC to enable flac Audio plugin' .endif .ifndef(WITH_FREETYPE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_FREETYPE to enable freetype support' .endif .ifndef(WITH_GDKPIXBUF) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_GDKPIXBUF to enable gdk-pixbuf plugin' .endif .ifndef(WITH_GSM) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_GSM to enable gsm Audio plugin' .endif .ifndef(WITH_GNOMEVFS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_GNOMEVFS to enable gnomevfs Network plugin' .endif .ifndef(WITH_JACK) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_JACK to enable jackd audio plugin' .endif .ifndef(WITH_HERMES) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_HERMES to enable Hermes colorspace plugin' .endif .ifndef(WITH_JPEG) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_JPEG to enable jpeg Video plugin' .endif .ifndef(WITH_LADSPA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LADSPA to enable LADSPA framework Audio plugin' .endif .ifndef(WITH_LAME) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LAME to enable lame MP3 Audio plugin' .endif .ifndef(WITH_LIBA52) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBA52 to enable liba52 AC3 Audio plugin' .endif .ifndef(WITH_LIBAUDIOFILE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBAUDIOFILE to enable libaudiofile Audio plugin' .endif .ifndef(WITH_LIBCACA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBCACA to enable libcaca Video plugin' .endif .ifndef(WITH_LIBCDAUDIO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBCDAUDIO to enable libcdaudio Audio plugin' .endif .ifndef(WITH_LIBDV) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBDV to enable libdv Video plugin' .endif .ifndef(WITH_LIBDVDNAV) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBDVDNAV to enable libdvdnav Video plugin' .endif .ifndef(WITH_LIBDVDREAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBDVDREAD to enable libdvdread Video plugin' .endif .ifndef(WITH_LIBFAME) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBFAME to enable libfame Video plugin' .endif .ifndef(WITH_LIBMIKMOD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBMIKMOD to enable libmikmod Audio plugin' .endif .ifndef(WITH_LIBMPEG2) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBMPEG2 to enable libmpeg2 Video plugin' .endif .ifndef(WITH_LIBMUSICBRAINZ) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBMUSICBRAINZ to enable libmusicbrainz Audio plugin' .endif .ifndef(WITH_LIBSHOUT) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBSHOUT to enable libshout Audio plugin' .endif .ifndef(WITH_LIBSIDPLAY) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBSIDPLAY to enable libsidplay Audio plugin' .endif .ifndef(WITH_LIBSNDFILE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBSNDFILE to enable libsndfile Audio plugin' .endif .ifndef(WITH_LIBTHEORA) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBTHEORA to enable libtheora Video plugin' .endif .ifndef(WITH_LIBVISUAL) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_LIBVISUAL to enable libvisual Video plugin' .endif .ifndef(WITH_MAD) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MAD to enable mad Audio plugin' .endif .ifndef(WITH_MNG) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MNG to enable libmng plugin' .endif .ifndef(WITH_MMS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MMS to enable libmms network plugin' .endif .ifndef(WITH_MUSEPACK) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_MUSEPACK to enable musepack Audio plugin' .endif .ifndef(WITH_NAS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_NAS to enable nas Audio plugin' .endif .ifndef(WITHOUT_OSS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITHOUT_OSS to disable OSS Audio plugin' .endif .ifndef(WITH_PANGO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_PANGO to enable pango textoverlay plugin' .endif .ifndef(WITH_PNG) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_PNG to enable png Video plugin' .endif .ifndef(WITH_POLYPAUDIO) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_POLYPAUDIO to enable polypaudio audio plugin' .endif .ifndef(WITH_SDL) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SDL to enable SDL Video plugin' .endif .ifndef(WITH_SMOOTHWAVE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SMOOTHWAVE to enable Smoothwave Video plugin' .endif .ifndef(WITH_SPEEX) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SPEEX to enable Speex Video plugin' .endif .ifndef(WITH_SWFDEC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_SWFDEC to enable Flash Video plugin' .endif .ifndef(WITH_VORBIS) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_VORBIS to enable vorbis Audio plugin' .endif .ifndef(WITH_VORBISIDEC) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_VORBISIDEC to enable vorbisidec Audio plugin' .endif .ifndef(WITH_XINE) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_XINE to enable xine plugin' .endif .ifndef(WITH_XVID) @${ECHO_MSG} '===>' @${ECHO_MSG} '===> Define WITH_XVID to enable xvid Video plugin' .endif .include Property changes on: head/multimedia/gstreamer-plugins80/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.73 \ No newline at end of property +1.74 \ No newline at end of property Index: head/multimedia/libxine/Makefile =================================================================== --- head/multimedia/libxine/Makefile (revision 126328) +++ head/multimedia/libxine/Makefile (revision 126329) @@ -1,167 +1,168 @@ # New ports collection makefile for: libxine # Date created: 14 Oct 2000 # Whom: alex # # $FreeBSD$ # PORTNAME= xine PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= multimedia ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} PKGNAMEPREFIX= lib DISTNAME= ${PORTNAME}-lib-1.0 MAINTAINER= nobutaka@FreeBSD.org COMMENT= Libraries for xine multimedia player BUILD_DEPENDS= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft LIB_DEPENDS= FLAC.5:${PORTSDIR}/audio/flac \ a52.0:${PORTSDIR}/audio/liba52 \ vorbis.3:${PORTSDIR}/audio/libvorbis \ mad.2:${PORTSDIR}/audio/libmad \ speex.3:${PORTSDIR}/audio/speex \ aa.1:${PORTSDIR}/graphics/aalib \ mng.1:${PORTSDIR}/graphics/libmng \ png.5:${PORTSDIR}/graphics/png \ dvdread.3:${PORTSDIR}/multimedia/libdvdread \ freetype.9:${PORTSDIR}/print/freetype2 \ fame-0.9.1:${PORTSDIR}/multimedia/libfame USE_GETTEXT= yes USE_ICONV= yes USE_X_PREFIX= yes USE_LIBTOOL_VER=15 WANT_GNOME= yes USE_GNOME= lthack gnomehack gnometarget USE_GMAKE= yes USE_GL= yes USE_SDL= sdl USE_REINPLACE= yes CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${X11BASE}/include" \ CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ THREAD_CFLAGS="${PTHREAD_CFLAGS}" \ THREAD_LIBS="${PTHREAD_LIBS}" \ EXTRA_X_LIBS="-lGL -lGLU -lXext -lX11 -lm" CONFIGURE_ARGS= --with-w32-path=${LOCALBASE}/lib/win32 --enable-ipv6 INSTALLS_SHLIB= yes MAN1= xine-config.1 .include # PRId64, INT16_MAX macro are not defined .if ${OSVERSION} < 500040 EXTRA_PATCHES= ${PATCHDIR}/extra-patch-config.h.in .endif # CDIOCREADAUDIO macro is not defined .if ${OSVERSION} >= 501106 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src:input:input_cdda.c .endif .if ${X_WINDOW_SYSTEM:L} != xfree86-3 PLIST_SUB+= WITH_LIBXV="" .else PLIST_SUB+= WITH_LIBXV="@comment " .endif .if exists(${LOCALBASE}/bin/artsc-config) || defined(WITH_ARTS) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts PLIST_SUB+= WITH_ARTS="" .else PLIST_SUB+= WITH_ARTS="@comment " .endif .if exists(${LOCALBASE}/lib/libcaca.a) || defined(WITH_LIBCACA) BUILD_DEPENDS+= caca-config:${PORTSDIR}/graphics/libcaca PLIST_SUB+= WITH_LIBCACA="" .else PLIST_SUB+= WITH_LIBCACA="@comment " .endif .if ${HAVE_GNOME:Mesound} != "" || defined(WITH_ESOUND) USE_GNOME+= esound PLIST_SUB+= WITH_ESOUND="" .else PLIST_SUB+= WITH_ESOUND="@comment " .endif .if ${HAVE_GNOME:Mgnomevfs2} != "" USE_GNOME+= gnomevfs2 PLIST_SUB+= WITH_GNOMEVFS2="" .else PLIST_SUB+= WITH_GNOMEVFS2="@comment " .endif .if ${ARCH} == "i386" PLIST_SUB+= WITH_VIDIX="" .else PLIST_SUB+= WITH_VIDIX="@comment " .endif .if exists(${X11BASE}/lib/libXvMCNVIDIA.so.1) LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver PLIST_SUB+= WITH_XVMC="" .else PLIST_SUB+= WITH_XVMC="@comment " .endif -.if exists(${LOCALBASE}/lib/libtheora.so.0) || defined (WITH_LIBTHEORA) -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +.if exists(${LOCALBASE}/lib/libtheora.so.1) || defined (WITH_LIBTHEORA) +LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora PLIST_SUB+= WITH_LIBTHEORA="" .else PLIST_SUB+= WITH_LIBTHEORA="@comment " .endif .if exists(${LOCALBASE}/lib/libsmbclient.so.0) || defined (WITH_SMB) LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient PLIST_SUB+= WITH_SMB="" .else PLIST_SUB+= WITH_SMB="@comment " .endif pre-everything:: @${ECHO_MSG} "===>" @${ECHO_MSG} "===> You can enable some features by defining following variables." @${ECHO_MSG} "===>" .if !exists(${LOCALBASE}/bin/artsc-config) && !defined(WITH_ARTS) @${ECHO_MSG} "===> WITH_ARTS (arts support)" .else @${ECHO_MSG} "===> WITH_ARTS (arts support, enabled)" .endif .if !exists(${LOCALBASE}/lib/libcaca.a) && !defined(WITH_LIBCACA) @${ECHO_MSG} "===> WITH_LIBCACA (libcaca support)" .else @${ECHO_MSG} "===> WITH_LIBCACA (libcaca support, enabled)" .endif .if !(${HAVE_GNOME:Mesound} != "") && !defined(WITH_ESOUND) @${ECHO_MSG} "===> WITH_ESOUND (esound support)" .else @${ECHO_MSG} "===> WITH_ESOUND (esound support, enabled)" .endif -.if !exists(${LOCALBASE}/lib/libtheora.so.0) && !defined(WITH_LIBTHEORA) +.if !exists(${LOCALBASE}/lib/libtheora.so.1) && !defined(WITH_LIBTHEORA) @${ECHO_MSG} "===> WITH_LIBTHEORA (libtheora support)" .else @${ECHO_MSG} "===> WITH_LIBTHEORA (libtheora support, enabled)" .endif @${ECHO_MSG} "===>" post-patch: @${REINPLACE_CMD} -e \ 's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \ s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g ; \ s|-L/usr/local/lib||g ; \ s|-I/usr/local/include||g ; \ s|-lgiconv|-liconv|g ; \ s|-funroll-loops||g' ${WRKSRC}/configure .if ${OSVERSION} >= 500035 @${REINPLACE_CMD} -e \ 's|-malign-loops|-falign-loops|g ; \ s|-malign-jumps|-falign-jumps|g ; \ s|-malign-functions|-falign-functions|g' ${WRKSRC}/configure .endif .include Property changes on: head/multimedia/libxine/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.70 \ No newline at end of property +1.71 \ No newline at end of property Index: head/multimedia/mplayer/Makefile =================================================================== --- head/multimedia/mplayer/Makefile (revision 126328) +++ head/multimedia/mplayer/Makefile (revision 126329) @@ -1,790 +1,790 @@ # New ports collection makefile for: mplayer # Date created: 10 August 2001 # Whom: Thomas E. Zander # with lots of help from Vladimir Kushnir # $FreeBSD$ # # There are many knobs to tune mplayer towards your specific wishes # and preferences. # You can activate a knob by typing something like # "make -DKNOB" or "make KNOB=yes" instead of just "make" # # A description of the several possibilities is available here: # # Core funcionality: # # WITH_OPTIMIZED_CFLAGS # default: undefined # define if you want to enable -O3 -ffast-math -fomit-frame-pointer # on gcc build commands. This will improve speed on most machines. # # WITHOUT_RUNTIME_CPUDETECTION # default: undefined # by default, mplayer is built with support for changing the used cpu # instruction set while playing. This is necessary for package building. # If you want to compile a specific version of mplayer working faster # but only on your cpu type, then define this knob. # If you define this, there are several additional knobs to explicitly # disable some possible CPU features. See below. # # WITH_NVIDIA # default: disabled # Enable nvidia XVMC support for nvidia video cards # Note: This is highly experimental at the moment and works only for # MPEG1/2 using -vo xvmc -vc ffmpeg12mc on FreeBSD-5 # # WITHOUT_MENCODER # default: undefined # the default is to build mplayer with mencoder. If you're sure that you # don't want to encode or recode any media file, then define this. # # WITH_GTK1|WITH_GTK2 # default: autodetect GTK1 # if you want mplayer to have gui abilities, you can use this knob to define # which graphical toolkit set mplayer is built with. # It defaults to detect and use GTK1 if it finds a working installation on the # system. This can be overridden by choosing WITH_GTK2 or disable graphical # user interface by defining WITHOUT_GUI # Note: If you define WITH_GTK* *and* WITHOUT_GUI, mplayer will be built without # gui capabilities. # The GTK2 patches are not official ones, so they should be considered as # experimental. # # WITHOUT_GUI # default: undefined # normally mplayer comes with gmplayer if gtk is installed on the system. # If you want to force mplayer to disable the graphical user interface and # build without gui ability, define this. # # WITHOUT_SKINS # default: undefined # removes the run dependency on the mplayer-skins port, _even if_ built with # GUI. This is useful e.g. if you don't want the skins installed system-wide. # Please note that 'gmplayer' *must* have at least one default skin to run. # # WITHOUT_FREETYPE # default: undefined # since freetype is installed on almost any system people might want # to run mplayer on, this port now defaults to freetype unless not # defined otherwise # # # CPU features: # # The following is only of interest if you have enabled # WITHOUT_RUNTIME_CPUDETECTION # Further, the correct instruction set of your processor is normally # auto-detected, so there is probably no necissity to change them. # # WITHOUT_MMX # default: autodetected # disables using of mmx code # # WITHOUT_3DNOW # default: autodetected # disables using of 3dNow! instructions on AMD CPUs # # WITHOUT_DSP # default: autodetected # disables using of AMD Athlon DSP extentions # # WITHOUT_SSE # default: autodetected # disables all mmx2 and sse/sse2 code # CAUTION: There are some Athlon CPUs which claim to be sse-able but # they aren't. If you have strange problems on this subject, try # to build mplayer with this knob and report the problem # NOTE: SSE is available only if "options CPU_ENABLE_SSE" in your # kernel config. This is standard for 5.x systems on I686_CPU and above. # 4.x users will have to define this explicitly. # # WITH_RTC # default: undefined # This option enables support for real time clock timing instead of # defaulting to usleep() timing. This can improve cpu load as well # as run-time accuracy. # # WITH_KERN_HZ # default: 1024 # This option allows you to control the default kern.hz when using RTC support. # If you have a older/slower processor you may want to lower the default level. # ie. 512 seems to produce better quality video on a PII 400MHz than 1024 does # CAUTION: lower than 512 may produce jerky video. # # Feature options: # These options influence, which libraries mplayer is linked to. # Note: The libraries are needed to play the particular files under # particular circumstances. # ("autodetect" in this sections means: If the ports system finds # the libary on your system, it is used, otherwise not. # If you define it, it will be built and installed as dependency.) # # WITH_DVD_DEVICE=/path/to/desired/device # default 5.x: /dev/acd0 # default 4.x: /dev/acd0c # This option changes the default device where mplayer looks for # a DVD medium # # WITH_CDROM_DEVICE=/path/to/desired/device # default 5.x: /dev/acd0 # default 4.x: /dev/acd0c # This option changes the default cdrom device, maybe useful for VCDs # # WITH_LIBDVDNAV # default: autodetect # NOTE: This is disabled in the development tree at the moment # because it simply doesn't work, so defining it has no # effect until it works again. # # WITH_LIBUNGIF # default: autodetect # # WITH_ARTS # default: autodetect # Note: arts audio output cannot work together with mplayer's gtk1-gui # because of conflicting glib versions, so it it is disabled if # mplayer is built with gtk1 graphical user interface # # WITHOUT_ARTS # default: undefined # By setting this option you can explicitly override WITH_ARTS or # autodetection if arts is found. Some configurations experienced # problems with arts, so this knob is provided to manually exclude # it from build. # # WITH_FRIBIDI # default: autodetect # # WITH_CDPARANOIA # default: autodetect # # WITH_LIBCACA # default: autodetect # # WITH_LIBDV # default: autodetect # # WITH_MAD # default: autodetect # # WITH_SVGALIB # default: autodetect # # WITH_AALIB # default: autodetect # # WITH_THEORA # default: autodetect # # WITH_TREMOR # default: autodetect # By setting this option mplayer will use libtremor (integer only vorbis # decoding lib) instead of libvorbis even if libvorbis is installed. # Note: This is disabled at the moment due to unresolved build problems # # WITH_SDL # default: autodetect # (implies WITH_AALIB) # # WITH_ESOUND # default: autodetect # # WITHOUT_ESOUND # default: undefined # By setting this option you can explicitly override WITH_ESOUND or # autodetection if esound is found. Some configurations experienced # problems with esound, so this knob is provided to manually exclude # it from build. # # WITH_VORBIS # default: autodetect # # WITH_XANIM # default: autodetect # # WITH_REALPLAYER # default: autodetect # # WITH_LIVEMEDIA # default: autotedect # # WITH_MATROSKA # default: autotedect # # WITH_XVID # default: autodetect # # WITH_LZO # default: autodetect # # WITH_XMMS # default: autodetect # # WITH_LANG # default: en # Enables language support bg, cz, de, dk, en, es, fr, gr, hu, it, ko, nl, no, pl, pt_BR, ro, ru, sk, tr, uk, zh # # WITHOUT_WIN32_CODECS # default: undefined # By default, mplayer depends on and uses the win32-codecs collection. # Of course, thanks to Microsoft's very cool hyper-super-multi-platform # support, this is only available on x86 architecture. # If you're working on x86 and want to disable using of the windows codecs, # define this knob. # # # Additional knobs: # # NOPORTDOCS # default: undefined # This knob prevents the ports system from installing additional # documentation. If you define this, only the manpage is going # to be installed. PORTNAME= mplayer PORTVERSION= 0.99.5 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= multimedia audio ipv6 MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ http://www2.mplayerhq.hu/MPlayer/releases/ \ http://ftp.lug.udel.edu/MPlayer/releases/ \ http://www4.mplayerhq.hu/MPlayer/releases/ \ http://mirrors.xmission.com/MPlayer/releases/ \ ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \ ftp://ftp2.mplayerhq.hu/MPlayer/releases/ \ ftp://ftp.lug.udel.edu/MPlayer/releases/ \ ftp://mirrors.xmission.com/MPlayer/releases/ \ http://www.rrr.de/~riggs/mplayer/ DISTNAME= MPlayer-1.0pre5try2 MAINTAINER= riggs@rrr.de COMMENT= High performance media player/encoder supporting many formats PATCH_SITES= http://www.win.net/~ardneh/patches/ \ http://www.rrr.de/~riggs/mplayer/ PATCH_DIST_STRIP= -p1 LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png USE_BZIP2= yes USE_GMAKE= yes USE_ICONV= yes USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS=${PTHREAD_LIBS} \ TMPDIR="${WRKSRC}" CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \ --with-extraincdir=${LOCALBASE}/include \ --with-x11libdir=${X11BASE}/lib \ --with-x11incdir=${X11BASE}/include \ --enable-png \ --enable-menu \ --disable-libfame \ --disable-external-faad \ --disable-tv-v4l \ --disable-tremor .if defined(WITH_LANG) CONFIGURE_ARGS+=--language=${WITH_LANG} .endif WANT_GNOME= yes WANT_SDL= yes USE_REINPLACE= yes MAN1= mplayer.1 MANCOMPRESSED= no CONFFILES= codecs.conf example.conf input.conf menu.conf TOOLFILES= calcbpp.pl countquant.pl \ dvd2divxscript.pl menc2pass \ mencvcd mp.pl sws-test w32codec_dl.pl \ x2mpsub.sh .include # Can't run mplayer/nvidia-driver WITH_NVIDIA on FreeBSD 4.X now .if ${OSVERSION} < 500000 && defined(WITH_NVIDIA) IGNORE= does not run on 4.x when WITH_NVIDIA is defined .endif #Building of vidix dependent shared libs is only possible #on i386 at the moment. .if ${ARCH} == "i386" INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib %%PREFIX%%/lib/mplayer/vidix PLIST_SUB+= VIDIX="" .else CONFIGURE_ARGS+=--disable-vidix PLIST_SUB+= VIDIX="@comment " .endif #.if exists(${LOCALBASE}/modules/rtc.ko) #WITH_RTC= yes #.endif #.if exists(${X11BASE}/lib/libXvMCNVIDIA.so.1) #WITH_NVIDIA= yes #.endif .if exists(${LOCALBASE}/lib/libfribidi.so.0) WITH_FRIBIDI= yes .endif .if !defined(WITHOUT_ARTS) && exists(${LOCALBASE}/lib/libartsc.so.0) WITH_ARTS= yes .endif .if exists(${LOCALBASE}/lib/libcdda_paranoia.so) WITH_CDPARANOIA= yes .endif .if exists(${LOCALBASE}/lib/libcaca.a) WITH_LIBCACA= yes .endif .if exists(${LOCALBASE}/lib/libdv.so.4) WITH_LIBDV= yes .endif .if exists(${LOCALBASE}/lib/libungif.so.5) WITH_LIBUNGIF= yes .endif .if exists(${LOCALBASE}/lib/libmad.so.2) WITH_MAD= yes .endif .if exists(${LOCALBASE}/lib/libvga.so.1) WITH_SVGALIB= yes .endif -.if exists(${LOCALBASE}/lib/libtheora.so.0) +.if exists(${LOCALBASE}/lib/libtheora.so.1) WITH_THEORA= yes .endif .if exists(${LOCALBASE}/lib/libaa.so.1) WITH_AALIB= yes .endif .if ${HAVE_SDL:Msdl}!="" WITH_SDL= yes WITH_AALIB= yes .endif .if !defined(WITHOUT_ESOUND) && ${HAVE_GNOME:Mesound}!="" WITH_ESOUND= yes .endif .if exists(${LOCALBASE}/lib/libvorbis.so.3) WITH_VORBIS= yes .endif .if exists(${LOCALBASE}/lib/libjpeg.so.9) LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg .endif .if exists(${X11BASE}/bin/xanim) WITH_XANIM= yes .endif .if exists(${LOCALBASE}/lib/RealPlayer8/realplay) WITH_REALPLAYER= yes .endif .if exists(${LOCALBASE}/live/liveMedia/libliveMedia.a) WITH_LIVEMEDIA= yes .endif .if exists(${LOCALBASE}/lib/libxvidcore.so) WITH_XVID= yes .endif .if exists(${X11BASE}/lib/libxmms.so) WITH_XMMS= yes .endif .if exists(${LOCALBASE}/lib/liblzo.so) WITH_LZO= yes .endif .if exists(${LOCALBASE}/lib/libfreetype.so.9) && !defined(WITHOUT_FREETYPE) WITH_FREETYPE= yes .endif .if exists(${LOCALBASE}/lib/libmatroska.a) WITH_MATROSKA= yes .endif .if defined (DEBUG) CONFIGURE_ARGS+= --enable-debug .endif .if defined(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O3 -ffast-math -fomit-frame-pointer .endif .if ${HAVE_GNOME:Mgtk12}!="" && !defined(WITH_GTK2) && !defined(WITHOUT_GUI) WITH_GTK1= yes .endif .if !defined(WITHOUT_GUI) PLIST_SUB+= GMPLAYER="" .if !defined(WITHOUT_SKINS) RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/Skin:${PORTSDIR}/multimedia/mplayer-skins .endif .else PLIST_SUB+= GMPLAYER="@comment " .endif .if defined(WITH_GTK2) && !defined(WITH_GTK1) && !defined(WITHOUT_GUI) .if ( ${OSVERSION} < 500000 ) USE_GCC= 3.4 .endif USE_GNOME+= gtk20 PATCHFILES+= mplayer1.0pre5-gtk2-20040730.patch.bz2 .if defined(PKGNAMESUFFIX) PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gtk2 .else PKGNAMESUFFIX= -gtk2 .endif CONFIGURE_ARGS+= --enable-gui .if defined(WITH_LANG) WITH_LANG= "" .endif .endif .if defined(WITH_GTK1) && !defined(WITH_GTK2) && !defined(WITHOUT_GUI) USE_GNOME+= gtk12 .if defined(PKGNAMESUFFIX) PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gtk .else PKGNAMESUFFIX= -gtk .endif CONFIGURE_ARGS+= --enable-gui .endif .if defined(WITHOUT_GUI) CONFIGURE_ARGS+= --disable-gui .endif .if defined(WITH_RTC) BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc RUN_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc CONFIGURE_ARGS+= --enable-rtc CONFIGURE_ENV+= CFLAGS+="-I/${LOCALBASE}/include" .else CONFIGURE_ARGS+= --disable-rtc .endif .if !defined(WITHOUT_MENCODER) LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame MLINKS+= mplayer.1 mencoder.1 PLIST_SUB+= MENCODER="" .else CONFIGURE_ARGS+= --disable-mencoder PLIST_SUB+= MENCODER="@comment " .endif .if defined(WITH_NVIDIA) LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver CONFIGURE_ARGS+= --enable-xvmc \ --enable-xvmclib=XvMCNVIDIA .endif .if defined(WITH_ARTS) && !defined(WITHOUT_ARTS) && !defined(WITH_GTK1) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+= --enable-arts .else CONFIGURE_ARGS+= --disable-arts .endif .if defined(WITH_FRIBIDI) LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi CONFIGURE_ARGS+= --enable-fribidi .else CONFIGURE_ARGS+= --disable-fribidi .endif .if defined(WITH_CDPARANOIA) LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia .else CONFIGURE_ARGS+= --disable-cdparanoia .endif .if defined(WITH_LIBCACA) BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca .else CONFIGURE_ARGS+= --disable-caca .endif .if defined(WITH_LIBUNGIF) LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif #CONFIGURE_ARGS+= --enable-gif .else CONFIGURE_ARGS+= --disable-gif .endif .if defined(WITH_LIBDV) LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv CONFIGURE_ARGS+= --enable-libdv .else CONFIGURE_ARGS+= --disable-libdv .endif .if defined(WITH_MAD) LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad CONFIGURE_ARGS+= --enable-mad \ --with-madlibdir=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --disable-mad .endif .if defined(WITH_MATROSKA) BUILD_DEPENDS+= ${LOCALBASE}/lib/libmatroska.a:${PORTSDIR}/multimedia/libmatroska CONFIGURE_ARGS+= --enable-external-matroska=${LOCALBASE}/lib .else CONFIGURE_ARGS+= --disable-external-matroska .endif .if defined(WITH_SVGALIB) LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib .endif .if defined(WITH_AALIB) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib .endif .if defined(WITH_THEORA) -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +LIB_DEPENDS+= theora.1:${PORTSDIR}/multimedia/libtheora .endif #.if defined(WITH_TREMOR) #LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor #CONFIGURE_ARGS+= --enable-tremor #.else #CONFIGURE_ARGS+= --disable-tremor #.endif .if defined(WITH_SDL) USE_SDL= sdl .endif .if defined(WITH_ESOUND) && !defined(WITHOUT_ESOUND) USE_GNOME+= esound .if defined(PKGNAMESUFFIX) PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound .else PKGNAMESUFFIX= -esound .endif .else CONFIGURE_ARGS+= --disable-esd .endif .if defined(WITH_VORBIS) LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis .endif .if defined(WITH_REALPLAYER) CONFIGURE_ARGS+= --enable-real \ --with-reallibdir=${LOCALBASE}/lib/RealPlayer8/Codecs RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer BUILD_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer .endif .if defined(WITH_LIVEMEDIA) CONFIGURE_ARGS+= --enable-live \ --with-livelibdir=${LOCALBASE}/live RUN_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia .endif .if defined(WITH_XVID) CONFIGURE_ARGS+= --enable-xvid LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid .endif .if defined(WITH_LZO) LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo .else CONFIGURE_ARGS+= --disable-liblzo .endif .if defined(WITH_XMMS) CONFIGURE_ARGS+= --enable-xmms LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms .endif .if defined(WITH_FREETYPE) CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ --enable-freetype LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 .else RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/multimedia/mplayer-fonts CONFIGURE_ARGS+= --disable-freetype .endif .if defined(WITH_XANIM) BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim .else CONFIGURE_ARGS+=--disable-xanim .endif .if defined(WITH_DVD_DEVICE) DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} .else .if ${OSVERSION} < 500000 DEFAULT_DVD_DEVICE=/dev/acd0c .else DEFAULT_DVD_DEVICE=/dev/acd0 .endif .endif .if defined(WITH_CDROM_DEVICE) DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} .else .if ${OSVERSION} < 500000 DEFAULT_CDROM_DEVICE=/dev/acd0c .else DEFAULT_CDROM_DEVICE=/dev/acd0 .endif .endif .if defined(WITH_KERN_HZ) DEFAULT_KERN_HZ=${WITH_KERN_HZ} .else DEFAULT_KERN_HZ=1024 .endif # "enable" build for other archs .if ${ARCH} == "i386" .if !defined(WITHOUT_RUNTIME_CPUDETECTION) CONFIGURE_ARGS+=--enable-runtime-cpudetection .else #WITHOUT_RUNTIME_CPUDETECTION .if defined(WITHOUT_MMX) CONFIGURE_ARGS+=--disable-mmx .endif .if defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021 CONFIGURE_ARGS+=--disable-3dnow .endif .if defined(WITHOUT_DSP) || defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021 CONFIGURE_ARGS+=--disable-3dnowex .endif .if defined(WITHOUT_SSE) CONFIGURE_ARGS+=--disable-mmx2 --disable-sse .endif .endif #WITHOUT_RUNTIME_CPUDETECTION .if !defined(WITH_SVGALIB) CONFIGURE_ARGS+=--disable-svga .endif .if !defined(WITH_AALIB) CONFIGURE_ARGS+=--disable-aa .endif .if !defined(WITH_SDL) CONFIGURE_ARGS+=--disable-sdl .endif .if !defined(WITH_VORBIS) CONFIGURE_ARGS+=--disable-vorbis .endif .if !defined(WITHOUT_WIN32_CODECS) RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} CONFIGURE_ARGS+= --with-win32libdir=${LOCALBASE}/lib/win32 CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs CODEC_DETECTION_FILE!= ${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE .else CONFIGURE_ARGS+= --disable-win32 \ --disable-qtx-codecs .endif .endif # ARCH == i386 pre-everything:: @${ECHO_MSG} "N - O - T - E" @${ECHO_MSG} "" @${ECHO_MSG} "Take a careful look into the Makefile in order" @${ECHO_MSG} "to learn how to tune mplayer towards you personal preferences!" @${ECHO_MSG} "For example," @${ECHO_MSG} "make WITH_GTK1" @${ECHO_MSG} "builds MPlayer with GTK1-GUI support." .if !defined(WITHOUT_GUI) @${ECHO_MSG} "If you want to use the GUI, you can either install" @${ECHO_MSG} "${PORTSDIR}/multimedia/mplayer-skins" @${ECHO_MSG} "or download official skin collections from" @${ECHO_MSG} "http://www.mplayerhq.hu/homepage/dload.html" .endif .if defined(WITH_GTK2) && !defined(WITHOUT_GUI) @${ECHO_MSG} "=====================> <======================" @${ECHO_MSG} "GTK2 and UTF8 language options cannot peacefully coexist" @${ECHO_MSG} "If you have defined WITH_LANG= and WITH_GTK2" @${ECHO_MSG} "your language options are ignored." @${ECHO_MSG} "====================> <======================" .endif post-patch: .if ${OSVERSION} > 502125 @cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/extra-patch-gcc34 .endif @${REINPLACE_CMD} -e \ 's|libxmms.so.1|libxmms.so|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \ s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ ${WRKSRC}/${CONFIGURE_SCRIPT} @${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \ 's|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${DEFAULT_DVD_DEVICE:S/dev\//dev\/\\\:/}|g ; \ s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${DEFAULT_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g' .if defined(WITH_RTC) @${REINPLACE_CMD} -e \ 's|||' \ ${WRKSRC}/mplayer.c @${REINPLACE_CMD} -e \ 's|RTC_IRQP_SET|RTCIO_IRQP_SET|' \ ${WRKSRC}/mplayer.c @${REINPLACE_CMD} -e \ 's|RTC_PIE_ON|RTCIO_PIE_ON|' \ ${WRKSRC}/mplayer.c @${REINPLACE_CMD} -e \ 's|rtc_fd|rtc|' \ ${WRKSRC}/mplayer.c @${REINPLACE_CMD} -e \ 's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ ${WRKSRC}/mplayer.c .endif post-configure: @${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \ ${WRKSRC}/config.mak post-install: @${MKDIR} ${DATADIR} @${CHMOD} 755 ${DATADIR} @${MKDIR} ${DATADIR}/tools @${CHMOD} 755 ${DATADIR}/tools .for conf in ${CONFFILES} ${INSTALL_DATA} ${WRKSRC}/etc/${conf} ${DATADIR} .endfor .for tool in ${TOOLFILES} ${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${DATADIR}/tools .endfor .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${CHMOD} 755 ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/DOCS/HTML/en/* ${DOCSDIR} .endif .if !defined(WITHOUT_GUI) @${LN} -sf ${PREFIX}/bin/mplayer ${PREFIX}/bin/gmplayer .endif @${CAT} ${.CURDIR}/pkg-message install-user: @${PERL} ${FILESDIR}/install-user .include Property changes on: head/multimedia/mplayer/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.109 \ No newline at end of property +1.110 \ No newline at end of property Index: head/multimedia/transcode/Makefile =================================================================== --- head/multimedia/transcode/Makefile (revision 126328) +++ head/multimedia/transcode/Makefile (revision 126329) @@ -1,405 +1,405 @@ # New ports collection makefile for: transcode # Date created: 17 December 2001 # Whom: Hendrik Scholz # # $FreeBSD$ # PORTNAME= transcode PORTVERSION= 0.6.12 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= multimedia MASTER_SITES= http://www.zebra.fh-weingarten.de/~transcode/pre/ MAINTAINER= hendrik@scholz.net COMMENT= A text-console utility for video stream processing LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread \ jpeg.9:${PORTSDIR}/graphics/jpeg USE_GETOPT_LONG=yes USE_XLIB= yes USE_GNOME= gtk12 USE_GMAKE= yes GNU_CONFIGURE= yes LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib CPPFLAGS= -I${X11BASE}/include -I${LOCALBASE}/include CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ SDL_CONFIG="${LOCALBASE}/bin/sdl11-config" CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} USE_REINPLACE= yes INSTALLS_SHLIB= yes USE_LIBTOOL_VER=13 WANT_SDL= yes MAN1= avifix.1 aviindex.1 avimerge.1 avisplit.1 avisync.1 tccat.1 tcdemux.1 \ tcprobe.1 tcscan.1 transcode.1 tcextract.1 tcdecode.1 tcmodinfo.1 \ tcpvmexportd.1 tcxmlcheck.1 .include .if exists(${LOCALBASE}/lib/libtheora.so) WITH_LIBTHEORA= yes .endif .if exists(${LOCALBASE}/lib/libMagick.so) WITH_IMAGEMAGICK= yes .endif .if exists(${LOCALBASE}/lib/libaviplay.so) WITH_AVIFILE= yes .endif .if ${HAVE_SDL:Msdl}!="" WITH_SDL= yes .endif .if exists(${LOCALBASE}/lib/libxml2.so) WITH_LIBXML2= yes .endif .if exists(${LOCALBASE}/bin/ffmpeg) WITH_FFMPEG= yes .endif .if exists(${LOCALBASE}/lib/libdv.so) WITH_LIBDV= yes .endif .if exists(${LOCALBASE}/lib/libopenquicktime.so) WITH_OPENQUICKTIME= yes .endif .if exists(${LOCALBASE}/lib/libfame.so) WITH_FAME= yes .endif .if exists(${LOCALBASE}/lib/libxvidcore.so) WITH_XVID= yes .endif .if exists(${LOCALBASE}/lib/liba52.so) .if exists(${LOCALBASE}/lib/liba52.la) LIBA52_DEP_LIBS!= ${GREP} dependency_libs ${LOCALBASE}/lib/liba52.la | ${CUT} -d \' -f 2 .else LIBA52_DEP_LIBS= .endif WITH_LIBA52= yes .endif .if exists(${LOCALBASE}/lib/libmp3lame.so) WITH_LAME= yes .endif .if exists(${LOCALBASE}/lib/libogg.so) WITH_OGG= yes .endif .if exists(${LOCALBASE}/include/mjpegtools/yuv4mpeg.h) WITH_MJPEG= yes .endif .if exists(${LOCALBASE}/lib/liblzo.so) WITH_LZO= yes .endif .if exists(${LINUXBASE}/usr/lib/libdivxdecore.so) WITH_DIVX5= yes .endif .if exists(${LOCALBASE}/lib/libjpeg-mmx.so) WITH_JPEGMMX= yes .endif .if defined(WITH_JPEGMMX) WITH_NASM= yes .endif .if defined(WITH_LIBTHEORA) -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +LIB_DEPENDS+= theora.1:${PORTSDIR}/multimedia/libtheora .else CONFIGURE_ARGS+= --with-theora=no .endif .if defined(WITH_IMAGEMAGICK) LIB_DEPENDS+= Magick.7:${PORTSDIR}/graphics/ImageMagick PLIST_SUB+= WITH_IMAGEMAGICK="" .else CONFIGURE_ARGS+= --with-magick-mods=no PLIST_SUB+= WITH_IMAGEMAGICK="@comment " .endif .if defined(WITH_JPEGMMX) LIB_DEPENDS+= jpeg-mmx.62:${PORTSDIR}/graphics/jpeg-mmx PLIST_SUB+= WITH_JPEGMMX="" .else PLIST_SUB+= WITH_JPEGMMX="@comment " .endif .if defined(WITH_NASM) BUILD_DEPENDS+= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm ONLY_FOR_ARCHS= i386 PLIST_SUB+= WITH_NASM="" .else PLIST_SUB+= WITH_NASM="@comment " .endif .if defined(WITH_AVIFILE) LIB_DEPENDS+= aviplay:${PORTSDIR}/multimedia/avifile PLIST_SUB+= WITH_AVIFILE="" .else CONFIGURE_ARGS+= --with-avifile-mods=no \ --enable-avifile6=no PLIST_SUB+= WITH_AVIFILE="@comment " WITHOUT_FFMPEG= YES .endif .if defined(WITH_SDL) USE_SDL= sdl WITH_LIBDV= yes PLIST_SUB+= WITH_SDL="" .else PLIST_SUB+= WITH_SDL="@comment " .endif .if defined(WITH_LIBXML2) LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 PLIST_SUB+= WITH_LIBXML2="" .else PLIST_SUB+= WITH_LIBXML2="@comment " .endif .if defined(WITH_FFMPEG) && !defined(WITHOUT_FFMPEG) BUILD_DEPENDS+= ${LOCALBASE}/bin/ffmpeg:${PORTSDIR}/multimedia/ffmpeg PLIST_SUB+= WITH_FFMPEG="" .else PLIST_SUB+= WITH_FFMPEG="@comment " .endif .if defined(WITH_LIBDV) LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv PLIST_SUB+= WITH_LIBDV="" CONFIGURE_ARGS+= --with-pal-yuv=YV12 .else CONFIGURE_ARGS+= --with-dv=no PLIST_SUB+= WITH_LIBDV="@comment " .endif .if defined(WITH_OPENQUICKTIME) LIB_DEPENDS+= openquicktime.0:${PORTSDIR}/multimedia/openquicktime .else CONFIGURE_ARGS+= --with-openqt=no .endif .if defined(WITH_FAME) LIB_DEPENDS+= fame-0.9:${PORTSDIR}/multimedia/libfame PLIST_SUB+= WITH_FAME="" .else PLIST_SUB+= WITH_FAME="@comment " .endif .if defined(WITH_XVID) LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid RUN_DEPENDS+= xvid4conf:${PORTSDIR}/multimedia/xvid4conf PLIST_SUB+= WITH_XVID="" WITH_NASM= YES .else PLIST_SUB+= WITH_XVID="@comment " .endif .if defined(WITH_LIBA52) LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 CONFIGURE_ARGS+= --enable-liba52=yes PLIST_SUB+= WITH_LIBA52="" .else CONFIGURE_ARGS+= --with-a52=no \ --enable-liba52=no PLIST_SUB+= WITH_LIBA52="@comment " .endif .if defined(WITH_LAME) LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame CONFIGURE_ARGS+= --with-lame-libs=${LOCALBASE}/lib PLIST_SUB+= WITH_LAME="" .else CONFIGURE_ARGS+= --with-lame=no PLIST_SUB+= WITH_LAME="@comment " .endif .if defined(WITH_OGG) LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg CONFIGURE_ARGS+= --with-ogg=yes PLIST_SUB+= WITH_OGG="" .else PLIST_SUB+= WITH_OGG="@comment " .endif .if defined(WITH_MJPEG) LIB_DEPENDS+= lavplay-1.6.2:${PORTSDIR}/multimedia/mjpegtools PLIST_SUB+= WITH_MJPEG="" .else PLIST_SUB+= WITH_MJPEG="@comment " .endif .if defined(WITH_LZO) LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo PLIST_SUB+= WITH_LZO="" .else PLIST_SUB+= WITH_LZO="@comment " .endif .if defined(WITH_SUBRIP) PLIST_SUB+= WITH_SUBRIP="" .else PLIST_SUB+= WITH_SUBRIP="@comment " .endif .if defined(WITH_DIVX5) BUILD_DEPENDS+= ${LINUXBASE}/usr/lib/libdivxdecore.so:${PORTSDIR}/multimedia/linux-divx4linux CONFIGURE_ENV+= CFLAGS="-I${LINUXBASE}/usr/include/divx" CPPFLAGS="-I${LINUXBASE}/usr/include/divx" .else .endif pre-everything:: .if !defined(WITH_OPTIMIZED_CFLAGS) @${ECHO_MSG} @${ECHO_MSG} "You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS." .endif .if !defined(WITH_JPEGMMX) @${ECHO_MSG} @${ECHO_MSG} "You can enable JPEG with MMX by defining WITH_JPEGMMX." .endif .if !defined(WITH_LIBTHEORA) @${ECHO_MSG} @${ECHO_MSG} "You can enable Libtheora by defining WITH_LIBTHEORA." .endif .if !defined(WITH_IMAGEMAGICK) @${ECHO_MSG} @${ECHO_MSG} "You can enable ImageMagick-dependent modules by defining WITH_IMAGEMAGICK." .endif .if !defined(WITH_SDL) @${ECHO_MSG} @${ECHO_MSG} "You can enable realtime-previewing by defining WITH_SDL." @${ECHO_MSG} "This implies WITH_LIBDV." .endif .if !defined(WITH_LIBXML2) @${ECHO_MSG} @${ECHO_MSG} "You can enable libxml2-dependent modules by defining WITH_LIBXML2." .endif .if !defined(WITH_FFMPEG) || defined(WITHOUT_FFMEG) @${ECHO_MSG} @${ECHO_MSG} "You can enable ffmpeg-dependent modules by defining WITH_FFMPEG." .endif .if !defined(WITH_LAME) @${ECHO_MSG} @${ECHO_MSG} "You can enable lame-dependent modules by defining WITH_LAME." @${ECHO_MSG} "You will probably want to enable this, if you plan to" @${ECHO_MSG} "rip DVDs or dub videos." .endif .if !defined(WITH_LIBDV) @${ECHO_MSG} @${ECHO_MSG} "You can enable libdv-support by defining WITH_LIBDV." @${ECHO_MSG} "You will probably want to enable this, if you plan to" @${ECHO_MSG} "transcode DV data from a digital videocamera." .endif .if !defined(WITH_LIBA52) @${ECHO_MSG} @${ECHO_MSG} "You can enable liba52-support by defining WITH_LIBA52." @${ECHO_MSG} "You will probably want to enable this, if you plan to" @${ECHO_MSG} "rip DVDs." .endif .if !defined(WITH_AVIFILE) @${ECHO_MSG} @${ECHO_MSG} "You can enable avifile-dependent modules by defining WITH_AVIFILE." .endif(WITH_AVIFILE) .if !defined(WITH_NASM) @${ECHO_MSG} @${ECHO_MSG} "You can enable nasm dependent modules by defining WITH_NASM." @${ECHO_MSG} "This turns this into an i386-only port." .endif(WITH_NASM) .if !defined(WITH_OPENQUICKTIME) @${ECHO_MSG} @${ECHO_MSG} "You can enable openquicktime-dependent modules by defining WITH_OPENQUICKTIME." .endif .if !defined(WITH_FAME) @${ECHO_MSG} @${ECHO_MSG} "You can enable libfame-support by defining WITH_FAME." .endif .if !defined(WITH_XVID) @${ECHO_MSG} @${ECHO_MSG} "You can enable xvid support by defining WITH_XVID." @${ECHO_MSG} "This implies WITH_NASM and turns this into an i386-only port." @${ECHO_MSG} "You will probably want to enable this, if you plan to" @${ECHO_MSG} "rip DVDs." .endif .if !defined(WITH_OGG) @${ECHO_MSG} @${ECHO_MSG} "You can enable libogg support by defining WITH_OGG." .endif .if !defined(WITH_LZO) @${ECHO_MSG} @${ECHO_MSG} "You can enable liblzo support by defining WITH_LZO." .endif .if !defined(WITH_MJPEG) @${ECHO_MSG} @${ECHO_MSG} "You can enable support for the MJPEG toolkit by defining WITH_MJPEG." .endif .if !defined(WITH_SUBRIP) @${ECHO_MSG} @${ECHO_MSG} "You can enable compilation of subtitleripper by defining WITH_SUBRIP." .endif .if !defined(WITH_DIVX5) @${ECHO_MSG} @${ECHO_MSG} "You can enable experimental DivX 5 support by defining WITH_DIVX5." .endif post-patch: .if ${OSVERSION} <= 500027 @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \ -e 's|||' .endif .if !defined(WITH_OPTIMIZED_CFLAGS) @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \ -e 's|-O[236]|${CFLAGS}|' .endif @${REINPLACE_CMD} -E -e 's|(seek)64|\1|' ${WRKSRC}/avilib/avidump.c @${REINPLACE_CMD} -E -e 's| Property changes on: head/multimedia/transcode/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.48 \ No newline at end of property +1.49 \ No newline at end of property Index: head/multimedia/vlc/Makefile =================================================================== --- head/multimedia/vlc/Makefile (revision 126328) +++ head/multimedia/vlc/Makefile (revision 126329) @@ -1,748 +1,748 @@ # New ports collection makefile for: vlc # Date created: 3rd August 2001 # Whom: Brian Somers # # $FreeBSD$ # # NOTES about VLC Knobs: # Below you will see a number of knobs, if it starts with WITHOUT_ it is # enabled by default, if it starts with WITH_ it is disabled by default # and will be autodetected to enable # # If you define for example WITH_FAAD and WITHOUT_FAAD # the WITHOUT_ will always over ride the WITH_. # # Interface Knobs: # # WITHOUT_HTTPD=yes # Web interface to control streaming media # * recommended if you want to stream media # # WITH_NCURSES=yes # Ncurses (console) interface # # WITH_SKINS # This Interface supports a skinned gtk2.0 interface # Skins can be found at http://www.videolan.org/vlc/download-skins.html # # WITHOUT_WXWINDOWS=yes # WxWindows/Gtk 2.x Interface # This is the default and most supported # x11 interface # # Audio Knobs: # # WITH_ARTS=yes # Arts Support # # WITHOUT_DTS=yes # DTS decoder Support # useful for many dvds # # WITH_ESOUND=yes # Esound Support # # WITH_FAAC=yes # Faac audio encoder (mp4/aac) Support # # WITHOUT_FAAD=yes # Faad audio decoder (mp4/aac) Support # # WITHOUT_FLAC=yes # Flac Support # # WITHOUT_LAME=yes # Mp3 encoder Support # # WITHOUT_LIBA52=yes # liba52 audio Support # # WITH_LIBTREMOR # Interger-only Ogg Vorbis decoder # !!experimental!! # # WITHOUT_MAD=yes # Mad mp3 audio decoder Support # # WITH_SPEEX=yes # Speex voice codec Support # Note: you need audio/speex-devel # # WITH_TOOLAME=yes # Toolame Support # # WITHOUT_VORBIS=yes # Ogg/Vorbis Support # # Graphics Knobs: # # WITH_AALIB=yes # Console Graphics Support # # WITH_FRIBIDI=yes # # WITH_GGI=yes # # WITH_LIBCACA=yes # Console Graphics Support (implies WITH_AALIB) # # WITHOUT_SDL=yes # SDL video output # # WITH_SVG=yes # # WITH_SVGALIB=yes # SVGAlib video output # # WITH_XOSD=yes # # Multimedia Knbos: # # WITHOUT_H264 # Disable H.264/AVC Video Support # # WITHOUT_LIBMATROSKA=yes # Matroska Container Format Support # # WITHOUT_LIBMPEG2=yes # # WITH_LIBTHEORA=yes # # WITHOUT_TRANSCODE=yes # Disable transcode of multimedia via transcode (multimedia/transcode). # This option allows you to convert a media file, dvd, A/V stream, etc # in to another format. This also allows you to transcode multimedia # on-the-fly and stream to a network and/or local playback. # # Other Knobs: # # DEBUG=yes # Enable debuging support # # WITHOUT_CDROM=yes # Disable cddb and vcd support # and other cdrom support # # WITHOUT_DVBPSI=yes # TS MUX and DEMUX support # # WITHOUT_DVD=yes # Disable all dvd support # # WITHOUT_LIVEMEDIA=yes # Support for rstp/rtp/sdp protocols # Only versions 2004.11.11 and higher are supported. # * recommended if you want to stream media. # # WITH_MOZILLA_PLUGIN= [mozilla|mozilla-devel|firefox] # Enable A mozilla plugin for VLC # See http://www.videolan.org/doc/vlc-user-guide/en/ch07.html#id2529837 # for more info on using this plugin. # defaults to www/mozilla # # WITH_OPENGL=yes # Enable OpenGL visual plugin (not playback, play back is default with X11) # # WITH_SSL=yes # Enable TLS/SSL Support for web (httpd) interface # # WITHOUT_SLP=yes # Disable SLP service discovery support # * recommended if you want to stream media # # WITH_OPTIMIZED_CFLAGS=yes # Compile with -O2 -ffast-math -fomit-frame-pointer # # WITH_DVD_DEVICE=/dev/somedevice # default 5.x and above: /dev/acd0 # default 4.x and below: /dev/acd0c # This option changes the default dvd device # # WITH_CDROM_DEVICE=/dev/somedevice # default 5.x and above: /dev/acd0 # default 4.x and below: /dev/acd0c # This option changes the default cdrom device # # WITHOUT_NLS=yes # Disable Languarge Support # # WITH_VLC_DEFAULT_FONT=/path/to/font # default: ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf # This option lets you change the default font for subtitles # # NOPORTDOCS=yes # Do not install Vlc's Documents # PORTNAME= vlc PORTVERSION= 0.8.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= multimedia audio ipv6 net www MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${PORTVERSION}/ \ http://ftp.snt.utwente.nl/pub/software/videolan/vlc/${PORTVERSION}/ \ ftp://ftp.crans.org/pub/videolan/vlc/${PORTVERSION}/ \ ftp://videolan.cs.pu.edu.tw/Windows/VideoLAN/vlc/${PORTVERSION}/ \ ${MASTER_SITE_LOCAL:S|$|:mozilla|} MASTER_SITE_SUBDIR= ahze/:mozilla PKGNAMESUFFIX?= ${ESOUND_SUFFIX}${MOZILLA_SUFFIX}${PKGNAMESUFFIX2} DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ vlc-intf-mozilla-plugin${EXTRACT_SUFX}:mozilla MAINTAINER= ahze@FreeBSD.org COMMENT= Multimedia streaming server and player for various audio/video formats RUN_DEPEDNS= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera LIB_DEPENDS= avcodec.1:${PORTSDIR}/multimedia/ffmpeg ### BROKEN -- Needs newer verision of toolame ### WITHOUT_TOOLAME= yes ### BROKEN ### WITH_VLC_DEFAULT_FONT?= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf USE_BZIP2= yes USE_X_PREFIX= yes USE_GETOPT_LONG=yes USE_GETTEXT= yes USE_GMAKE= yes WANT_GNOME= yes USE_GNOME= gnometarget USE_REINPLACE= yes WANT_SDL= yes USE_XLIB= yes USE_ICONV= yes FAKEDIR= ${WRKDIR}/fake PLIST= ${WRKDIR}/plist INSTALLS_SHLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV+= PATH_GTKCONFIG="${GTK_CONFIG}" CFLAGS="${CFLAGS}" \ CPPFLAGS="-I${WRKSRC}/include/vlc/ -I${LOCALBASE}/ffmpeg ${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS+= --enable-ffmpeg \ --with-ffmpeg=${LOCALBASE} \ --with-ffmpeg-zlib \ --disable-gnome \ --disable-gtk \ --without-libintl-prefix MAN1= vlc.1 \ vlc-config.1 .if defined(WITH_MOZILLA_PLUGIN) .if ${WITH_MOZILLA_PLUGIN}=="firefox" BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/bin/firefox-config" .else BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/lib/mozilla${HEADERS_SUFX}/mozilla-config" .endif MOZILLA_SUFFIX=-mozilla CONFIGURE_ARGS+=--enable-mozilla .if ${WITH_MOZILLA_PLUGIN}=="mozilla-devel" HEADERS_SUFX= -devel .else HEADERS_SUFX= .endif .endif .include .if ${HAVE_GNOME:Mesound}!="" && !defined(WITHOUT_ESOUND) WITH_ESOUND= yes .endif .if exists(${LOCALBASE}/lib/libaa.so.1) && !defined(WITHOUT_AALIB) WITH_AALIB= yes .endif .if exists(${LOCALBASE}/lib/libcaca.a) WITH_LIBCACA= yes WITH_AALIB= yes .endif .if exists(${LOCALBASE}/bin/fribidi-config) && !defined(WITHOUT_FRIBIDI) WITH_FRIBIDI= yes .endif .if exists(${LOCALBASE}/lib/libggi.so.2) && !defined(WITHOUT_GGI) WITH_GGI= yes .endif -.if exists(${LOCALBASE}/lib/libtheora.so.0) && !defined(WITHOUT_LIBTHEORA) +.if exists(${LOCALBASE}/lib/libtheora.so.1) && !defined(WITHOUT_LIBTHEORA) WITH_LIBTHEORA= yes .endif .if exists(${LOCALBASE}/lib/libspeex.a) && !defined(WITHOUT_SPEEX) .if exists(${LOCALBASE}/include/speex.h) WITHOUT_SPEEX= yes .else WITH_SPEEX= yes .endif .endif .if exists(${LOCALBASE}/lib/libgnutls.a) && !defined(WITHOUT_SSL) WITH_SSL= yes .endif .if exists(${X11BASE}/lib/librsvg-2.a) && !defined(WITHOUT_SVG) WITH_SVG= yes .endif .if exists(${LOCALBASE}/lib/lib/vga.so.1) && !defined(WITHOUT_SVGALIB) WITH_SVGALIB= yes .endif .if exists(${LOCALBASE}/lib/libvorbisidec.a) WITH_LIBTREMOR= yes .endif .if exists(${LOCALBASE}/bin/toolame) WITH_TOOLAME= yes .endif .if exists(${LOCALBASE}/lib/libxosd.so.4) && !defined(WITHOUT_XOSD) WITH_XOSD= yes .endif # compatible knobs. .if defined(WITH_DEBUG) DEBUG= yes .endif .if defined(WITH_MATROSKA) WITH_LIBMATROSKA=yes .endif .if defined(WITH_TREMOR) WITH_LIBTREMOR=yes .endif # end compatible knobs .if defined(WITHOUT_NLS) CONFIGURE_ARGS+=--disable-nls .endif .if defined(WITH_DVD_DEVICE) DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} .else .if ${OSVERSION} < 500000 DEFAULT_DVD_DEVICE=/dev/acd0c .else DEFAULT_DVD_DEVICE=/dev/acd0 .endif .endif .if defined(WITH_CDROM_DEVICE) DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} .else .if ${OSVERSION} < 500000 DEFAULT_CDROM_DEVICE=/dev/acd0c .else DEFAULT_CDROM_DEVICE=/dev/acd0 .endif .endif .if defined(WITH_SKINS) && !defined(WITHOUT_SKINS) LIB_DEPENDS+= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 CONFIGURE_ARGS+=--enable-skins2 --enable-skins .else CONFIGURE_ARGS+=--disable-skins2 .endif .if !defined(WITHOUT_WXWINDOWS) LIB_DEPENDS+= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 USE_GNOME+= gnomehier CONFIGURE_ARGS+=--enable-wxwindows CONFIGURE_ENV+= WX_CONFIG=${X11BASE}/bin/wxgtk2-2.4-config .else CONFIGURE_ARGS+=--disable-wxwindows .endif .if defined(WITH_ARTS) && !defined(WITHOUT_ARTS) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+= --enable-arts .else CONFIGURE_ARGS+= --disable-arts .endif .if !defined(WITHOUT_CDROM) LIB_DEPENDS+= vcdinfo.1:${PORTSDIR}/multimedia/vcdimager \ cdio.3:${PORTSDIR}/sysutils/libcdio CONFIGURE_ARGS+=--enable-vcd \ --enable-libcddb \ --enable-libcdio .else CONFIGURE_ARGS+=--disable-vcd \ --disable-libcddb \ --disable-libcdio .endif .if !defined(WITHOUT_DVBPSI) LIB_DEPENDS+= dvbpsi.3:${PORTSDIR}/multimedia/libdvbpsi CONFIGURE_ARGS+=--enable-dvbpsi \ --with-dvbpsi=${LOCALBASE} .else CONFIGURE_ARGS+=--disable-dvbpsi .endif .if !defined(WITHOUT_DVD) LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav CONFIGURE_ARGS+=--enable-dvdnav \ --enable-dvdread \ --with-dvdcss=${LOCALBASE} \ --with-dvdread=${LOCALBASE} .else CONFIGURE_ARGS+=--disable-dvdnav \ --disable-dvdread .endif .if defined(WITH_ESOUND) && !defined(WITHOUT_ESOUND) ESOUND_SUFFIX= -esound USE_GNOME+= esound CONFIGURE_ARGS+=--enable-esd .endif .if defined(WITH_FAAC) && !defined(WITHOUT_FAAC) CONFIGURE_ARGS+=--with-ffmpeg-faac LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac .endif .if !defined(WITHOUT_FAAD) LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad CONFIGURE_ARGS+=--enable-faad .else CONFIGURE_ARGS+=--disable-faad .endif .if !defined(WITHOUT_FLAC) LIB_DEPENDS+= FLAC.5:${PORTSDIR}/audio/flac CONFIGURE_ARGS+=--enable-flac .else CONFLGIRE_ARGS+=--disable-flac .endif .if defined(WITH_FRIBIDI) && !defined(WITHOUT_FRIBIDI) LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi CONFIGURE_ARGS+=--enable-fribidi .endif .if defined(WITH_AALIB) && !defined(WITHOUT_AALIB) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib CONFIGUR_ARGSE+= --enable-aa .endif .if !defined(WITHOUT_H264) CONFIGURE_ARGS+=--enable-x264 BUILD_DEPENDS+= x264:${PORTSDIR}/multimedia/x264 .else CONFIGURE_ARGS+=--disable-x264 .endif .if defined(WITH_LIBCACA) && !defined(WITHOUT_LIBCACA) .if !defined(WITHOUT_AALIB) WITH_AALIB= yes BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca RUN_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca CONFIGURE_ARGS+=--enable-caca .endif .else CONFIGURE_ARGS+=--disable-caca .endif .if !defined(WITHOUT_DTS) BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts CONFIGURE_ARGS+=--enable-dts .else CONFIGURE_ARGS+=--disable-dts .endif .if defined(WITHOUT_HTTPD) CONFIGURE_ARGS+=--disable-httpd .endif .if defined(WITH_GGI) && !defined(WITHOUT_GGI) LIB_DEPENDS+= ggi.2:${PORTSDIR}/graphics/libggi CONFIGURE_ARGS+=--enable-ggi .else CONFIGURE_ARGS+=--disable-ggi .endif .if !defined(WITHOUT_LAME) LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame CONFIGURE_ARGS+=--enable-mp3lame .else CONFIGURE_ARGS+=--disable-mp3lame .endif .if !defined(WITHOUT_LIBMATROSKA) BUILD_DEPENDS+= ${LOCALBASE}/lib/libmatroska.a:${PORTSDIR}/multimedia/libmatroska .endif .if !defined(WITHOUT_LIBA52) LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 CONFIGURE_ARGS+=--enable-a52 .else CONFIGURE_ARGS+=--disable-a52 .endif .if !defined(WITHOUT_LIBMPEG2) LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 CONFIGURE_ARGS+=--enable-libmpeg2 .else CONFIGURE_ARGS+=--disable-libmpeg2 .endif .if defined(WITH_LIBTHEORA) && !defined(WITHOUT_LIBTHEORA) -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +LIB_DEPENDS+= theora.1:${PORTSDIR}/multimedia/libtheora CONFIGURE_ARGS+=--enable-theora .else CONFIGURE_ARGS+=--disable-theora .endif .if !defined(WITHOUT_LIVEMEDIA) BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia CONFIGURE_ARGS+=--enable-livedotcom \ --with-livedotcom-tree=${LOCALBASE}/live .else CONFIGURE_ARGS+=--disable-livedotcom .endif .if !defined(WITHOUT_MAD) LIB_DEPENDS+= id3tag.2:${PORTSDIR}/audio/libid3tag \ mad.2:${PORTSDIR}/audio/libmad CONFIGURE_ARGS+=--enable-mad \ --with-mad=${LOCALBASE} .else CONFIGURE_ARGS+=--disable-mad .endif .if defined(WITH_NCURSES) && !defined(WITHOUT_NCURSES) CONFIGURE_ARGS+=--enable-ncurses .endif .if defined(WITH_OPENGL) && !defined(WITHOUT_OPENGL) USE_GL= yes CONFIGURE_ARGS+=--enable-galaktos .else CONFIGURE_ARGS+=--disable-galaktos .endif .if !defined(WITHOUT_SDL) USE_SDL= yes CONFIGURE_ARGS+=--enable-sdl .else CONFIGURE_ARGS+=--disable-sdl .endif .if !defined(WITHOUT_TRANSCODE) RUN_DEPENDS+= transcode:${PORTSDIR}/multimedia/transcode .endif .if !defined(WITHOUT_HTTPD) && defined(WITH_SSL) LIB_DEPENDS+= gnutls.12:${PORTSDIR}/security/gnutls CONFIGURE_ARGS+=--enable-gnutls .else CONFIGURE_ARGS+=--disable-gnutls .endif .if !defined(WITHOUT_SLP) LIB_DEPENDS+= slp.1:${PORTSDIR}/net/openslp .else CONFIGURE_ARGS+=--disable-slp .endif .if defined(WITH_SPEEX) && !defined(WITHOUT_SPEEX) LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex-devel CONFIGURE_ARGS+=--enable-speex CPPFLAGS+=-I${LOCALBASE}/include/speex .else CONFIGURE_ARGS+=--disable-speex .endif .if defined(WITH_SVG) && !defined(WITHOUT_SVG) USE_GNOME+= librsvg2 CONFIGURE_ARGS+=--enable-svg .else CONFIGURE_AGRS+=--disable-svg .endif .if defined(WITH_SVGALIB) && !defined(WITHOUT_SVGALIB) LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib CONFIGURE_ARGS+=--enable-svgalib .else CONFIGURE_ARGS+=--disable-svgalib .endif .if defined(WITH_LIBTREMOR) && !defined(WITHOUT_LIBTREMOR) LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor .else CONFIGURE_ARGS+=--disable-tremor .endif .if defined(WITH_TOOLAME) && !defined(WITHOUT_TOOLAME) BUILD_DEPENDS+= toolame:${PORTSDIR}/audio/toolame RUN_DEPEDNS+= toolame:${PORTSDIR}/audio/toolame CONFIGURE_ARGS+= --enable-toolame .else CONFIGURE_ARGS+= --disable-toolame .endif .if !defined(WITHOUT_VORBIS) LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis CONFIGURE_ARGS+=--enable-vorbis .else CONFIGURE_ARGS+=--disable-vorbis .endif .if defined(WITH_XOSD) && !defined(WITHOUT_XOSD) LIB_DEPENDS+= xosd.4:${PORTSDIR}/misc/xosd CONFIGURE_ARGS+=--enable-xosd .else CONFIGURE_ARGS+=--disable-xosd .endif .if defined(DEBUG) CONFIGURE_AGRS+=--enable-debug .else CONFIGURE_ARGS+=--enable-release .endif .if defined(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O2 -ffast-math -fomit-frame-pointer CONFIGURE_ARGS+=--enable-release .else CONFIGURE_ARGS+=--disable-optimizations .endif .if ${OSVERSION} < 500000 CONFIGURE_ENV+= LIBS="-L/usr/lib -lcipher" .endif pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} "Take a careful look at the beginning of the Makefile in order" @${ECHO_MSG} "to learn how to tune VLC towards you personal preferences!" @${ECHO_MSG} "For example, make WITH_MOZILLA_PLUGIN=firefox" .if defined(WITH_SPEEX) && exists(${LOCALBASE}/include/speex.h) @${ECHO_MSG} "" @${ECHO_MSG} "**** WARNING ****" @${ECHO_MSG} "Speex 1.0 was detected, if you want Speex support" @${ECHO_MSG} "Please upgrade speex to audio/speex-devel (1.1.x)" @${ECHO_MSG} "" .endif post-patch: # Subtitle default font @${REINPLACE_CMD} -e \ 's|/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf|${WITH_VLC_DEFAULT_FONT}|' \ ${WRKSRC}/modules/misc/freetype.c # mozilla plugin .if defined(WITH_MOZILLA_PLUGIN) @${CP} -f ${WRKDIR}/vlc-intf-mozilla-plugin/vlcintf.h ${WRKSRC}/mozilla @${CP} -f ${WRKDIR}/vlc-intf-mozilla-plugin/vlcintf.xpt ${WRKSRC}/mozilla @${REINPLACE_CMD} -e 's|$$(libdir)/mozilla/plugins|${FAKEDIR}/mozilla|; \ s|$$(libdir)/mozilla/components|${FAKEDIR}/mozilla|' \ ${WRKSRC}/mozilla/Makefile.in .endif # skins2 interface @${REINPLACE_CMD} -e 's|lrint|rint|' \ ${WRKSRC}/modules/gui/skins2/controls/ctrl_list.cpp # s/Linux/FreeBSD/ @${REINPLACE_CMD} -e 's|Linux|FreeBSD|' \ ${WRKSRC}/po/* @${RM} -f ${WRKSRC}/po/*.bak @${REINPLACE_CMD} -e 's|Linux OSS|FreeBSD OSS|' \ ${WRKSRC}/modules/audio_output/oss.c # pthreads/cflags @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' \ -e 's/-lc_r/${PTHREAD_LIBS}/' \ -e 's|-mcpu=pentiumpro||' \ -e 's|postproc/postprocess.h|ffmpeg/postproc/postprocess.h|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|cflags_tuning=|# cflags_tuning=|' \ ${WRKSRC}/vlc-config.in # cdrom/dvd support @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|; \ s|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ ${WRKSRC}/include/vlc_config.h pre-install: ${RM} -rf ${PLIST} ${FAKEDIR} ${MKDIR} ${FAKEDIR} ${TOUCH} -f ${PLIST} .if !defined(WITHOUT_WXWINDOWS) ${ECHO_CMD} "share/gnome/applications/vlc.desktop" >> ${PLIST} ${ECHO_CMD} "share/gnome/pixmaps/vlc.png" >> ${PLIST} .endif cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} prefix=${FAKEDIR} cd ${FAKEDIR}/bin && ${FIND} -s * | \ ${SED} -e 's|^|bin/|' >> ${PLIST} cd ${FAKEDIR}/include && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|include/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm include/|' >> ${PLIST} cd ${FAKEDIR}/lib && ${FIND} -s * -type f -o -type l| \ ${SED} -e 's|^|lib/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm lib/|' >> ${PLIST} .for dir in vlc cd ${FAKEDIR}/share/${dir} && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/${dir}/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm share/${dir}/|' >> ${PLIST} .endfor .if !defined(NOPORTDOCS) cd ${FAKEDIR}/share/doc && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/doc/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm share/doc/|' >> ${PLIST} .else ${RM} -rf ${FAKEDIR}/share/doc .endif ${ECHO_MSG} "@dirrm share/vlc" >> ${PLIST} cd ${FAKEDIR}/share/locale && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/locale/|' >> ${PLIST} .if defined(WITH_MOZILLA_PLUGIN) cd ${FAKEDIR}/mozilla && ${FIND} -s * | \ ${SED} -e 's|^|lib/browser_plugins/|' >> ${PLIST} .endif do-install: .if !defined(WITHOUT_WXWINDOWS) if [ ! -d ${PREFIX}/share/gnome/applications ]; then \ ${MKDIR} ${PREFIX}/share/gnome/applications ; \ fi ${INSTALL_DATA} ${FILESDIR}/vlc.desktop ${PREFIX}/share/gnome/applications if [ ! -d ${PREFIX}/share/gnome/pixmaps ]; then \ ${MKDIR} ${PREFIX}/share/gnome/pixmaps ; \ fi ${INSTALL_DATA} ${FAKEDIR}/share/vlc/vlc48x48.png ${PREFIX}/share/gnome/pixmaps/vlc.png .endif @${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|' \ ${FAKEDIR}/bin/vlc-config @${RM} -f ${FAKEDIR}/bin/*.bak cd ${FAKEDIR}/bin && ${FIND} . | \ ${CPIO} -pdm -R ${BINOWN}:${BINGRP} ${PREFIX}/bin cd ${FAKEDIR}/include && ${FIND} . | \ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include cd ${FAKEDIR}/lib && ${FIND} . | \ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib cd ${FAKEDIR}/share && ${FIND} . | \ ${CPIO} -pdm -L -R ${SHAREOWN} ${PREFIX}/share .if defined(WITH_MOZILLA_PLUGIN) @${MKDIR} ${PREFIX}/lib/browser_plugins ${INSTALL_DATA} ${FAKEDIR}/mozilla/* ${PREFIX}/lib/browser_plugins .endif ${INSTALL_MAN} ${WRKSRC}/doc/vlc.1 ${MANPREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/doc/vlc-config.1 ${MANPREFIX}/man/man1/ .include Property changes on: head/multimedia/vlc/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.74 \ No newline at end of property +1.75 \ No newline at end of property Index: head/multimedia/vlc-devel/Makefile =================================================================== --- head/multimedia/vlc-devel/Makefile (revision 126328) +++ head/multimedia/vlc-devel/Makefile (revision 126329) @@ -1,748 +1,748 @@ # New ports collection makefile for: vlc # Date created: 3rd August 2001 # Whom: Brian Somers # # $FreeBSD$ # # NOTES about VLC Knobs: # Below you will see a number of knobs, if it starts with WITHOUT_ it is # enabled by default, if it starts with WITH_ it is disabled by default # and will be autodetected to enable # # If you define for example WITH_FAAD and WITHOUT_FAAD # the WITHOUT_ will always over ride the WITH_. # # Interface Knobs: # # WITHOUT_HTTPD=yes # Web interface to control streaming media # * recommended if you want to stream media # # WITH_NCURSES=yes # Ncurses (console) interface # # WITH_SKINS # This Interface supports a skinned gtk2.0 interface # Skins can be found at http://www.videolan.org/vlc/download-skins.html # # WITHOUT_WXWINDOWS=yes # WxWindows/Gtk 2.x Interface # This is the default and most supported # x11 interface # # Audio Knobs: # # WITH_ARTS=yes # Arts Support # # WITHOUT_DTS=yes # DTS decoder Support # useful for many dvds # # WITH_ESOUND=yes # Esound Support # # WITH_FAAC=yes # Faac audio encoder (mp4/aac) Support # # WITHOUT_FAAD=yes # Faad audio decoder (mp4/aac) Support # # WITHOUT_FLAC=yes # Flac Support # # WITHOUT_LAME=yes # Mp3 encoder Support # # WITHOUT_LIBA52=yes # liba52 audio Support # # WITH_LIBTREMOR # Interger-only Ogg Vorbis decoder # !!experimental!! # # WITHOUT_MAD=yes # Mad mp3 audio decoder Support # # WITH_SPEEX=yes # Speex voice codec Support # Note: you need audio/speex-devel # # WITH_TOOLAME=yes # Toolame Support # # WITHOUT_VORBIS=yes # Ogg/Vorbis Support # # Graphics Knobs: # # WITH_AALIB=yes # Console Graphics Support # # WITH_FRIBIDI=yes # # WITH_GGI=yes # # WITH_LIBCACA=yes # Console Graphics Support (implies WITH_AALIB) # # WITHOUT_SDL=yes # SDL video output # # WITH_SVG=yes # # WITH_SVGALIB=yes # SVGAlib video output # # WITH_XOSD=yes # # Multimedia Knbos: # # WITHOUT_H264 # Disable H.264/AVC Video Support # # WITHOUT_LIBMATROSKA=yes # Matroska Container Format Support # # WITHOUT_LIBMPEG2=yes # # WITH_LIBTHEORA=yes # # WITHOUT_TRANSCODE=yes # Disable transcode of multimedia via transcode (multimedia/transcode). # This option allows you to convert a media file, dvd, A/V stream, etc # in to another format. This also allows you to transcode multimedia # on-the-fly and stream to a network and/or local playback. # # Other Knobs: # # DEBUG=yes # Enable debuging support # # WITHOUT_CDROM=yes # Disable cddb and vcd support # and other cdrom support # # WITHOUT_DVBPSI=yes # TS MUX and DEMUX support # # WITHOUT_DVD=yes # Disable all dvd support # # WITHOUT_LIVEMEDIA=yes # Support for rstp/rtp/sdp protocols # Only versions 2004.11.11 and higher are supported. # * recommended if you want to stream media. # # WITH_MOZILLA_PLUGIN= [mozilla|mozilla-devel|firefox] # Enable A mozilla plugin for VLC # See http://www.videolan.org/doc/vlc-user-guide/en/ch07.html#id2529837 # for more info on using this plugin. # defaults to www/mozilla # # WITH_OPENGL=yes # Enable OpenGL visual plugin (not playback, play back is default with X11) # # WITH_SSL=yes # Enable TLS/SSL Support for web (httpd) interface # # WITHOUT_SLP=yes # Disable SLP service discovery support # * recommended if you want to stream media # # WITH_OPTIMIZED_CFLAGS=yes # Compile with -O2 -ffast-math -fomit-frame-pointer # # WITH_DVD_DEVICE=/dev/somedevice # default 5.x and above: /dev/acd0 # default 4.x and below: /dev/acd0c # This option changes the default dvd device # # WITH_CDROM_DEVICE=/dev/somedevice # default 5.x and above: /dev/acd0 # default 4.x and below: /dev/acd0c # This option changes the default cdrom device # # WITHOUT_NLS=yes # Disable Languarge Support # # WITH_VLC_DEFAULT_FONT=/path/to/font # default: ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf # This option lets you change the default font for subtitles # # NOPORTDOCS=yes # Do not install Vlc's Documents # PORTNAME= vlc PORTVERSION= 0.8.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= multimedia audio ipv6 net www MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${PORTVERSION}/ \ http://ftp.snt.utwente.nl/pub/software/videolan/vlc/${PORTVERSION}/ \ ftp://ftp.crans.org/pub/videolan/vlc/${PORTVERSION}/ \ ftp://videolan.cs.pu.edu.tw/Windows/VideoLAN/vlc/${PORTVERSION}/ \ ${MASTER_SITE_LOCAL:S|$|:mozilla|} MASTER_SITE_SUBDIR= ahze/:mozilla PKGNAMESUFFIX?= ${ESOUND_SUFFIX}${MOZILLA_SUFFIX}${PKGNAMESUFFIX2} DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ vlc-intf-mozilla-plugin${EXTRACT_SUFX}:mozilla MAINTAINER= ahze@FreeBSD.org COMMENT= Multimedia streaming server and player for various audio/video formats RUN_DEPEDNS= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf:${PORTSDIR}/x11-fonts/bitstream-vera LIB_DEPENDS= avcodec.1:${PORTSDIR}/multimedia/ffmpeg ### BROKEN -- Needs newer verision of toolame ### WITHOUT_TOOLAME= yes ### BROKEN ### WITH_VLC_DEFAULT_FONT?= ${X11BASE}/lib/X11/fonts/bitstream-vera/Vera.ttf USE_BZIP2= yes USE_X_PREFIX= yes USE_GETOPT_LONG=yes USE_GETTEXT= yes USE_GMAKE= yes WANT_GNOME= yes USE_GNOME= gnometarget USE_REINPLACE= yes WANT_SDL= yes USE_XLIB= yes USE_ICONV= yes FAKEDIR= ${WRKDIR}/fake PLIST= ${WRKDIR}/plist INSTALLS_SHLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV+= PATH_GTKCONFIG="${GTK_CONFIG}" CFLAGS="${CFLAGS}" \ CPPFLAGS="-I${WRKSRC}/include/vlc/ -I${LOCALBASE}/ffmpeg ${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS+= --enable-ffmpeg \ --with-ffmpeg=${LOCALBASE} \ --with-ffmpeg-zlib \ --disable-gnome \ --disable-gtk \ --without-libintl-prefix MAN1= vlc.1 \ vlc-config.1 .if defined(WITH_MOZILLA_PLUGIN) .if ${WITH_MOZILLA_PLUGIN}=="firefox" BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/bin/firefox-config" .else BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/lib/mozilla${HEADERS_SUFX}/mozilla-config" .endif MOZILLA_SUFFIX=-mozilla CONFIGURE_ARGS+=--enable-mozilla .if ${WITH_MOZILLA_PLUGIN}=="mozilla-devel" HEADERS_SUFX= -devel .else HEADERS_SUFX= .endif .endif .include .if ${HAVE_GNOME:Mesound}!="" && !defined(WITHOUT_ESOUND) WITH_ESOUND= yes .endif .if exists(${LOCALBASE}/lib/libaa.so.1) && !defined(WITHOUT_AALIB) WITH_AALIB= yes .endif .if exists(${LOCALBASE}/lib/libcaca.a) WITH_LIBCACA= yes WITH_AALIB= yes .endif .if exists(${LOCALBASE}/bin/fribidi-config) && !defined(WITHOUT_FRIBIDI) WITH_FRIBIDI= yes .endif .if exists(${LOCALBASE}/lib/libggi.so.2) && !defined(WITHOUT_GGI) WITH_GGI= yes .endif -.if exists(${LOCALBASE}/lib/libtheora.so.0) && !defined(WITHOUT_LIBTHEORA) +.if exists(${LOCALBASE}/lib/libtheora.so.1) && !defined(WITHOUT_LIBTHEORA) WITH_LIBTHEORA= yes .endif .if exists(${LOCALBASE}/lib/libspeex.a) && !defined(WITHOUT_SPEEX) .if exists(${LOCALBASE}/include/speex.h) WITHOUT_SPEEX= yes .else WITH_SPEEX= yes .endif .endif .if exists(${LOCALBASE}/lib/libgnutls.a) && !defined(WITHOUT_SSL) WITH_SSL= yes .endif .if exists(${X11BASE}/lib/librsvg-2.a) && !defined(WITHOUT_SVG) WITH_SVG= yes .endif .if exists(${LOCALBASE}/lib/lib/vga.so.1) && !defined(WITHOUT_SVGALIB) WITH_SVGALIB= yes .endif .if exists(${LOCALBASE}/lib/libvorbisidec.a) WITH_LIBTREMOR= yes .endif .if exists(${LOCALBASE}/bin/toolame) WITH_TOOLAME= yes .endif .if exists(${LOCALBASE}/lib/libxosd.so.4) && !defined(WITHOUT_XOSD) WITH_XOSD= yes .endif # compatible knobs. .if defined(WITH_DEBUG) DEBUG= yes .endif .if defined(WITH_MATROSKA) WITH_LIBMATROSKA=yes .endif .if defined(WITH_TREMOR) WITH_LIBTREMOR=yes .endif # end compatible knobs .if defined(WITHOUT_NLS) CONFIGURE_ARGS+=--disable-nls .endif .if defined(WITH_DVD_DEVICE) DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} .else .if ${OSVERSION} < 500000 DEFAULT_DVD_DEVICE=/dev/acd0c .else DEFAULT_DVD_DEVICE=/dev/acd0 .endif .endif .if defined(WITH_CDROM_DEVICE) DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} .else .if ${OSVERSION} < 500000 DEFAULT_CDROM_DEVICE=/dev/acd0c .else DEFAULT_CDROM_DEVICE=/dev/acd0 .endif .endif .if defined(WITH_SKINS) && !defined(WITHOUT_SKINS) LIB_DEPENDS+= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 CONFIGURE_ARGS+=--enable-skins2 --enable-skins .else CONFIGURE_ARGS+=--disable-skins2 .endif .if !defined(WITHOUT_WXWINDOWS) LIB_DEPENDS+= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 USE_GNOME+= gnomehier CONFIGURE_ARGS+=--enable-wxwindows CONFIGURE_ENV+= WX_CONFIG=${X11BASE}/bin/wxgtk2-2.4-config .else CONFIGURE_ARGS+=--disable-wxwindows .endif .if defined(WITH_ARTS) && !defined(WITHOUT_ARTS) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+= --enable-arts .else CONFIGURE_ARGS+= --disable-arts .endif .if !defined(WITHOUT_CDROM) LIB_DEPENDS+= vcdinfo.1:${PORTSDIR}/multimedia/vcdimager \ cdio.3:${PORTSDIR}/sysutils/libcdio CONFIGURE_ARGS+=--enable-vcd \ --enable-libcddb \ --enable-libcdio .else CONFIGURE_ARGS+=--disable-vcd \ --disable-libcddb \ --disable-libcdio .endif .if !defined(WITHOUT_DVBPSI) LIB_DEPENDS+= dvbpsi.3:${PORTSDIR}/multimedia/libdvbpsi CONFIGURE_ARGS+=--enable-dvbpsi \ --with-dvbpsi=${LOCALBASE} .else CONFIGURE_ARGS+=--disable-dvbpsi .endif .if !defined(WITHOUT_DVD) LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav CONFIGURE_ARGS+=--enable-dvdnav \ --enable-dvdread \ --with-dvdcss=${LOCALBASE} \ --with-dvdread=${LOCALBASE} .else CONFIGURE_ARGS+=--disable-dvdnav \ --disable-dvdread .endif .if defined(WITH_ESOUND) && !defined(WITHOUT_ESOUND) ESOUND_SUFFIX= -esound USE_GNOME+= esound CONFIGURE_ARGS+=--enable-esd .endif .if defined(WITH_FAAC) && !defined(WITHOUT_FAAC) CONFIGURE_ARGS+=--with-ffmpeg-faac LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac .endif .if !defined(WITHOUT_FAAD) LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad CONFIGURE_ARGS+=--enable-faad .else CONFIGURE_ARGS+=--disable-faad .endif .if !defined(WITHOUT_FLAC) LIB_DEPENDS+= FLAC.5:${PORTSDIR}/audio/flac CONFIGURE_ARGS+=--enable-flac .else CONFLGIRE_ARGS+=--disable-flac .endif .if defined(WITH_FRIBIDI) && !defined(WITHOUT_FRIBIDI) LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi CONFIGURE_ARGS+=--enable-fribidi .endif .if defined(WITH_AALIB) && !defined(WITHOUT_AALIB) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib CONFIGUR_ARGSE+= --enable-aa .endif .if !defined(WITHOUT_H264) CONFIGURE_ARGS+=--enable-x264 BUILD_DEPENDS+= x264:${PORTSDIR}/multimedia/x264 .else CONFIGURE_ARGS+=--disable-x264 .endif .if defined(WITH_LIBCACA) && !defined(WITHOUT_LIBCACA) .if !defined(WITHOUT_AALIB) WITH_AALIB= yes BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca RUN_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca CONFIGURE_ARGS+=--enable-caca .endif .else CONFIGURE_ARGS+=--disable-caca .endif .if !defined(WITHOUT_DTS) BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts CONFIGURE_ARGS+=--enable-dts .else CONFIGURE_ARGS+=--disable-dts .endif .if defined(WITHOUT_HTTPD) CONFIGURE_ARGS+=--disable-httpd .endif .if defined(WITH_GGI) && !defined(WITHOUT_GGI) LIB_DEPENDS+= ggi.2:${PORTSDIR}/graphics/libggi CONFIGURE_ARGS+=--enable-ggi .else CONFIGURE_ARGS+=--disable-ggi .endif .if !defined(WITHOUT_LAME) LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame CONFIGURE_ARGS+=--enable-mp3lame .else CONFIGURE_ARGS+=--disable-mp3lame .endif .if !defined(WITHOUT_LIBMATROSKA) BUILD_DEPENDS+= ${LOCALBASE}/lib/libmatroska.a:${PORTSDIR}/multimedia/libmatroska .endif .if !defined(WITHOUT_LIBA52) LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 CONFIGURE_ARGS+=--enable-a52 .else CONFIGURE_ARGS+=--disable-a52 .endif .if !defined(WITHOUT_LIBMPEG2) LIB_DEPENDS+= mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 CONFIGURE_ARGS+=--enable-libmpeg2 .else CONFIGURE_ARGS+=--disable-libmpeg2 .endif .if defined(WITH_LIBTHEORA) && !defined(WITHOUT_LIBTHEORA) -LIB_DEPENDS+= theora.0:${PORTSDIR}/graphics/libtheora +LIB_DEPENDS+= theora.1:${PORTSDIR}/multimedia/libtheora CONFIGURE_ARGS+=--enable-theora .else CONFIGURE_ARGS+=--disable-theora .endif .if !defined(WITHOUT_LIVEMEDIA) BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia CONFIGURE_ARGS+=--enable-livedotcom \ --with-livedotcom-tree=${LOCALBASE}/live .else CONFIGURE_ARGS+=--disable-livedotcom .endif .if !defined(WITHOUT_MAD) LIB_DEPENDS+= id3tag.2:${PORTSDIR}/audio/libid3tag \ mad.2:${PORTSDIR}/audio/libmad CONFIGURE_ARGS+=--enable-mad \ --with-mad=${LOCALBASE} .else CONFIGURE_ARGS+=--disable-mad .endif .if defined(WITH_NCURSES) && !defined(WITHOUT_NCURSES) CONFIGURE_ARGS+=--enable-ncurses .endif .if defined(WITH_OPENGL) && !defined(WITHOUT_OPENGL) USE_GL= yes CONFIGURE_ARGS+=--enable-galaktos .else CONFIGURE_ARGS+=--disable-galaktos .endif .if !defined(WITHOUT_SDL) USE_SDL= yes CONFIGURE_ARGS+=--enable-sdl .else CONFIGURE_ARGS+=--disable-sdl .endif .if !defined(WITHOUT_TRANSCODE) RUN_DEPENDS+= transcode:${PORTSDIR}/multimedia/transcode .endif .if !defined(WITHOUT_HTTPD) && defined(WITH_SSL) LIB_DEPENDS+= gnutls.12:${PORTSDIR}/security/gnutls CONFIGURE_ARGS+=--enable-gnutls .else CONFIGURE_ARGS+=--disable-gnutls .endif .if !defined(WITHOUT_SLP) LIB_DEPENDS+= slp.1:${PORTSDIR}/net/openslp .else CONFIGURE_ARGS+=--disable-slp .endif .if defined(WITH_SPEEX) && !defined(WITHOUT_SPEEX) LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex-devel CONFIGURE_ARGS+=--enable-speex CPPFLAGS+=-I${LOCALBASE}/include/speex .else CONFIGURE_ARGS+=--disable-speex .endif .if defined(WITH_SVG) && !defined(WITHOUT_SVG) USE_GNOME+= librsvg2 CONFIGURE_ARGS+=--enable-svg .else CONFIGURE_AGRS+=--disable-svg .endif .if defined(WITH_SVGALIB) && !defined(WITHOUT_SVGALIB) LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib CONFIGURE_ARGS+=--enable-svgalib .else CONFIGURE_ARGS+=--disable-svgalib .endif .if defined(WITH_LIBTREMOR) && !defined(WITHOUT_LIBTREMOR) LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor .else CONFIGURE_ARGS+=--disable-tremor .endif .if defined(WITH_TOOLAME) && !defined(WITHOUT_TOOLAME) BUILD_DEPENDS+= toolame:${PORTSDIR}/audio/toolame RUN_DEPEDNS+= toolame:${PORTSDIR}/audio/toolame CONFIGURE_ARGS+= --enable-toolame .else CONFIGURE_ARGS+= --disable-toolame .endif .if !defined(WITHOUT_VORBIS) LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis CONFIGURE_ARGS+=--enable-vorbis .else CONFIGURE_ARGS+=--disable-vorbis .endif .if defined(WITH_XOSD) && !defined(WITHOUT_XOSD) LIB_DEPENDS+= xosd.4:${PORTSDIR}/misc/xosd CONFIGURE_ARGS+=--enable-xosd .else CONFIGURE_ARGS+=--disable-xosd .endif .if defined(DEBUG) CONFIGURE_AGRS+=--enable-debug .else CONFIGURE_ARGS+=--enable-release .endif .if defined(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O2 -ffast-math -fomit-frame-pointer CONFIGURE_ARGS+=--enable-release .else CONFIGURE_ARGS+=--disable-optimizations .endif .if ${OSVERSION} < 500000 CONFIGURE_ENV+= LIBS="-L/usr/lib -lcipher" .endif pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} "Take a careful look at the beginning of the Makefile in order" @${ECHO_MSG} "to learn how to tune VLC towards you personal preferences!" @${ECHO_MSG} "For example, make WITH_MOZILLA_PLUGIN=firefox" .if defined(WITH_SPEEX) && exists(${LOCALBASE}/include/speex.h) @${ECHO_MSG} "" @${ECHO_MSG} "**** WARNING ****" @${ECHO_MSG} "Speex 1.0 was detected, if you want Speex support" @${ECHO_MSG} "Please upgrade speex to audio/speex-devel (1.1.x)" @${ECHO_MSG} "" .endif post-patch: # Subtitle default font @${REINPLACE_CMD} -e \ 's|/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf|${WITH_VLC_DEFAULT_FONT}|' \ ${WRKSRC}/modules/misc/freetype.c # mozilla plugin .if defined(WITH_MOZILLA_PLUGIN) @${CP} -f ${WRKDIR}/vlc-intf-mozilla-plugin/vlcintf.h ${WRKSRC}/mozilla @${CP} -f ${WRKDIR}/vlc-intf-mozilla-plugin/vlcintf.xpt ${WRKSRC}/mozilla @${REINPLACE_CMD} -e 's|$$(libdir)/mozilla/plugins|${FAKEDIR}/mozilla|; \ s|$$(libdir)/mozilla/components|${FAKEDIR}/mozilla|' \ ${WRKSRC}/mozilla/Makefile.in .endif # skins2 interface @${REINPLACE_CMD} -e 's|lrint|rint|' \ ${WRKSRC}/modules/gui/skins2/controls/ctrl_list.cpp # s/Linux/FreeBSD/ @${REINPLACE_CMD} -e 's|Linux|FreeBSD|' \ ${WRKSRC}/po/* @${RM} -f ${WRKSRC}/po/*.bak @${REINPLACE_CMD} -e 's|Linux OSS|FreeBSD OSS|' \ ${WRKSRC}/modules/audio_output/oss.c # pthreads/cflags @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' \ -e 's/-lc_r/${PTHREAD_LIBS}/' \ -e 's|-mcpu=pentiumpro||' \ -e 's|postproc/postprocess.h|ffmpeg/postproc/postprocess.h|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|cflags_tuning=|# cflags_tuning=|' \ ${WRKSRC}/vlc-config.in # cdrom/dvd support @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|; \ s|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ ${WRKSRC}/include/vlc_config.h pre-install: ${RM} -rf ${PLIST} ${FAKEDIR} ${MKDIR} ${FAKEDIR} ${TOUCH} -f ${PLIST} .if !defined(WITHOUT_WXWINDOWS) ${ECHO_CMD} "share/gnome/applications/vlc.desktop" >> ${PLIST} ${ECHO_CMD} "share/gnome/pixmaps/vlc.png" >> ${PLIST} .endif cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} prefix=${FAKEDIR} cd ${FAKEDIR}/bin && ${FIND} -s * | \ ${SED} -e 's|^|bin/|' >> ${PLIST} cd ${FAKEDIR}/include && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|include/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm include/|' >> ${PLIST} cd ${FAKEDIR}/lib && ${FIND} -s * -type f -o -type l| \ ${SED} -e 's|^|lib/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm lib/|' >> ${PLIST} .for dir in vlc cd ${FAKEDIR}/share/${dir} && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/${dir}/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm share/${dir}/|' >> ${PLIST} .endfor .if !defined(NOPORTDOCS) cd ${FAKEDIR}/share/doc && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/doc/|' >> ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm share/doc/|' >> ${PLIST} .else ${RM} -rf ${FAKEDIR}/share/doc .endif ${ECHO_MSG} "@dirrm share/vlc" >> ${PLIST} cd ${FAKEDIR}/share/locale && ${FIND} -s * -type f -o -type l | \ ${SED} -e 's|^|share/locale/|' >> ${PLIST} .if defined(WITH_MOZILLA_PLUGIN) cd ${FAKEDIR}/mozilla && ${FIND} -s * | \ ${SED} -e 's|^|lib/browser_plugins/|' >> ${PLIST} .endif do-install: .if !defined(WITHOUT_WXWINDOWS) if [ ! -d ${PREFIX}/share/gnome/applications ]; then \ ${MKDIR} ${PREFIX}/share/gnome/applications ; \ fi ${INSTALL_DATA} ${FILESDIR}/vlc.desktop ${PREFIX}/share/gnome/applications if [ ! -d ${PREFIX}/share/gnome/pixmaps ]; then \ ${MKDIR} ${PREFIX}/share/gnome/pixmaps ; \ fi ${INSTALL_DATA} ${FAKEDIR}/share/vlc/vlc48x48.png ${PREFIX}/share/gnome/pixmaps/vlc.png .endif @${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|' \ ${FAKEDIR}/bin/vlc-config @${RM} -f ${FAKEDIR}/bin/*.bak cd ${FAKEDIR}/bin && ${FIND} . | \ ${CPIO} -pdm -R ${BINOWN}:${BINGRP} ${PREFIX}/bin cd ${FAKEDIR}/include && ${FIND} . | \ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include cd ${FAKEDIR}/lib && ${FIND} . | \ ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib cd ${FAKEDIR}/share && ${FIND} . | \ ${CPIO} -pdm -L -R ${SHAREOWN} ${PREFIX}/share .if defined(WITH_MOZILLA_PLUGIN) @${MKDIR} ${PREFIX}/lib/browser_plugins ${INSTALL_DATA} ${FAKEDIR}/mozilla/* ${PREFIX}/lib/browser_plugins .endif ${INSTALL_MAN} ${WRKSRC}/doc/vlc.1 ${MANPREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/doc/vlc-config.1 ${MANPREFIX}/man/man1/ .include Property changes on: head/multimedia/vlc-devel/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.74 \ No newline at end of property +1.75 \ No newline at end of property