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

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

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Graphical user interface for VIPS

LIB_DEPENDS=	vips.3[0-9]:${PORTSDIR}/graphics/vips	\
		gsl:${PORTSDIR}/math/gsl	\
		xml2:${PORTSDIR}/textproc/libxml2

USES=		bison gmake pkgconfig
USE_GNOME=	gnomemimedata glib20 gtk20
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--mandir=${PREFIX}/man
# This port has no man-pages. It installs a number of HTML files,
# which are available through the GUI's Help. For this reason, they
# are always installed, regardless of the NOPORTDOCS setting.
# The PDF version of the documentation is another story:
.if defined(NOPORTDOCS)
EXTRACT_AFTER_ARGS=	--exclude nipguide --exclude pdf
.endif
# Somehow vendor's configure misses these:
MAKE_ENV+=	UPDATE_MIME_DATABASE=update-mime-database	\
		UPDATE_DESKTOP_DATABASE=update-desktop-database

MAN1=		nip2.1

post-patch:
	${REINPLACE_CMD} -e 's, malkovich,,' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|n_bytes|x_n_bytes|g' -e 's|text_size|x_text_size|g' \
		${WRKSRC}/src/gtkitementry.c

.include <bsd.port.mk>