summaryrefslogtreecommitdiffstats
path: root/deskutils/clipit/Makefile
blob: de100fb2be332960be7e309ed0f6dfa855814fe2 (plain)
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
# $FreeBSD$

PORTNAME=	clipit
PORTVERSION=	1.4.2
CATEGORIES=	deskutils
MASTER_SITES=	SF/gtkclipit/Version%201

MAINTAINER=	jrm@ftfl.ca
COMMENT=	Lightweight GTK+ clipboard manager forked from parcellite

GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk20

OPTIONS_DEFINE=	NLS XDOTOOL
XDOTOOL_DESC=	Automatic paste functionality

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=	NLS=""
CONFIGURE_ARGS+=	--localedir=${LOCALBASE}/share/locale
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

.if ${PORT_OPTIONS:MXDOTOOL}
RUN_DEPENDS+=	xdotool:${PORTSDIR}/x11/xdotool
.endif

MAN1=	clipit.1

post-patch-script:
	@${REINPLACE_CMD} -e 's|^itlocaledir =.*|itlocaledir = $$(datarootdir)/locale|' \
		${WRKSRC}/po/Makefile.in.in

.include <bsd.port.mk>
OpenPOWER on IntegriCloud