Security patches removed, since all of them appear to be merged upstream, APIWARN diffs kept. The atexit workaround introduced by jolan is not needed any more. The port now explicitely requests gnu11 support. I did not change the feature set (no libjpeg, no opengl) to ease the update. People can enable stuff later if they need to. Testing quirks: - not enabling jpeg means that the two first tests fail - shells/bash should be installed at *configure* time in order for tests to be picked up; maybe we should add a "test" FLAVOR so that regular builds aren't affected? Tested on amd64 and arm, bulk build + ok ajacoutot@ (thanks!)
38 lines
776 B
Makefile
38 lines
776 B
Makefile
# $OpenBSD: Makefile,v 1.23 2017/12/14 00:23:28 jca Exp $
|
|
|
|
COMMENT = reference implementation of JPEG-2000
|
|
|
|
DISTNAME = jasper-2.0.14
|
|
FIX_EXTRACT_PERMISSIONS=Yes
|
|
|
|
SHARED_LIBS = jasper 3.0
|
|
|
|
CATEGORIES = graphics
|
|
|
|
HOMEPAGE = https://www.ece.uvic.ca/~frodo/jasper/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB = c m
|
|
|
|
MASTER_SITES = https://www.ece.uvic.ca/~frodo/jasper/software/
|
|
|
|
# -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_LIBJPEG=false \
|
|
-DJAS_ENABLE_OPENGL=false
|
|
|
|
post-extract:
|
|
sed -i '1s@^#!.*bash@#!${LOCALBASE}/bin/bash@' ${WRKSRC}/test/bin/*
|
|
|
|
.include <bsd.port.mk>
|