bugs (as pointed out by jca), but this is a better base from which to update. Rolls in previous security fixes we had as patches. Merge PFRAG.shared while there.
42 lines
914 B
Makefile
42 lines
914 B
Makefile
# $OpenBSD: Makefile,v 1.19 2013/12/10 12:26:46 sthen Exp $
|
|
|
|
COMMENT= open-source JPEG 2000 codec library
|
|
|
|
DISTNAME= openjpeg-1.5.1
|
|
|
|
SHARED_LIBS += openjpeg 5.0 # 6.0
|
|
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= http://www.openjpeg.org/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c jpeg lcms2 m png tiff z
|
|
LIBM_CHECK = lrintf
|
|
|
|
MASTER_SITES= https://openjpeg.googlecode.com/files/
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
SEPARATE_BUILD= Yes
|
|
|
|
LIB_DEPENDS= graphics/lcms2 \
|
|
graphics/png \
|
|
graphics/tiff
|
|
|
|
# XXX Yes, really, libtiff by itself won't be detected
|
|
LIB_DEPENDS += graphics/jpeg
|
|
CONFIGURE_ENV += TIFF_LIBS='-L${LOCALBASE}/lib -ltiff -ljpeg' \
|
|
TIFF_CFLAGS='-I${LOCALBASE}/include'
|
|
|
|
pre-patch:
|
|
perl -i -pe 's/\r$$//; s/\t*$$//;' ${WRKSRC}/libopenjpeg/opj_malloc.h
|
|
|
|
post-install:
|
|
cd ${PREFIX}/share/doc/ && mv openjpeg-* openjpeg
|
|
|
|
.include <bsd.port.mk>
|