aboutsummaryrefslogtreecommitdiff
path: root/graphics/nip2/Makefile
blob: 20774a3ef740eb4e416f00eec0da89d009e97e34 (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
# Created by: Lev Serebryakov <lev@FreeBSD.org>
# $FreeBSD$

PORTNAME=	nip2
PORTVERSION=	7.40.3
PORTREVISION=	5
CATEGORIES=	graphics
MASTER_SITES=	http://www.vips.ecs.soton.ac.uk/supported/${PORTVERSION:R}/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graphical user interface for VIPS

LICENSE=	GPLv2

BUILD_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils
LIB_DEPENDS=	libgoffice-*.so:${PORTSDIR}/devel/goffice \
		libgvc.so:${PORTSDIR}/graphics/graphviz \
		libvips.so:${PORTSDIR}/graphics/vips \
		libgsl.so:${PORTSDIR}/math/gsl
RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils

USES=		bison desktop-file-utils dos2unix gettext gmake pkgconfig \
		shared-mime-info
DOS2UNIX_GLOB=	*.def
USE_GNOME=	gnomemimedata gtk20 libxml2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-update-desktop \
		--without-goffice

SUB_FILES=	run-nip2.sh

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e \
		's|/bin/bash|/bin/sh|' ${WRKSRC}/test/scripts/*

post-install:
	(cd ${WRKDIR} && ${INSTALL_SCRIPT} run-nip2.sh \
		${STAGEDIR}/${PREFIX}/bin)

test check: build
	#
	# Checks currently require ImageMagick's convert to be available
	# and aren't enabled by default. They take a long time -- tail
	# the log-file:
	#	${WRKSRC}/test/test_all.sh.log
	#
	(cd %{WRKSRC} && ${SETENV} {MAKE_ENV} ${MAKE_CMD} check)

.include <bsd.port.mk>