summaryrefslogblamecommitdiffstats
path: root/multimedia/gstreamer-plugins/Makefile.common
blob: 0dee09015eb628bc4ca7752a77a2af36d46f5d13 (plain) (tree)
1
2
                                                                                                    
                                                                                                    












































































































                                                                                   

                                                              

       

                                                        


                                               

         


                           
       
                                                          

            


                                                                             

     

                                                                               

                                                
                   

    
                                                         

     


                                                                 
                           
                                                       




                                                 
                    


        


                                                                           
                                                     
                                                     



                                            

                                                     

      

                                                     

      
                                                     

       

                                           
                     

                                                                



                                                      


                                               

     

                                                   

         

                                                                        

     

                                                            



                                                     
                                                        

        
                                                                                      

      

                                                        

         

                                                                                       



                                                 

                                                            

                                            
                           

                                


                                                              



                                            

                                                                       

     
                                                        
                                                    
                    

          

                                                                       

          

                                                                    

             

                                                                              

                                            
                           
 







                                                                         
     


                                                      

       

                             

     


                                         

        
                                                                   

         

                                                                      

                                            
                            

       
                                                       

        

                                                                         

        



                                                                    

      

                                                              

         

                                                                   


                            
                                    
                                 

                                 



                                                                                         

                                                                                 

















                                                         
                                          
                                                  
      
                                                   
                                    
                                            
      



                                                        
















                                                                            
# $FreeBSD: ports/multimedia/gstreamer-plugins/Makefile.common,v 1.34 2006/06/09 20:24:02 ahze Exp $
#    $MCom: ports/multimedia/gstreamer-plugins/Makefile.common,v 1.58 2006/07/06 19:32:34 ahze Exp $
# base
BASE_GST_ALL_PLUGINS= \
        alsa \
        cdparanoia \
        gnomevfs \
        libvisual \
        ogg \
        pango \
        theora \
        vorbis
# bad
BAD_GST_ALL_PLUGINS+= \
        amrwb \
        bz2 \
        directfb \
        divx \
        dts \
        faac \
        faad \
        gsm \
        ivorbis \
        libmms \
        musepack \
        musicbrainz \
        neon \
        sdl \
        soundtouch \
        swfdec \
        xvid \
        wavpack
#       throra

# good
GOOD_GST_ALL_PLUGINS+= \
        aalib \
        annodex \
        cairo \
        cdio \
        dv \
        esd \
        flac \
        gconf \
        gdk_pixbuf \
        hal \
        jpeg \
        ladspa \
        libcaca \
        libpng \
        raw1394 \
        shout2 \
        speex \
        taglib
# Ugly
UGLY_GST_ALL_PLUGINS+= \
        a52dec \
        amrnb \
        dvdnav \
        dvdread \
        lame \
        mad \
        mpeg2dec \
        sidplay

CONFIG_GST_PLUGINS= gnome_vfs
GST_ALL_PLUGINS=    ${BASE_GST_ALL_PLUGINS} ${BAD_GST_ALL_PLUGINS} \
            ${GOOD_GST_ALL_PLUGINS} ${UGLY_ALL_PLUGINS} \
            ${CONFIG_GST_PLUGINS}

# Disable all plugins by default
.for d in ${GST_ALL_PLUGINS}
CONFIGURE_ARGS+=    --disable-${d}
.endfor
CONFIGURE_ARGS+=    --enable-${GST_PLUGIN}

CONFIGURE_ARGS+=--disable-tests \
        --disable-examples \
        --disable-amrnb \
        --disable-alsa \
        --disable-http \
        --enable-cdrom \
        --disable-gconf \
        --disable-gconftool \
        --disable-schemas-install \
        --enable-oss \
        --disable-osx_audio \
        --disable-osx_video \
        --disable-tarkin \
        --enable-static \
        --disable-sunaudio \
        --disable-gst_v4l \
        --disable-gst_v4l2 \
        --disable-xine \
        --enable-x \
        --enable-xshm \
        --enable-xvideo

.if !defined(NO_GSTREAMER_COMMON)
GST_PLUGIN_SUFFIX?= -${GST_PLUGIN}

# Enable the right plugin

CONFIGURE_ARGS:=${CONFIGURE_ARGS:S|--disable-${GST_PLUGIN}|--enable-${GST_PLUGIN}|}

GST_LIB_DIR=        lib/gstreamer-${VERSION}

# Auto create PLIST
PLIST=      ${NONEXISTENT}

# a52dec
gst_a52dec_LIB_DEPENDS+=    a52.0:${PORTSDIR}/audio/liba52
gst_a52dec_DIST=    ugly

# aalib
gst_aalib_LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
gst_aalib_PLIST_FILES=  ${GST_LIB_DIR}/libgstaasink.so \
        ${GST_LIB_DIR}/libgstaasink.a \
        ${GST_LIB_DIR}/libgstaasink.la

# annodex

# bz2
gst_bz2_DIST=       bad

# cairo
gst_cairo_LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo

# cdparanoia
gst_cdparanoia_LIB_DEPENDS+=    cdda_interface.0:${PORTSDIR}/audio/cdparanoia
gst_cdparanoia_EXTRA_LIBS+= -lgstcdda-${VERSION}
gst_cdparanoia_DIST=    base

# dts
gst_dts_BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts
gst_dts_PLIST_FILES=    ${GST_LIB_DIR}/libgstdtsdec.a \
        ${GST_LIB_DIR}/libgstdtsdec.la \
        ${GST_LIB_DIR}/libgstdtsdec.so
gst_dts_DIST=   bad

# dv
gst_dv_LIB_DEPENDS+=    dv.4:${PORTSDIR}/multimedia/libdv

# dvd
gst_dvd_EXTRA_LIBS+=    -ldvdnav
gst_dvd_LIB_DEPENDS+=   dvdnav.4:${PORTSDIR}/multimedia/libdvdnav
gst_dvd_GST_PLUGIN_DIR= ext/dvdnav \
        ext/dvdread
gst_dvd_PLIST_FILES=    ${GST_LIB_DIR}/libgstdvdnav.a \
        ${GST_LIB_DIR}/libgstdvdnav.la \
        ${GST_LIB_DIR}/libgstdvdnav.so \
        ${GST_LIB_DIR}/libgstdvdread.a \
        ${GST_LIB_DIR}/libgstdvdread.la \
        ${GST_LIB_DIR}/libgstdvdread.so
gst_dvd_DIST=   ugly


# esound
gst_esound_USE_GNOME+=  esound
gst_esound_GST_PLUGIN_DIR=  ext/esd
gst_esound_CONFIGURE_ENV+=  ESD_CFLAGS="`pkg-config --cflags esound`" \
        ESD_LIBS="`pkg-config --libs esound`"
gst_esound_PLIST_FILES= ${GST_LIB_DIR}/libgstesd.so \
        ${GST_LIB_DIR}/libgstesd.a \
        ${GST_LIB_DIR}/libgstesd.la

# faac
gst_faac_LIB_DEPENDS+=  faac.0:${PORTSDIR}/audio/faac
gst_faac_DIST=  bad

# faad
gst_faad_LIB_DEPENDS+=  faad.0:${PORTSDIR}/audio/faad
gst_faad_DIST=  bad

# flac
gst_flac_LIB_DEPENDS+=  FLAC.7:${PORTSDIR}/audio/flac

# gconf
gst_gconf_USE_GNOME+=   gconf2
gst_gconf_GST_PLUGIN_DIR=   ext/gconf \
        gconf
gst_gconf_GCONF_SCHEMAS=    gstreamer-${GST_VERSION}.schemas
gst_gconf_PLIST_FILES=  ${GST_LIB_DIR}/libgstgconfelements.so \
        ${GST_LIB_DIR}/libgstgconfelements.a \
        ${GST_LIB_DIR}/libgstgconfelements.la

# gnomevfs
gst_gnomevfs_USE_GNOME+=    gnomevfs2
gst_gnomevfs_CONFIGURE_ARGS+=--enable-gnome_vfs
gst_gnomevfs_DIST=  base

# gsm
gst_gsm_LIB_DEPENDS+=   gsm.1:${PORTSDIR}/audio/gsm
gst_gsm_DIST=   bad

# ivorbis
gst_ivorbis_LIB_DEPENDS+=   vorbisidec.1:${PORTSDIR}/audio/libtremor
gst_ivorbis_DIST=   bad

# hal
gst_hal_LIB_DEPENDS+=   hal.1:${PORTSDIR}/sysutils/hal
gst_hal_PLIST_FILES=    ${GST_LIB_DIR}/libgsthalelements.a \
        ${GST_LIB_DIR}/libgsthalelements.la \
        ${GST_LIB_DIR}/libgsthalelements.so

# jpeg
gst_jpeg_LIB_DEPENDS+=  jpeg.9:${PORTSDIR}/graphics/jpeg

# ladspa
gst_ladspa_BUILD_DEPENDS+=  ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa

# lame
gst_lame_LIB_DEPENDS+=  mp3lame.0:${PORTSDIR}/audio/lame
gst_lame_DIST=  ugly

# libcaca
gst_libcaca_BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca
gst_libcaca_PLIST_FILES=    ${GST_LIB_DIR}/libgstcacasink.so \
        ${GST_LIB_DIR}/libgstcacasink.a \
        ${GST_LIB_DIR}/libgstcacasink.la

# libmms
gst_libmms_LIB_DEPENDS+=    mms.0:${PORTSDIR}/net/libmms
gst_libmms_PLIST_FILES= ${GST_LIB_DIR}/libgstmms.so \
        ${GST_LIB_DIR}/libgstmms.a \
        ${GST_LIB_DIR}/libgstmms.la
gst_libmms_DIST=    bad

# libpng and the snapshot plugin
gst_libpng_LIB_DEPENDS+=    png.5:${PORTSDIR}/graphics/png
gst_libpng_GST_PLUGIN_DIR=  ext/libpng
gst_libpng_PLIST_FILES= ${GST_LIB_DIR}/libgstpng.so \
        ${GST_LIB_DIR}/libgstpng.a \
        ${GST_LIB_DIR}/libgstpng.la

# libvisual
gst_libvisual_LIB_DEPENDS+= visual.0:${PORTSDIR}/graphics/libvisual
gst_libvisual_DIST= base

# mad
gst_mad_LIB_DEPENDS+=   mad.2:${PORTSDIR}/audio/libmad \
        id3tag.0:${PORTSDIR}/audio/libid3tag
gst_mad_DIST=   ugly

# mpeg2dec
gst_mpeg2dec_LIB_DEPENDS+=  mpeg2.0:${PORTSDIR}/multimedia/libmpeg2
gst_mpeg2dec_DIST=  ugly

# musepack
gst_musepack_LIB_DEPENDS+=  mpcdec.4:${PORTSDIR}/audio/libmpcdec
gst_musepack_DIST=  bad

# musicbrainz
gst_musicbrainz_LIB_DEPENDS+=   musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
gst_musicbrainz_PLIST_FILES=    ${GST_LIB_DIR}/libgsttrm.so \
        ${GST_LIB_DIR}/libgsttrm.a \
        ${GST_LIB_DIR}/libgsttrm.la
gst_musicbrainz_DIST=   bad

# neon
gst_neon_LIB_DEPENDS+=  neon.25:${PORTSDIR}/www/neon
gst_neon_CONFIGURE_ENV+=    NEON_CFLAGS="-I${LOCALBASE}/include/neon"
gst_neon_PLIST_FILES=   ${GST_LIB_DIR}/libgstneonhttpsrc.a \
            ${GST_LIB_DIR}/libgstneonhttpsrc.la \
            ${GST_LIB_DIR}/libgstneonhttpsrc.so
gst_neon_DIST=      bad

# ogg
gst_ogg_LIB_DEPENDS+=   ogg.5:${PORTSDIR}/audio/libogg
gst_ogg_EXTRA_LIBS+=    -lgstriff-${VERSION}
gst_ogg_DIST=   base

# pango
gst_pango_USE_GNOME+=   pango
gst_pango_DIST= base

# sdl
gst_sdl_USE_SDL+=   sdl
gst_sdl_GST_PLIST_SUFFIX=   videosink
gst_sdl_DIST=   bad

# shout2
gst_shout2_LIB_DEPENDS+=    shout.5:${PORTSDIR}/audio/libshout2

# sidplay
gst_sidplay_LIB_DEPENDS+=   sidplay.1:${PORTSDIR}/audio/libsidplay
gst_sidplay_PLIST_FILES=    ${GST_LIB_DIR}/libgstsid.so \
        ${GST_LIB_DIR}/libgstsid.a \
        ${GST_LIB_DIR}/libgstsid.la
gst_sidplay_DIST=   ugly

# speex
gst_speex_LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex

# theora
gst_theora_LIB_DEPENDS+=    theora.2:${PORTSDIR}/multimedia/libtheora
gst_theora_DIST=    base

# vorbis
gst_vorbis_USE_GSTREAMER+=  ogg
gst_vorbis_LIB_DEPENDS+=    vorbis.3:${PORTSDIR}/audio/libvorbis
gst_vorbis_EXTRA_LIBS+= -lgsttag-${VERSION} -lgstaudio-${VERSION}
gst_vorbis_DIST=    base

# xvid
gst_xvid_LIB_DEPENDS+=  xvidcore.4:${PORTSDIR}/multimedia/xvid
gst_xvid_DIST=  bad

# wavpack
gst_wavpack_LIB_DEPENDS+=   wavpack.0:${PORTSDIR}/audio/wavpack
gst_wavpack_DIST=   bad

.endif # NO_GSTREAMER_COMMON

gst_${GST_PLUGIN}_DIST?=    good
DIST=   ${gst_${GST_PLUGIN}_DIST}

.if !defined(NO_GSTREAMER_COMMON)
gst_${GST_PLUGIN}_BUILD_DEPENDS?=
gst_${GST_PLUGIN}_LIB_DEPENDS?=
gst_${GST_PLUGIN}_RUN_DEPENDS?=
gst_${GST_PLUGIN}_PLIST_FILES?=${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.so \
            ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.a \
            ${GST_LIB_DIR}/libgst${GST_PLUGIN}${GST_PLIST_SUFFIX}.la
gst_${GST_PLUGIN}_EXTRA_LIBS?=
gst_${GST_PLUGIN}_PREBUILD_DIR?=
gst_${GST_PLUGIN}_GST_PLUGIN_DIR?=  ext/${GST_PLUGIN}
gst_${GST_PLUGIN}_POSTBUILD_DIR?=
gst_${GST_PLUGIN}_USE_GNOME?=
gst_${GST_PLUGIN}_CONFIGURE_ENV?=
gst_${GST_PLUGIN}_GCONF_SCHEMAS?=
gst_${GST_PLUGIN}_CONFIGURE_ARGS?=
gst_${GST_PLUGIN}_USE_SDL?=
gst_${GST_PLUGIN}_USE_GSTREAMER?=

BUILD_DEPENDS+= ${gst_${GST_PLUGIN}_BUILD_DEPENDS}
LIB_DEPENDS+=   ${gst_${GST_PLUGIN}_LIB_DEPENDS}
RUN_DEPENDS+=   ${gst_${GST_PLUGIN}_RUN_DEPENDS}
PLIST_FILES=    ${gst_${GST_PLUGIN}_PLIST_FILES}
EXTRA_LIBS+=    ${gst_${GST_PLUGIN}_EXTRA_LIBS}
USE_GNOME+= ${gst_${GST_PLUGIN}_USE_GNOME}
CONFIGURE_ENV+= ${gst_${GST_PLUGIN}_CONFIGURE_ENV}
.if ${gst_${GST_PLUGIN}_GCONF_SCHEMAS}!=""
GCONF_SCHEMAS=  ${gst_${GST_PLUGIN}_GCONF_SCHEMAS}
.endif
CONFIGURE_ARGS+=${gst_${GST_PLUGIN}_CONFIGURE_ARGS}
.if ${gst_${GST_PLUGIN}_USE_SDL}!=""
USE_SDL=    ${gst_${GST_PLUGIN}_USE_SDL}
.endif
USE_GSTREAMER+= ${gst_${GST_PLUGIN}_USE_GSTREAMER}
GST_PREBUILD_DIR=${gst_${GST_PLUGIN}_GST_PREBUILD_DIR}
GST_PLUGIN_DIR= ${gst_${GST_PLUGIN}_GST_PLUGIN_DIR}
GST_POSTBUILD_DIR=${gst_${GST_PLUGIN}_GST_POSTBUILD_DIR}

.if !target(do-build)
do-build:
.for dir in ${GST_PREBUILD_DIR} ${GST_PLUGIN_DIR} ${GST_POSTBUILD_DIR}
    @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
.endfor
.endif

.if !target(do-install)
do-install:
.for dir in ${GST_PLUGIN_DIR}
    @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
.endfor
.endif
.endif