Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # $OpenBSD: Makefile,v 1.75 2017/05/31 08:08:16 espie Exp $
  2. ONLY_FOR_ARCHS= i386 amd64
  3. COMMENT= virtual lighttable and darkroom for photographers
  4. V= 2.2.5
  5. DISTNAME= darktable-$V
  6. PORTROACH= limitw:1,even
  7. EXTRACT_SUFX= .tar.xz
  8. CATEGORIES= graphics x11
  9. HOMEPAGE= http://www.darktable.org/
  10. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  11. # GPLv3+
  12. PERMIT_PACKAGE_CDROM= Yes
  13. WANTLIB += GraphicsMagick ICE Iex IlmImf IlmThread Imath SM X11
  14. WANTLIB += Xext Xrandr atk-1.0 c cairo cairo-gobject colord colord-gtk
  15. WANTLIB += colordprivate cups curl exiv2 flickcurl gdk-3 gdk_pixbuf-2.0
  16. WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gphoto2 gphoto2_port
  17. WANTLIB += gthread-2.0 gtk-3 intl jpeg json-glib-1.0 lcms2 lensfun
  18. WANTLIB += lua5.2 m openjp2 osmgpsmap-1.0 pango-1.0 pangocairo-1.0
  19. WANTLIB += png pthread pugixml rsvg-2 secret-1 soup-2.4 sqlite3
  20. WANTLIB += tiff webp xml2 z ${LIBECXX}
  21. MASTER_SITES= https://github.com/darktable-org/darktable/releases/download/release-$V/
  22. MODULES= devel/cmake \
  23. lang/lua \
  24. textproc/intltool
  25. MODLUA_VERSION= 5.2
  26. # TLS emulation
  27. COMPILER = gcc
  28. BUILD_DEPENDS= sysutils/coreutils
  29. RUN_DEPENDS= devel/desktop-file-utils \
  30. x11/gtk+3,-guic
  31. LIB_DEPENDS= devel/gettext \
  32. devel/json-glib \
  33. devel/libsoup \
  34. geo/osm-gps-map \
  35. graphics/GraphicsMagick \
  36. graphics/colord-gtk \
  37. graphics/exiv2>=0.22 \
  38. graphics/lcms2 \
  39. graphics/libgphoto2>=2.5.0 \
  40. graphics/lensfun \
  41. graphics/openexr \
  42. graphics/openjp2 \
  43. net/curl \
  44. net/flickcurl \
  45. textproc/pugixml \
  46. x11/gnome/librsvg \
  47. x11/gnome/libsecret \
  48. x11/gtk+3
  49. SEPARATE_BUILD= Yes
  50. CONFIGURE_ARGS= -DBINARY_PACKAGE_BUILD=1 \
  51. -DCUSTOM_CFLAGS=1 \
  52. -DTESTBUILD_OPENCL_PROGRAMS=OFF
  53. # OpenCL picks up LLVM at build time.
  54. CPPFLAGS+= -I${LOCALBASE}/include
  55. LDFLAGS+= -L${LOCALBASE}/lib
  56. NO_TEST= Yes
  57. .include <bsd.port.arch.mk>
  58. .if ${ARCH:Mi386}
  59. # needs 64-bit atomic ops, and all the registers it can get.
  60. CFLAGS += -march=i686 -fomit-frame-pointer
  61. .endif
  62. # ...and there's a hard requirement of SSE3
  63. CFLAGS+= -msse3
  64. CXXFLAGS= ${CFLAGS}
  65. post-install:
  66. cd ${PREFIX}/lib && ln -s darktable/libdarktable.so
  67. .include <bsd.port.mk>