freebsd-ports/archivers/xarchiver/Makefile
Adam Weinberger 41fcfb64f9 Reduce unnecessary bsd.port.options.mk inclusions by using OPTIONS helpers.
For liborange, reverse the logic, as I'm pretty sure the OPTIONS were being
used to disable the selected options.

Approved by:	portmgr (blanket)
2014-07-03 19:06:07 +00:00

41 lines
901 B
Makefile

# Created by: Andreev Maxim
# $FreeBSD$
PORTNAME= xarchiver
PORTVERSION= 0.5.3
CATEGORIES= archivers
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME:tl}
MAINTAINER= ports@FreeBSD.org
COMMENT= Desktop-agnostic GTK+2 frontend to various archiving tools
LICENSE= GPLv2
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils \
7zr:${PORTSDIR}/archivers/p7zip \
zip:${PORTSDIR}/archivers/zip
USES= tar:bzip2 gmake pkgconfig desktop-file-utils
USE_GNOME= glib20 gtk20 intltool
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CPPFLAGS+= -I${LOCALBASE}/include
NLS_LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
post-patch:
.if empty(PORT_OPTIONS:MDOCS)
@${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
.include <bsd.port.mk>