Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # $OpenBSD: Makefile,v 1.49 2017/05/15 19:56:02 rsadowski Exp $
  2. BROKEN-hppa= linking .libs/python-libpst.o fails
  3. COMMENT-main= read and convert Microsoft Outlook mail files
  4. COMMENT-python= python interface to libpst
  5. DISTNAME= libpst-0.6.70
  6. SHARED_LIBS += pst 3.0 # 5.14
  7. PKGNAME-main= ${DISTNAME}
  8. PKGNAME-python= py-${DISTNAME}
  9. REVISION-main= 0
  10. CATEGORIES= converters mail
  11. HOMEPAGE= http://www.five-ten-sg.com/libpst/
  12. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  13. # GPLv2
  14. PERMIT_PACKAGE_CDROM= Yes
  15. cWANTLIB += m pthread ${LIBCXX}
  16. WANTLIB-main += ${cWANTLIB} iconv intl
  17. WANTLIB-main += bz2 c expat ffi fontconfig freetype gd gio-2.0
  18. WANTLIB-main += glib-2.0 gmodule-2.0 gobject-2.0 gsf-1 jpeg pcre png
  19. WANTLIB-main += pthread-stubs tiff webp xml2 z m pthread ${LIBCXX} lzma
  20. WANTLIB-python += ${cWANTLIB} iconv
  21. WANTLIB-python += pst util boost_python
  22. MASTER_SITES= ${HOMEPAGE}/packages/ \
  23. https://distfiles.nl/
  24. MULTI_PACKAGES= -main -python
  25. MODULES= lang/python
  26. BUILD_DEPENDS= graphics/ImageMagick
  27. RUN_DEPENDS-main= graphics/ImageMagick
  28. LIB_DEPENDS-main= devel/libgsf \
  29. graphics/gd
  30. LIB_DEPENDS-python= ${BASE_PKGPATH} \
  31. devel/boost
  32. USE_GMAKE= Yes
  33. CONFIGURE_STYLE= gnu
  34. CONFIGURE_ARGS+= --enable-pst-debug \
  35. --disable-static-tools \
  36. --enable-libpst-shared
  37. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${MODPY_INCDIR}" \
  38. LDFLAGS="-L${LOCALBASE}/lib" \
  39. PYTHON_LDFLAGS="-L${LOCALBASE}/lib -lpython${MODPY_VERSION} -lm" \
  40. PYTHON_BIN="python${MODPY_VERSION}"
  41. # XXX eats all memory
  42. .if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "hppa"
  43. CFLAGS+= -O0
  44. .endif
  45. FAKE_FLAGS+= htmldir="${PREFIX}/share/doc/libpst/" \
  46. htmldeveldir="${PREFIX}/share/doc/libpst/devel/"
  47. pre-configure:
  48. ${SUBST_CMD} ${WRKSRC}/configure
  49. post-install:
  50. rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.{a,la}
  51. .include <bsd.port.mk>