summaryrefslogtreecommitdiff
path: root/graphics/jasper/Makefile
blob: 4e959b5bd909d5922312625af55ef35d6f41bc4f (plain)
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
# $NetBSD: Makefile,v 1.45 2016/12/17 23:02:51 dholland Exp $

DISTNAME=	jasper-1.900.29
PKGREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://www.ece.uvic.ca/~mdadams/jasper/software/

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://www.ece.uvic.ca/~mdadams/jasper/
COMMENT=	Software-based reference implementation of the JPEG-2000 codec
LICENSE=	modified-bsd

USE_LANGUAGES=		c99
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-shared --without-x --disable-opengl

USE_TOOLS+=		gmake
USE_TOOLS+=		pkg-config

PKGCONFIG_OVERRIDE=	pkgconfig/jasper.pc

# The solaris stdbool.h requires c99 which is fine for jasper, but
# not so good for things that depend upon jasper.  See PR#43901
CONFIGURE_ENV.SunOS+=	ac_cv_header_stdbool_h=no

INSTALLATION_DIRS+=	share/doc/jasper

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/jasper.pdf ${DESTDIR}${PREFIX}/share/doc/jasper
	${INSTALL_DATA} ${WRKSRC}/doc/jpeg2000.pdf ${DESTDIR}${PREFIX}/share/doc/jasper

.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"