Makefile 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. # $OpenBSD: Makefile,v 1.25 2017/05/28 15:54:08 rsadowski Exp $
  2. COMMENT-kipi = KDE image plugins collection
  3. COMMENT-main = KDE photo management utility
  4. COMMENT-mediawiki = KIPI interface for MediaWiki
  5. CATEGORIES = graphics
  6. HOMEPAGE = http://www.digikam.org/
  7. VERSION = 4.13.0
  8. DISTNAME = digikam-${VERSION}
  9. PKGSPEC-main = digikam->=1
  10. PKGSPEC-kipi = kipi-plugins->=1
  11. PKGNAME-kipi = kipi-plugins-${VERSION}
  12. PKGNAME-main = ${PKGNAME}
  13. PKGNAME-mediawiki = libmediawiki-1.0.0
  14. REVISION-main = 0
  15. REVISION-kipi = 1
  16. REVISION-mediawiki = 4
  17. EXTRACT_SUFX = .tar.bz2
  18. # LGPL, GPL and many others
  19. PERMIT_PACKAGE_CDROM = Yes
  20. SHARED_LIBS = kipiplugins 0.1
  21. SHARED_LIBS += digikamcore 0.1
  22. SHARED_LIBS += digikamdatabase 0.1
  23. SHARED_LIBS += mediawiki 0.1
  24. MASTER_SITES = ${MASTER_SITE_KDE:=stable/digikam/} \
  25. ${MASTER_SITE_KDE:=Attic/digikam/}
  26. MULTI_PACKAGES = -main -kipi -mediawiki
  27. MODULES = x11/kde4 multimedia/phonon devel/gettext
  28. # Do not use WANTLIB due to gettext module automatically adding to it
  29. WANTLIB-common = ${MODQT4_WANTLIB} ${MODKDE4_WANTLIB}
  30. WANTLIB-common += m pthread ${MODGCC4_CPPWANTLIB}
  31. WANTLIB-common += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtSvg
  32. WANTLIB-common += ${KDE4LIB}/kdeui
  33. WANTLIB-kipi = ${WANTLIB-common}
  34. WANTLIB-kipi += ${MODGETTEXT_WANTLIB} ${MODPHONON_WANTLIB}
  35. WANTLIB-kipi += c GL GLU ICE SM X11 Xext Xrandr expat z
  36. WANTLIB-kipi += lib/qt4/QtNetwork lib/qt4/QtOpenGL lib/qt4/QtXmlPatterns
  37. WANTLIB-kipi += lib/qt4/QtTest lib/qt4/QtXml
  38. WANTLIB-kipi += ${KDE4LIB}/kcalcore ${KDE4LIB}/kdcraw ${KDE4LIB}/kexiv2
  39. WANTLIB-kipi += ${KDE4LIB}/kfile ${KDE4LIB}/khtml
  40. WANTLIB-kipi += ${KDE4LIB}/kio ${KDE4LIB}/kipi ${KDE4LIB}/kjs ${KDE4LIB}/kparts
  41. WANTLIB-kipi += ${KDE4LIB}/ksane
  42. WANTLIB-kipi += ${KDE4LIB}/nepomuk ${KDE4LIB}/nepomukutils ${KDE4LIB}/solid
  43. WANTLIB-kipi += ${KDE4LIB}/threadweaver
  44. WANTLIB-kipi += opencv_core opencv_highgui opencv_imgproc opencv_objdetect
  45. WANTLIB-kipi += exslt gdk_pixbuf-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gpod
  46. WANTLIB-kipi += gthread-2.0 jpeg
  47. WANTLIB-kipi += qjson kgeomap kqoauth kvkontakte mediawiki png qca2 soprano
  48. WANTLIB-kipi += tiff xml2 xslt MagickCore-6.Q16
  49. WANTLIB-kipi += QtGLib-2.0 QtGStreamer-1.0 QtGStreamerUtils-1.0
  50. WANTLIB-main = ${WANTLIB-common} ${MODPHONON_WANTLIB}
  51. WANTLIB-main += c ICE SM X11 Xext z
  52. WANTLIB-main += lib/qt4/QtNetwork lib/qt4/QtSql
  53. WANTLIB-main += lib/qt4/QtTest lib/qt4/QtXml
  54. WANTLIB-main += ${KDE4LIB}/kabc ${KDE4LIB}/kcalcore ${KDE4LIB}/kcmutils
  55. WANTLIB-main += ${KDE4LIB}/kdcraw ${KDE4LIB}/kemoticons
  56. WANTLIB-main += ${KDE4LIB}/kexiv2 ${KDE4LIB}/kfile
  57. WANTLIB-main += ${KDE4LIB}/khtml ${KDE4LIB}/kidletime ${KDE4LIB}/kio
  58. WANTLIB-main += ${KDE4LIB}/kipi ${KDE4LIB}/kjs ${KDE4LIB}/kmime
  59. WANTLIB-main += ${KDE4LIB}/knotifyconfig ${KDE4LIB}/kparts
  60. WANTLIB-main += ${KDE4LIB}/kpimutils ${KDE4LIB}/kprintutils
  61. WANTLIB-main += ${KDE4LIB}/kresources ${KDE4LIB}/kutils
  62. WANTLIB-main += ${KDE4LIB}/nepomuk ${KDE4LIB}/nepomukutils
  63. WANTLIB-main += ${KDE4LIB}/solid ${KDE4LIB}/threadweaver
  64. WANTLIB-main += opencv_calib3d opencv_contrib opencv_core opencv_features2d
  65. WANTLIB-main += opencv_flann opencv_gpu opencv_highgui opencv_imgproc
  66. WANTLIB-main += opencv_legacy opencv_ml opencv_nonfree opencv_objdetect
  67. WANTLIB-main += opencv_ocl opencv_photo opencv_video
  68. WANTLIB-main += akonadi-contact akonadi-kde baloocore baloofiles baloopim
  69. WANTLIB-main += balooqueryparser exif gphoto2 gphoto2_port jasper jpeg
  70. WANTLIB-main += kface kgeomap lcms2 lensfun lqr-1 pgf png soprano
  71. WANTLIB-main += sqlite tiff usb
  72. WANTLIB-mediawiki = ${WANTLIB-common}
  73. WANTLIB-mediawiki += lib/qt4/QtNetwork lib/qt4/QtXml
  74. WANTLIB-mediawiki += ${KDE4LIB}/kio
  75. # Define dependencies manually per subpackage
  76. # TODO: fix kde4.port.mk to allow such grained tuning
  77. BUILD_DEPENDS = devel/bison \
  78. devel/boost \
  79. math/eigen3 \
  80. misc/shared-desktop-ontologies
  81. RUN_DEPENDS-kipi = ${MODGETTEXT_RUN_DEPENDS} \
  82. ${MODKDE4_RUN_DEPENDS} \
  83. devel/desktop-file-utils \
  84. misc/shared-desktop-ontologies \
  85. x11/gtk+3,-guic \
  86. ${MODKDE4_DEP_DIR}/pim-runtime
  87. RUN_DEPENDS-main = ${MODGETTEXT_RUN_DEPENDS} \
  88. ${MODKDE4_RUN_DEPENDS} \
  89. devel/desktop-file-utils \
  90. misc/shared-desktop-ontologies \
  91. x11/gtk+3,-guic \
  92. ${MODKDE4_DEP_DIR}/pim-runtime
  93. LIBS_DEPENDS-common = ${MODQT4_LIB_DEPENDS} \
  94. ${MODKDE4_LIB_DEPENDS}
  95. LIB_DEPENDS-kipi = ${LIB_DEPENDS-common} \
  96. ${MODGETTEXT_LIB_DEPENDS} \
  97. ${MODPHONON_LIB_DEPENDS} \
  98. ${BASE_PKGPATH},-mediawiki \
  99. audio/libgpod \
  100. devel/glib2 \
  101. devel/qjson>=0.7 \
  102. graphics/gdk-pixbuf2 \
  103. graphics/ImageMagick \
  104. graphics/opencv>=2.4.9 \
  105. graphics/png \
  106. graphics/tiff \
  107. multimedia/qt-gstreamer \
  108. net/libkvkontakte \
  109. security/qca2 \
  110. security/kqoauth \
  111. x11/kde-applications/libkgeomap>=15.04.3 \
  112. ${MODKDE4_DEP_DIR}/libkdcraw \
  113. ${MODKDE4_DEP_DIR}/libkexiv2 \
  114. ${MODKDE4_DEP_DIR}/libkipi \
  115. ${MODKDE4_DEP_DIR}/libksane \
  116. ${MODKDE4_DEP_DIR}/pimlibs
  117. LIB_DEPENDS-main = ${LIB_DEPENDS-common} \
  118. ${MODPHONON_LIB_DEPENDS} \
  119. databases/sqlite \
  120. devel/glib2 \
  121. devel/libusb-compat \
  122. graphics/jasper \
  123. graphics/lcms2 \
  124. graphics/lensfun>=0.2.6 \
  125. graphics/libgphoto2 \
  126. graphics/liblqr \
  127. graphics/libpgf \
  128. graphics/opencv>=2.4.9 \
  129. graphics/png \
  130. graphics/tiff \
  131. x11/kde-applications/libkface>=15.04.3 \
  132. x11/kde-applications/libkgeomap>=15.04.3 \
  133. ${MODKDE4_DEP_DIR}/baloo \
  134. ${MODKDE4_DEP_DIR}/libkdcraw>=4.13 \
  135. ${MODKDE4_DEP_DIR}/libkexiv2>=4.13 \
  136. ${MODKDE4_DEP_DIR}/libkipi>=4.13 \
  137. ${MODKDE4_DEP_DIR}/pimlibs
  138. LIB_DEPENDS-mediawiki = ${LIB_DEPENDS-common}
  139. CONFIGURE_ARGS = -DCMAKE_DISABLE_FIND_PACKAGE_Hupnp:Bool=Yes \
  140. -DCMAKE_DISABLE_FIND_PACKAGE_QtSoap:Bool=Yes \
  141. -DENABLE_INTERNALMYSQL:Bool=No \
  142. -DENABLE_KDEPIMLIBSSUPPORT:Bool=Yes \
  143. -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:Bool=Yes \
  144. -DENABLE_LCMS2:Bool=Yes
  145. # no official release yet
  146. CONFIGURE_ARGS += -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=Yes
  147. # XXX Don't treat ``DEFINITIONS`` as a built-in directory property
  148. CONFIGURE_ARGS += -DCMAKE_POLICY_DEFAULT_CMP0059=OLD
  149. FLAVOR ?=
  150. TEST_IS_INTERACTIVE = X11
  151. .include <bsd.port.arch.mk>
  152. #.if ${ARCH} == "i386"
  153. CONFIGURE_ENV = CXXFLAGS="${CXXFLAGS} -DOPENBSD_LIBKDCRAW_NO_CRASH=0"
  154. #.else
  155. #CONFIGURE_ENV = CXXFLAGS="${CXXFLAGS} -DOPENBSD_LIBKDCRAW_NO_CRASH=1"
  156. #.endif
  157. post-extract:
  158. # use our Kexiv2Config.cmake instead
  159. rm ${WRKSRC}/cmake/modules/FindKexiv2.cmake
  160. # XXX because OBJECT_DEPENDS doesn't work as it should in
  161. # the patches/patch-extra_kipi-plugins_common_libkipiplugins_CMakeLists_txt
  162. pre-build:
  163. @${MODCMAKE_BUILD_TARGET:S,^${ALL_TARGET}$,kipiplugins-gitversion,}
  164. post-install:
  165. # these are installed by kde-l10n-* packages
  166. @find ${PREFIX}/share/locale -name libkipi.mo | xargs -t rm
  167. .include <bsd.port.mk>