aboutsummaryrefslogblamecommitdiff
path: root/multimedia/gmerlin/Makefile
blob: 396a5c71a6cb947e61ed2d488a2a8ae4da93a797 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
                     
                  


                          
                                 

                                    
                     
                                 
 


                                                     
 
                                                                               
                             

                                           


                                                                   

                                                                              
                   
                   
                             
                   
 
                                      
                                  
                                

                       
 
                                                            
                                                                           
                                                  


                                                                      
                                                   
                                                          
                                                
                                      

                                                                 
                                         
                                             
                                      
                            
                                         
                                                             

                                                                           
                                              
                                        
                                                    
                                             
                                                               
                                     
                                                
                                         

           
                              
                                    
                                                 
                                                          
                              
                                                                   
                              

                                                                               
                           
 
             

                                                                      
 
                      
PORTNAME=	gmerlin
PORTVERSION=	1.2.0
PORTREVISION=	19
CATEGORIES=	multimedia
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Multimedia framework

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libexif.so:graphics/libexif \
		libgavl.so:multimedia/gavl \
		libfontconfig.so:x11-fonts/fontconfig

USES=		gettext gl gnome libtool makeinfo pathfix pkgconfig sqlite xorg
USE_GNOME=	gtk20 libxml2
USE_XORG=	x11 xext xfixes xinerama xv
USE_GL=		gl
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_func_inotify_init=no
CONFIGURE_ARGS=	--disable-v4l --disable-v4l2 --disable-v4lconvert \
		--without-doxygen --with-cpuflags=none --disable-musicbrainz \
		--disable-esd
USE_LDCONFIG=	yes
LLD_UNSAFE=	yes
INSTALL_TARGET=	install-strip
INSTALLS_ICONS=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
LDFLAGS+=	-Wl,--add-needed

INFO=		gmerlin

OPTIONS_DEFINE=		ALSA CDDB CDIO JACK JPEG LIBVISUAL \
			OPTIMIZED_CFLAGS PNG PULSEAUDIO QUICKTIME TIFF DOCS
OPTIONS_DEFAULT=	CDDB JACK JPEG LIBVISUAL \
			OPTIMIZED_CFLAGS PNG PULSEAUDIO QUICKTIME TIFF
OPTIONS_SUB=		yes

ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CONFIGURE_OFF=	--disable-alsa --disable-alsamixer
CDDB_LIB_DEPENDS=	libcddb.so:audio/libcddb
CDDB_CONFIGURE_OFF=	--disable-cddb
CDIO_LIB_DEPENDS=	libcdio.so:sysutils/libcdio \
			libcdio_cdda.so:sysutils/libcdio-paranoia
CDIO_CONFIGURE_OFF=	--disable-libcdio
JACK_LIB_DEPENDS=	libjack.so:audio/jack
JACK_CONFIGURE_OFF=	--disable-jack
JPEG_USES=		jpeg
JPEG_CONFIGURE_OFF=	--disable-libjpeg
LIBVISUAL_LIB_DEPENDS=	libvisual-0.4.so:graphics/libvisual04
LIBVISUAL_CONFIGURE_OFF=--disable-libvisual
OPTIMIZED_CFLAGS_CFLAGS=-O3 -funroll-loops -fomit-frame-pointer -ffast-math
PNG_LIB_DEPENDS=	libpng.so:graphics/png
PNG_CONFIGURE_OFF=	--disable-libpng
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF=--disable-pulseaudio
QUICKTIME_LIB_DEPENDS=	libquicktime.so:multimedia/libquicktime
QUICKTIME_CONFIGURE_OFF=--disable-lqt
TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
TIFF_CONFIGURE_OFF=	--disable-libtiff

post-patch:
	@${REINPLACE_CMD} -e \
		'/LIBS/s|-ldl || ; \
		 s|-DGTK_DISABLE_DEPRECATED|| ; \
		 s|-O3.*-ffast-math||' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		's|^texinfo_|#texinfo_|g' ${WRKSRC}/doc/Makefile.in
	@${REINPLACE_CMD} -e \
		's|ln -sf $$(DESTDIR)|ln -sf |' ${WRKSRC}/icons/Makefile.in
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's|-ldl||g'

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>