pkgsrc/graphics/gimp-jxr/Makefile

38 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2018/04/16 14:34:36 wiz Exp $
DISTNAME= gimp-jxr-2.0
PKGREVISION= 2
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"