mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
44 lines
978 B
Makefile
44 lines
978 B
Makefile
COMMENT= open-source JPEG 2000 codec library
|
|
|
|
GH_ACCOUNT= uclouvain
|
|
GH_PROJECT= openjpeg
|
|
GH_TAGNAME= v2.5.4
|
|
DISTNAME= openjp2-${GH_TAGNAME:S/v//}
|
|
|
|
SHARED_LIBS += openjp2 6.0
|
|
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= https://www.openjpeg.org/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c lcms2 m png pthread tiff z
|
|
|
|
MODULES= devel/cmake
|
|
CONFIGURE_ARGS= -DOPJ_DATA_ROOT=${WRKDIR}/data \
|
|
-DBUILD_TESTING=True
|
|
|
|
LIB_DEPENDS= graphics/lcms2 \
|
|
graphics/png
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
TEST_DEPENDS= ${BUILD_PKGPATH}
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/doc/man; \
|
|
${INSTALL_DATA} man1/* ${PREFIX}/man/man1/; \
|
|
${INSTALL_DATA} man3/* ${PREFIX}/man/man3/
|
|
|
|
pre-test:
|
|
@if [ ! -d ${WRKDIR}/data ]; then \
|
|
printf "\n\
|
|
Tests need a copy of https://github.com/uclouvain/openjpeg-data\n\
|
|
in ${WRKDIR}/data (approx 500MB):\n\n\
|
|
git clone --depth 1 https://github.com/uclouvain/openjpeg-data\n\
|
|
doas mv openjpeg-data ${WRKDIR}/data\n\n"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|