sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00

48 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.28 2019/04/28 20:51:41 sthen Exp $
COMMENT= library to adjust for photographic lens characteristics
DISTNAME= lensfun-0.3.2
REVISION= 4
SHARED_LIBS= lensfun 2.0
CATEGORIES= graphics
HOMEPAGE= http://lensfun.sourceforge.net/
# library LGPLv3, lens db CC-BY-SA, build infrastructure/applications GPLv3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c glib-2.0 m png ${COMPILER_LIBCXX} z
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lensfun/}
MODULES= devel/cmake \
lang/python
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
MODPY_RUNDEP= No
LIB_DEPENDS= devel/glib2 \
graphics/png
CONFIGURE_ARGS= -DBUILD_DOC=No \
-DBUILD_LENSTOOL=Yes \
-DBUILD_TESTS=Yes
DOC_DIR= ${PREFIX}/share/doc/lensfun
post-install:
${INSTALL_DATA_DIR} ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/docs/*-3.0.txt ${DOC_DIR}
.include <bsd.port.arch.mk>
.if !${ARCH:Mamd64}
CONFIGURE_ARGS+= -DBUILD_FOR_SSE=OFF
CONFIGURE_ARGS+= -DBUILD_FOR_SSE2=OFF
.endif
.include <bsd.port.mk>