aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/cptutils/Makefile
blob: a0603467044ebc642c2e63ec94c23bd7748d4db7 (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   cptutils
PORTVERSION=    1.70
CATEGORIES= graphics
MASTER_SITES=   http://soliton.vm.bytemark.co.uk/pub/jjg/src/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Convert and manipulate colour gradients

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
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
USE_GNOME=  libxml2 libxslt

PORTDOCS=   CHANGELOG CREDITS README.md

OPTIONS_DEFINE=     DOCS TEST

TEST_CONFIGURE_ENABLE=  tests
TEST_BUILD_DEPENDS= bash:shells/bash \
            xml2:textproc/xml2 \
            xml:textproc/xmlstarlet
TEST_LIB_DEPENDS=   libcunit.so:devel/cunit
TEST_TEST_TARGET=   test unit

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

.include <bsd.port.mk>