aboutsummaryrefslogtreecommitdiff
path: root/archivers/xarchiver/Makefile
blob: 8d79d22843e45abfed8405af4032b9d8847b6024 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Created by: Andreev Maxim

PORTNAME=	xarchiver
PORTVERSION=	0.5.4.17
PORTREVISION=	2
CATEGORIES=	archivers

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Desktop-agnostic GTK frontend to various archiving tools

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2
RUN_DEPENDS=	7zz:archivers/7-zip \
		gtar:archivers/gtar \
		gzip:archivers/gzip \
		${LOCALBASE}/bin/unzip:archivers/unzip \
		xdg-open:devel/xdg-utils \
		zip:archivers/zip

USES=		autoreconf desktop-file-utils gmake gnome libtool:build pkgconfig

USE_GITHUB=	yes
GH_ACCOUNT=	ib

USE_GNOME=	cairo glib20 intltool
GNU_CONFIGURE=	yes

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_GROUP=	FORMATS
OPTIONS_GROUP_FORMATS=	ARJ LZO RAR
OPTIONS_SINGLE=		GTK
OPTIONS_SINGLE_GTK=	GTK2 GTK3
OPTIONS_DEFAULT=	GTK3
OPTIONS_SUB=	yes

FORMATS_DESC=	Additional compression formats support
ARJ_DESC=	ARJ compression support
RAR_DESC=	RAR compression support

ARJ_RUN_DEPENDS=	arj:archivers/arj
LZO_RUN_DEPENDS=	lzop:archivers/lzop
RAR_RUN_DEPENDS=	unrar:archivers/unrar \
			rar:archivers/rar

DOCS_USE=		GNOME=libxslt
DOCS_CONFIGURE_ENABLE=	doc

GTK2_CONFIGURE_ENABLE=	gtk2
GTK2_USE=		GNOME=gtk20
GTK3_USE=		GNOME=gtk30

NLS_USES=	gettext localbase
NLS_USES_OFF=	gettext-tools
NLS_CONFIGURE_ENABLE=	nls

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/src/main.c

post-patch-DOCS-off:
	@${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in

post-patch-NLS-off:
	@${REINPLACE_CMD} -e 's| po | |g' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>