aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libsixel/Makefile
blob: 464c8b417d046323d7cea0e4d72d83e1dba0b386 (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
# $FreeBSD$

PORTNAME=   libsixel
PORTVERSION=    1.4.13
DISTVERSIONPREFIX=  v
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

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:ftp/curl
CURL_CONFIGURE_WITH=    libcurl

GD_LIB_DEPENDS=     libgd.so:graphics/gd
GD_CONFIGURE_WITH=  gd

JPEG_USES=      jpeg
JPEG_CONFIGURE_WITH=    jpeg
JPEG_CPPFLAGS=      -I${LOCALBASE}/include
JPEG_LDFLAGS=       -L${LOCALBASE}/lib

PIXBUF_LIB_DEPENDS= libgdk_pixbuf-2.0.so:graphics/gdk-pixbuf2
PIXBUF_CONFIGURE_WITH=  gdk-pixbuf2

PNG_LIB_DEPENDS=    libpng.so:graphics/png
PNG_CONFIGURE_WITH= png

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

.include <bsd.port.mk>