Makefile 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # $OpenBSD: Makefile,v 1.101 2017/04/10 11:46:22 sthen Exp $
  2. COMMENT-main= mail and news client
  3. COMMENT-bogofilter= bogofilter plugin
  4. COMMENT-clamav= clamav plugin
  5. COMMENT-spamassassin= spamassassin plugin
  6. COMMENT-pdfviewer= pdfviewer plugin
  7. COMMENT-gdata= gdata plugin
  8. V= 3.14.1
  9. DISTNAME= claws-mail-${V}
  10. PKGNAME-main= ${DISTNAME}
  11. PKGNAME-bogofilter= claws-mail-bogofilter-${V}
  12. PKGNAME-spamassassin= claws-mail-spamassassin-${V}
  13. PKGNAME-pdfviewer= claws-mail-pdfviewer-${V}
  14. PKGNAME-gdata= claws-mail-gdata-${V}
  15. REVISION-main= 1
  16. REVISION-pdfviewer= 1
  17. REVISION-bogofilter= 0
  18. REVISION-gdata= 0
  19. REVISION-spamassassin= 0
  20. CATEGORIES= mail news
  21. HOMEPAGE= http://www.claws-mail.org/
  22. MAINTAINER= Daniel Jakots <obsd@chown.me>
  23. # GPLv3+
  24. PERMIT_PACKAGE_CDROM= Yes
  25. MASTER_SITES= http://www.claws-mail.org/releases/
  26. DIST_SUBDIR= claws
  27. MULTI_PACKAGES= -main -bogofilter -spamassassin -pdfviewer -gdata
  28. FLAVORS= jpilot ldap
  29. FLAVOR?=
  30. FLAVOR_STRING= ${FLAVOR_EXT:S/-/,/g}
  31. SUBST_VARS= FLAVOR_STRING
  32. RUN_DEPENDS-bogofilter= ${BUILD_PKGPATH} \
  33. mail/bogofilter
  34. RUN_DEPENDS-spamassassin=${BUILD_PKGPATH} \
  35. mail/p5-Mail-SpamAssassin
  36. WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  37. WANTLIB += Xrandr Xrender atk-1.0 cairo crypto curl etpan execinfo
  38. WANTLIB += expat ffi fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
  39. WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 graphite2
  40. WANTLIB += gthread-2.0 gtk-x11-2.0 harfbuzz m nghttp2 pango-1.0
  41. WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread
  42. WANTLIB += pthread-stubs sasl2 ssl xcb xcb-render xcb-shm z
  43. WANTLIB-main = ${WANTLIB}
  44. WANTLIB-main += ICE SM X11-xcb archive assuan bz2 c canberra canberra-gtk
  45. WANTLIB-main += dbus-1 dbus-glib-1 enchant gmp gnutls gpg-error gpgme
  46. WANTLIB-main += hogweed idn2 ltdl lz4 lzma lzo2 nettle notify ogg p11-kit
  47. WANTLIB-main += perl startup-notification-1 ${LIBCXX} tasn1 unistring vorbis
  48. WANTLIB-main += vorbisfile xcb-util
  49. WANTLIB-gdata = ${WANTLIB}
  50. WANTLIB-gdata += gck-1 gcr-base-3 gcrypt gdata goa-1.0 gpg-error json-glib-1.0
  51. WANTLIB-gdata += lzma nspr4 nss3 oauth p11-kit plc4 plds4 smime3 softokn3
  52. WANTLIB-gdata += soup-2.4 sqlite3 ssl3 xml2
  53. WANTLIB-pdfviewer = ${WANTLIB}
  54. WANTLIB-pdfviewer += jpeg lcms2 openjp2 poppler poppler-glib tiff
  55. LIB_DEPENDS= devel/libexecinfo \
  56. mail/libetpan \
  57. security/cyrus-sasl2 \
  58. x11/gtk+2
  59. RUN_DEPENDS-main= ${RUN_DEPENDS} \
  60. devel/desktop-file-utils \
  61. x11/gtk+3,-guic
  62. LIB_DEPENDS-main= ${LIB_DEPENDS} \
  63. archivers/libarchive \
  64. archivers/xz \
  65. devel/startup-notification \
  66. textproc/enchant \
  67. audio/libcanberra,-gtk \
  68. devel/libnotify \
  69. security/gnutls>=2.2 \
  70. security/gpgme \
  71. x11/dbus-glib
  72. LIB_DEPENDS-pdfviewer= ${LIB_DEPENDS} \
  73. print/poppler
  74. LIB_DEPENDS-gdata= ${LIB_DEPENDS} \
  75. devel/libgdata
  76. #geolocation looks for champlain <= 0.10
  77. #python tries to dlopen libpython2.7.so
  78. CONFIGURE_ARGS+= --disable-acpi_notifier-plugin \
  79. --disable-compface \
  80. --disable-fancy-plugin \
  81. --disable-geolocation-plugin \
  82. --disable-python-plugin \
  83. --enable-new-addrbook
  84. MODULES= devel/gettext
  85. USE_GMAKE= Yes
  86. LIBTOOL_FLAGS= --tag=disable-static
  87. CONFIGURE_STYLE= autoconf
  88. AUTOCONF_VERSION= 2.69
  89. CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include" \
  90. LDFLAGS="-L${X11BASE}/lib"
  91. .if ${FLAVOR:Mjpilot}
  92. LIB_DEPENDS-main+= comms/pilot-link
  93. WANTLIB-main += pisock
  94. RUN_DEPENDS-main+= comms/jpilot
  95. .else
  96. CONFIGURE_ARGS+= --disable-jpilot
  97. .endif
  98. .if ${FLAVOR:Mldap}
  99. WANTLIB-main+= lber-2.4 ldap-2.4
  100. LIB_DEPENDS-main+= databases/openldap
  101. .else
  102. CONFIGURE_ARGS+= --disable-ldap
  103. .endif
  104. TOOLS= OOo2claws-mail.pl \
  105. acroread2claws-mail.pl \
  106. calypso_convert.pl \
  107. claws-mail-compose-insert-files.pl \
  108. convert_mbox.pl \
  109. csv2addressbook.pl \
  110. eud2gc.py \
  111. filter_conv.pl filter_conv_new.pl \
  112. fix_date.sh \
  113. gif2xface.pl \
  114. google_msgid.pl google_search.pl \
  115. kmail-mailbox2claws-mail.pl \
  116. kmail2claws-mail.pl kmail2claws-mail_v2.pl \
  117. mairix.sh \
  118. mew2claws-mail.pl \
  119. multiwebsearch.conf multiwebsearch.pl \
  120. nautilus2claws-mail.sh \
  121. outlook2claws-mail.pl \
  122. popfile-link.sh \
  123. tb2claws-mail tbird2claws.py \
  124. textviewer.pl textviewer.sh \
  125. thunderbird-filters-convertor.pl \
  126. uudec uuooffice \
  127. vcard2xml.py \
  128. README \
  129. kdeservicemenu/claws-mail-attach-files.desktop.kde4template \
  130. kdeservicemenu/claws-mail-attach-files.desktop.template \
  131. kdeservicemenu/claws-mail-kdeservicemenu.pl \
  132. kdeservicemenu/install.sh \
  133. kdeservicemenu/README
  134. post-install:
  135. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/48x48/apps
  136. ${INSTALL_DATA} ${WRKSRC}/claws-mail.png ${PREFIX}/share/icons/hicolor/48x48/apps/claws-mail.png
  137. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/64x64/apps
  138. ${INSTALL_DATA} ${WRKSRC}/claws-mail-64x64.png ${PREFIX}/share/icons/hicolor/64x64/apps/claws-mail.png
  139. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/128x128/apps
  140. ${INSTALL_DATA} ${WRKSRC}/claws-mail-128x128.png ${PREFIX}/share/icons/hicolor/128x128/apps/claws-mail.png
  141. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  142. ${INSTALL_DATA} ${WRKSRC}/claws-mail.desktop ${PREFIX}/share/applications/claws-mail.desktop
  143. ${INSTALL_DATA_DIR} ${PREFIX}/share/claws-mail/tools/kdeservicemenu
  144. .for i in ${TOOLS}
  145. ${INSTALL_DATA} ${WRKSRC}/tools/${i} \
  146. ${PREFIX}/share/claws-mail/tools/${i}
  147. .endfor
  148. .include <bsd.port.mk>