summaryrefslogtreecommitdiffstats
path: root/archivers/xarchiver/Makefile
blob: c4caada78f8bdf720d7bdf5e08a4648685491766 (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
# Created by: Andreev Maxim
# $FreeBSD$

PORTNAME=	xarchiver
PORTVERSION=	0.5.2
PORTREVISION=	6
CATEGORIES=	archivers
MASTER_SITES=	SF

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

RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils

USES=		gmake pkgconfig desktop-file-utils
USE_BZIP2=	yes
USE_GNOME=	glib20 gtk20 intltool
GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes

.include <bsd.port.options.mk>

.if !empty(PORT_OPTIONS:MNLS)
USES+=		gettext
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|;multipart/x-zip||' \
		${WRKSRC}/xarchiver.desktop.in
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MNLS)
	@${REINPLACE_CMD} -e 's| po | |g' ${WRKSRC}/Makefile.in
.endif

post-install:
	@-update-desktop-database

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