Index: Mk/bsd.gstreamer.mk =================================================================== --- Mk/bsd.gstreamer.mk (revision 304751) +++ Mk/bsd.gstreamer.mk (working copy) @@ -21,6 +21,9 @@ # For Gstreamer 0.10: # USE_GSTREAMER= lame faac ffmpeg # +# For Gstreamer 1.0 same rules apply but use USE_GSTREAMER10= instead of +# USE_GSTREAMER=. +# # If you want to use USE_GSTREAMER after # you must follow one of the examples listed below # @@ -37,11 +40,9 @@ # USE_GSTREAMER+= faad # .endif # -# # USE_GSTREAMER=yes will always add a dependency to # gstreamer-plugins # - # "Normal" dependencies and variables # @@ -50,6 +51,12 @@ GST_VERSION= 0.10 GST_MINOR_VERSION= .0 GST_SHLIB_VERSION= 1 + +GSTREAMER10_PORT= ${PORTSDIR}/multimedia/gstreamer-plugins10 +_GST10_LIB_BASE= ${LOCALBASE}/lib/gstreamer-${GST10_VERSION} +GST10_VERSION= 1.0 +GST10_MINOR_VERSION= .0 +GST10_SHLIB_VERSION= 1 # # These are the current supported gstreamer-plugins modules # @@ -68,12 +75,19 @@ _USE_GSTREAMER_ALL+= ${OTHER_GSTREAMER_PLUGINS} + +#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# + core_DEPENDS= multimedia/gstreamer-plugins-core yes_DEPENDS= multimedia/gstreamer-plugins yes_NAME= gstreamer-plugins yes_GST_PREFIX= # empty +yes_GST10_PREFIX= #empty +#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# + +# XXX move cdio and gconf cdio_DEPENDS= sysutils/gstreamer-plugins-cdio gconf_DEPENDS= devel/gstreamer-plugins-gconf @@ -279,5 +293,18 @@ . endif .endfor +.for ext in ${USE_GSTREAMER10} +${ext}_GST10_PREFIX?= gstreamer-plugins- +${ext}_GST10_SUFFIX?= 10 +${ext}_GST10_VERSION?= ${GST10_VERSION}${GST10_MINOR_VERSION} +${ext}_NAME?= ${ext} +. if ${_USE_GSTREAMER_ALL:M${ext}}!= "" && exists(${PORTSDIR}/${${ext}_DEPENDS}${${ext}_GST10_SUFFIX}) +BUILD_DEPENDS+= ${${ext}_GST10_PREFIX}${${ext}_NAME}>=${${ext}_GST10_VERSION}:${PORTSDIR}/${${ext}_DEPENDS}${${ext}_GST10_SUFFIX} +RUN_DEPENDS+= ${${ext}_GST10_PREFIX}${${ext}_NAME}>=${${ext}_GST10_VERSION}:${PORTSDIR}/${${ext}_DEPENDS}${${ext}_GST10_SUFFIX} +. else +IGNORE= cannot install: unknown gstreamer-plugin -- ${ext} +. endif +.endfor + # The End .endif Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk (revision 304751) +++ Mk/bsd.port.mk (working copy) @@ -1465,7 +1465,7 @@ .include "${PORTSDIR}/Mk/bsd.wx.mk" .endif -.if defined(WANT_GSTREAMER) || defined(USE_GSTREAMER) || defined(USE_GSTREAMER80) +.if defined(WANT_GSTREAMER) || defined(USE_GSTREAMER) || defined(USE_GSTREAMER10) .include "${PORTSDIR}/Mk/bsd.gstreamer.mk" .endif