summaryrefslogtreecommitdiff
path: root/x11/clipit/Makefile
blob: be998eb70816d7499a15aa0d7b212ecc098fb49a (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
# $NetBSD: Makefile,v 1.28 2021/12/08 16:07:03 adam Exp $

DISTNAME=	clipit-1.4.5
PKGREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_GITHUB:=CristianHenzel/}
GITHUB_PROJECT=	ClipIt
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	khorben@NetBSD.org
HOMEPAGE=	https://github.com/CristianHenzel/ClipIt
COMMENT=	Lightweight, fully featured GTK+ clipboard manager
LICENSE=	gnu-gpl-v3

GNU_CONFIGURE=		yes

USE_TOOLS+=	gmake
USE_TOOLS+=	intltool msgfmt msgmerge xgettext
USE_TOOLS+=	aclocal autoconf autoreconf automake autopoint intltoolize
USE_TOOLS+=	pkg-config

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--disable-glibtest
CONFIGURE_ARGS+=	--with-gtk3

BUILD_DEFS+=	PKG_SYSCONFBASE

EGDIR=		${PREFIX}/share/examples/clipit
CONF_FILES=	${EGDIR}/xdg/autostart/clipit-startup.desktop \
		${PKG_SYSCONFBASE}/xdg/autostart/clipit-startup.desktop
MAKE_DIRS=	${PKG_SYSCONFBASE}/xdg/autostart

INSTALL_MAKE_FLAGS=	${MAKE_FLAGS} sysconfdir=${EGDIR}

pre-configure:
	cd ${WRKSRC} && ${SH} autogen.sh

.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"