summaryrefslogblamecommitdiffstats
path: root/sysutils/brasero/Makefile
blob: b10837a1e004e1d7d98f34d1c17994e4a93d16c9 (plain) (tree)
1
2
3
4
5
6
7
                                                
           
                                                                                     


                       
                 






                                                           



                                                                       
                                                             

                                                    
 

                                

                   
                  

                                                                    
                                                  





                                                                       

                                                         



                                             




                                  


                                           
                              
 
                             







                                    
                              

                                                










                                                               
                                                                              
 
                      
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/trunk/sysutils/brasero/Makefile 18610 2013-06-30 16:33:05Z marcus $

PORTNAME=   brasero
PORTVERSION=    2.32.1
PORTREVISION=   6
CATEGORIES= sysutils audio multimedia gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    CD/DVD mastering tool for the GNOME desktop

LIB_DEPENDS=    notify:${PORTSDIR}/devel/libnotify \
        unique-1.0:${PORTSDIR}/x11-toolkits/unique \
        totem-plparser:${PORTSDIR}/multimedia/totem-pl-parser \
        canberra-gtk:${PORTSDIR}/audio/libcanberra
RUN_DEPENDS=    growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
        cdrdao:${PORTSDIR}/sysutils/cdrdao \
        yelp:${PORTSDIR}/x11/yelp

CONFLICTS=  brasero-3.[0-9]*

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_XORG=   sm
USES=       desktop-file-utils gettext gmake pathfix pkgconfig \
        shared-mime-info
USE_GNOME=  intlhack gnomeprefix gnomedocutils
USE_LDCONFIG=   yes
USE_GSTREAMER=  gconf core
INSTALLS_OMF=   yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --disable-inotify --with-html-dir=${PREFIX}/share/doc \
        --enable-gtk3=no --enable-introspection=yes
CPPFLAGS+=  -I${LOCALBASE}/include -DHAVE_CAM_LIB_H=1
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       brasero.1
GLIB_SCHEMAS=   org.gnome.brasero.gschema.xml


OPTIONS_DEFINE= NAUTILUS LIBBURNIA
OPTIONS_DEFAULT=NAUTILUS
NAUTILUS_DESC=  Nautilus extension
LIBBURNIA_DESC= libburnia plug-ins

PLIST_SUB=  FULL_VERSION=${PORTVERSION}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNAUTILUS}
USE_GNOME+= nautilus2
CONFIGURE_ARGS+=--enable-nautilus
PLIST_SUB+= NAUTILUS=""
.else
PLIST_SUB+= NAUTILUS="@comment "
CONFIGURE_ARGS+=--enable-nautilus=no
.endif

.if ${PORT_OPTIONS:MLIBBURNIA}
LIB_DEPENDS+=   burn:${PORTSDIR}/devel/libburn \
            isofs:${PORTSDIR}/devel/libisofs
CONFIGURE_ARGS+=--enable-libburnia
PLIST_SUB+= LIBBURNIA=""
.else
PLIST_SUB+= LIBBURNIA="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
            ${WRKSRC}/libbrasero-burn/burn-process.c
    @${REINPLACE_CMD} -e 's|" == "|" = "|g' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|/proc/self/fd/0|/dev/fd/0|g' ${WRKSRC}/po/*.po

.include <bsd.port.mk>