Makefile 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.21 2017/04/10 11:46:21 sthen Exp $
  2. COMMENT= library to adjust for photographic lens characteristics
  3. DISTNAME= lensfun-0.3.2
  4. SHARED_LIBS= lensfun 2.0
  5. CATEGORIES= graphics
  6. HOMEPAGE= http://lensfun.sourceforge.net/
  7. # library LGPLv3, lens db CC-BY-SA, build infrastructure/applications GPLv3
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB += c glib-2.0 m png ${LIBCXX} z
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lensfun/}
  11. MODULES= devel/cmake
  12. LIB_DEPENDS= devel/glib2 \
  13. graphics/png
  14. CONFIGURE_ARGS= -DBUILD_DOC=No \
  15. -DBUILD_LENSTOOL=Yes \
  16. -DBUILD_TESTS=Yes
  17. DOC_DIR= ${PREFIX}/share/doc/lensfun
  18. post-install:
  19. ${INSTALL_DATA_DIR} ${DOC_DIR}
  20. ${INSTALL_DATA} ${WRKSRC}/README.md ${DOC_DIR}
  21. ${INSTALL_DATA} ${WRKSRC}/docs/*-3.0.txt ${DOC_DIR}
  22. .include <bsd.port.arch.mk>
  23. .if !${ARCH:Mamd64} && !${ARCH:Mi386}
  24. CONFIGURE_ARGS+= -DBUILD_FOR_SSE=OFF
  25. CONFIGURE_ARGS+= -DBUILD_FOR_SSE2=OFF
  26. .endif
  27. .include <bsd.port.mk>