aboutsummaryrefslogtreecommitdiff
path: root/graphics/libsixel/Makefile
blob: af51487946ea10021fce6d4249f873f0ac93ccf3 (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
52
53
54
# $FreeBSD$

PORTNAME=	libsixel
PORTVERSION=	1.4.1
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	graphics

MAINTAINER=	sue@iwmt.org
COMMENT=	Encoder/decoder library for DEC SIXEL graphics

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	saitoha
GH_TAGNAME=	v${PORTVERSION}
GH_COMMIT=	151b261

USE_LDCONFIG=	yes
USES=		libtool pkgconfig

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig

INSTALL_TARGET=	install-strip

PORTDOCS=	README.md

OPTIONS_DEFINE=	CURL GD JPEG PIXBUF PNG
OPTIONS_DEFAULT=

CURL_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
CURL_CONFIGURE_WITH=	libcurl

GD_LIB_DEPENDS=		libgd.so:${PORTSDIR}/graphics/gd
GD_CONFIGURE_WITH=	gd

JPEG_LIB_DEPENDS=	libjpeg.so:${PORTSDIR}/graphics/jpeg
JPEG_CONFIGURE_WITH=	jpeg
JPEG_CFLAGS=		-I${LOCALBASE}/include
JPEG_LDFLAGS=		-L${LOCALBASE}/lib

PIXBUF_LIB_DEPENDS=	libgdk_pixbuf-2.0.so:${PORTSDIR}/graphics/gdk-pixbuf2
PIXBUF_CONFIGURE_WITH=	gdk-pixbuf2

PNG_LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png
PNG_CONFIGURE_WITH=	png

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>