summaryrefslogtreecommitdiffstats
path: root/deskutils/parcellite/Makefile
blob: 71069719d387f3f1903f3d662f091a0873faf7ee (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: Joey Mingrone <joey@mingrone.org>
# $FreeBSD$

PORTNAME=	parcellite
PORTVERSION=	1.1.9
PORTEPOCH=	1
CATEGORIES=	deskutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	koalative@gmail.com
COMMENT=	Lightweight GTK+ clipboard manager

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		pkgconfig
GNU_CONFIGURE=	yes
USE_GNOME=	glib20 gtk20 pango
USE_XORG=	x11
CONFIGURE_ARGS+=--disable-appindicator

PORTDOCS=	AUTHORS ChangeLog README

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
LIBS+=		-lgio-2.0

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

NLS_USES=	gmake gettext
NLS_USE=	GNOME=intltool
NLS_USES_OFF=	autoreconf
NLS_EXTRA_PATCHES_OFF=	${PATCHDIR}/extrapatch-configure.ac
NLS_LIBS=	-lintl

SUB_FILES=	pkg-message

post-patch-NLS-on:
	@${REINPLACE_CMD} -e 's|$$(DATADIRNAME)/locale|share/locale|' \
		${WRKSRC}/po/Makefile.in.in

post-patch-NLS-off:
	@${REINPLACE_CMD} -e 's|@INTLTOOL_DESKTOP_RULE@||' \
		${WRKSRC}/data/Makefile.am
	@${REINPLACE_CMD} -e 's|_Name|Name|' -e 's|_Comment|Comment|' \
		${WRKSRC}/data/parcellite-startup.desktop.in \
		${WRKSRC}/data/parcellite.desktop.in

post-patch:
	@${REINPLACE_CMD} -e 's|/proc|/compat/linux/proc|g' \
		${WRKSRC}/src/utils.c

pre-build-NLS-off:
	@${REINPLACE_CMD} -e '/SUBDIRS = /s| po||' ${WRKSRC}/Makefile
	${MV} ${WRKSRC}/data/parcellite-startup.desktop.in \
		${WRKSRC}/data/parcellite-startup.desktop
	${MV} ${WRKSRC}/data/parcellite.desktop.in \
		${WRKSRC}/data/parcellite.desktop

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

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