summaryrefslogtreecommitdiff
path: root/graphics/gimp-jxr/Makefile
blob: a78555f775c8fc79b4a2098e41bec2d500619f36 (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
35
36
37
38
# $NetBSD: Makefile,v 1.15 2020/11/05 09:08:20 ryoon Exp $

DISTNAME=	gimp-jxr-2.0
PKGREVISION=	13
CATEGORIES=	graphics
MASTER_SITES=	# javascript link
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/chausner/gimp-jxr
COMMENT=	Gimp plugin for JPEG XR files
LICENSE=	modified-bsd

WRKSRC=		${WRKDIR}/src

USE_TOOLS+=	pkg-config

INSTALLATION_DIRS+=	lib/gimp/2.0/plug-ins

CFLAGS+=	-I${BUILDLINK_PREFIX.jxrlib}/include/jxrlib/common/include
CFLAGS+=	-I${BUILDLINK_PREFIX.jxrlib}/include/jxrlib/image/sys
CFLAGS+=	-I${BUILDLINK_PREFIX.jxrlib}/include/jxrlib/image/encode
CFLAGS+=	-I${BUILDLINK_PREFIX.jxrlib}/include/jxrlib/image/decode
CFLAGS+=	-I${BUILDLINK_PREFIX.jxrlib}/include/jxrlib/image/x86
CFLAGS+=	-I${BUILDLINK_PREFIX.jxrlib}/include/jxrgluelib
CFLAGS+=	-D__ANSI__ -DABLE_PERF_MEASUREMENT
CFLAGS+=	load.c save.c utils.c
LDFLAGS+=	-L${BUILDLINK_PREFIX.jxrlib}/lib -ljxrglue -ljpegxr

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gimptool-2.0 --build file-jxr.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/file-jxr ${DESTDIR}${PREFIX}/lib/gimp/2.0/plug-ins

.include "../../graphics/gimp/buildlink3.mk"
.include "../../graphics/jxrlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"