Tweak x11/metisse version 0.4.1_8
[dports.git] / x11 / yad / Makefile
1 # Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       yad
5 PORTVERSION=    0.37.0
6 CATEGORIES=     x11 gnome
7 MASTER_SITES=   SF/${PORTNAME}-dialog/
8
9 MAINTAINER=     danilo@FreeBSD.org
10 COMMENT=        Display GNOME dialogs from the command line
11
12 LICENSE=        GPLv3
13
14 LIB_DEPENDS=    libfontconfig.so:x11-fonts/fontconfig \
15                 libfreetype.so:print/freetype2
16
17 USES=           gettext gmake pkgconfig tar:xz
18 USE_GNOME=      cairo intltool
19 GNU_CONFIGURE=  yes
20 INSTALLS_OMF=   yes
21 INSTALLS_ICONS= yes
22 CONFIGURE_ENV+= DATADIRNAME=share
23 CONFIGURE_ARGS+=        --disable-html
24
25 OPTIONS_DEFINE= NLS ICONBROWSER
26 ICONBROWSER_DESC=       Build YAD icon browser
27 OPTIONS_SUB=    yes
28
29 OPTIONS_SINGLE= GTK
30 OPTIONS_SINGLE_GTK=     GTK2 GTK3
31
32 OPTIONS_DEFAULT=        GTK2
33
34 NLS_CONFIGURE_OFF=      --disable-nls
35 GTK2_CONFIGURE_ON=      --with-gtk=gtk2
36 GTK2_USE=               GNOME=gtk20
37 GTK3_CONFIGURE_ON=      --with-gtk=gtk3
38 GTK3_USE=               GNOME=gtk30
39 ICONBROWSER_CONFIGURE_ENABLE=   icon-browser
40
41 .include <bsd.port.options.mk>
42
43 post-configure:
44 .if empty(PORT_OPTIONS:MNLS)
45         @${REINPLACE_CMD} -e '/^SUBDIRS =/ s/ po//' ${WRKSRC}/Makefile
46 .endif
47
48 .include <bsd.port.mk>