aboutsummaryrefslogtreecommitdiff
path: root/graphics/cptutils/Makefile
blob: 46c940bee1852884e0ef1b2c7de4911d32ba5252 (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
PORTNAME=	cptutils
PORTVERSION=	1.81
CATEGORIES=	graphics
MASTER_SITES=	http://soliton.vm.bytemark.co.uk/pub/jjg/src/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Convert and manipulate colour gradients
WWW=		http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/cptutils/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gengetopt:devel/gengetopt \
		gperf:devel/gperf \
		docbook-xsl>0:textproc/docbook-xsl
LIB_DEPENDS=	libjansson.so:devel/jansson \
		libpng.so:graphics/png

USES=		autoreconf bison gmake gnome iconv localbase python shebangfix
SHEBANG_FILES=	src/gradient-convert/gradient-convert.py
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
CONFIGURE_ARGS=	${ICONV_CONFIGURE_ARG}
USE_GNOME=	libxml2 libxslt

PORTDOCS=	CHANGELOG.md CREDITS.md README.md

OPTIONS_DEFINE=		DOCS TEST

TEST_CONFIGURE_ENABLE=	tests
TEST_BUILD_DEPENDS=	bash:shells/bash
TEST_LIB_DEPENDS=	libcunit.so:devel/cunit
TEST_TEST_TARGET=	test

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>