summaryrefslogblamecommitdiffstats
path: root/x11/yelp/Makefile
blob: 201a2640dca03fcbb2a8b8893b357053598d3441 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                 
           
                                                                          

                    
                     




                                 
                                                    
 


                                 

                                                                                          
                                                               
                                                                                        
 
                                                                  
                   
                       
                                                          

                   

                                      
                                                    
                                          
 

                          



                                                                               
                                                   

      


                                                           
                           
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/x11/yelp3/Makefile 18692 2013-09-22 00:45:30Z kwm $

PORTNAME=   yelp
PORTVERSION=    3.6.2
CATEGORIES= x11 gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Help browser for the GNOME 3 desktop

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/yelp-xsl.pc:${PORTSDIR}/textproc/yelp-xsl \
        itstool:${PORTSDIR}/textproc/itstool
LIB_DEPENDS=    libwebkitgtk-3.0.so:${PORTSDIR}/www/webkit-gtk3
RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/yelp-xsl.pc:${PORTSDIR}/textproc/yelp-xsl

USES=       desktop-file-utils gettext gmake pathfix pkgconfig
USE_XZ=     yes
USE_XORG=   x11 ice
USE_GNOME=  gnomeprefix intlhack gtk30 libxslt libxml2
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
USE_LDCONFIG=   yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -fstack-protector
GLIB_SCHEMAS=   org.gnome.yelp.gschema.xml

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900012 || (${OSVERSION} >= 800505 && ${OSVERSION} < 900000)
CONFIGURE_ENV+= YELP_LZMA_CFLAGS="-I/usr/include" \
        YELP_LZMA_LIBS="-L/usr/lib -llzma"
.else
LIB_DEPENDS+=   liblzma.so:${PORTSDIR}/archivers/xz
.endif

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libyelp.so.0

.include <bsd.port.post.mk>