blob: 4ba1bb45a3ef0f23d7c1ef6940bcab0ddd90a360 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $FreeBSD$
PORTNAME= yad
PORTVERSION= 0.22.1
CATEGORIES= x11 gnome
MASTER_SITES= GOOGLE_CODE
MAINTAINER= danilogondolfo@gmail.com
COMMENT= Display GNOME dialogs from the command line
USES= gmake pkgconfig
USE_XZ= yes
GNU_CONFIGURE= yes
INSTALLS_OMF= yes
INSTALLS_ICONS= yes
CONFIGURE_ENV+= DATADIRNAME=share
MAN1= yad.1
OPTIONS_DEFINE= NLS
OPTIONS_SINGLE= GTK
OPTIONS_SINGLE_GTK= GTK2 GTK3
OPTIONS_DEFAULT= GTK2
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+= --disable-nls
.endif
.if ${PORT_OPTIONS:MGTK3}
USE_GNOME= gtk30
CONFIGURE_ARGS+= --with-gtk=gtk3
.endif
.if ${PORT_OPTIONS:MGTK2}
USE_GNOME= gtk20
CONFIGURE_ARGS+= --with-gtk=gtk2
.endif
post-configure:
.if empty(PORT_OPTIONS:MNLS)
@${REINPLACE_CMD} -e '/^SUBDIRS =/ s/ po//' ${WRKSRC}/Makefile
.endif
.include <bsd.port.mk>
|