2022-02-16 19:34:23 +00:00

41 lines
851 B
Makefile

# $OpenBSD: Makefile,v 1.28 2022/02/16 19:34:23 sthen Exp $
COMMENT = reference implementation of JPEG-2000
V = 3.0.2
DISTNAME = jasper-$V
REVISION = 0
SHARED_LIBS = jasper 5.0
CATEGORIES = graphics
HOMEPAGE = https://www.ece.uvic.ca/~frodo/jasper/
# MIT
PERMIT_PACKAGE = Yes
WANTLIB = c m pthread
MASTER_SITES = https://github.com/jasper-software/jasper/releases/download/version-$V/
# -stdc=gnu11
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
MODULES = devel/cmake
# XXX needed at configure time else tests are skipped
TEST_DEPENDS = shells/bash
CONFIGURE_ARGS = -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=false \
-DJAS_ENABLE_DOC=false \
-DJAS_ENABLE_LATEX=false \
-DJAS_ENABLE_LIBJPEG=false \
-DJAS_ENABLE_OPENGL=false
post-extract:
sed -i '1s@^#!.*bash@#!${LOCALBASE}/bin/bash@' ${WRKSRC}/test/bin/*
.include <bsd.port.mk>