78 lines
1.9 KiB
Makefile
Raw Normal View History

2015-09-17 22:30:42 +00:00
# $OpenBSD: Makefile,v 1.38 2015/09/17 22:30:42 ajacoutot Exp $
BROKEN-hppa= linking .libs/python-libpst.o fails
COMMENT-main= read and convert Microsoft Outlook mail files
COMMENT-python= python interface to libpst
2015-09-17 22:30:42 +00:00
DISTNAME= libpst-0.6.65
2013-09-27 08:09:16 +00:00
SHARED_LIBS += pst 3.0 # 5.10
2010-04-22 20:21:37 +00:00
PKGNAME-main= ${DISTNAME}
PKGNAME-python= py-${DISTNAME}
CATEGORIES= converters mail
HOMEPAGE= http://www.five-ten-sg.com/libpst/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
2014-03-26 18:36:16 +00:00
cWANTLIB += m pthread stdc++
2011-04-15 09:56:22 +00:00
2014-03-26 18:36:16 +00:00
WANTLIB-main += ${cWANTLIB} ${MODGETTEXT_WANTLIB}
WANTLIB-main += bz2 c expat ffi fontconfig freetype gd gio-2.0
2014-03-17 23:21:26 +00:00
WANTLIB-main += glib-2.0 gmodule-2.0 gobject-2.0 gsf-1 jpeg pcre png
2015-04-06 16:56:22 +00:00
WANTLIB-main += pthread-stubs tiff vpx xml2 z m pthread stdc++ lzma
2010-11-06 10:18:38 +00:00
2014-03-26 18:36:16 +00:00
WANTLIB-python += ${cWANTLIB} ${MODLIBICONV_WANTLIB}
2013-09-27 08:09:16 +00:00
WANTLIB-python += pst util boost_python
MASTER_SITES= ${HOMEPAGE}/packages/ \
http://distfiles.nl/
MULTI_PACKAGES= -main -python
2014-03-26 18:36:16 +00:00
MODULES= converters/libiconv \
devel/gettext \
lang/python
BUILD_DEPENDS= ${RUN_DEPENDS-main}
RUN_DEPENDS-main= graphics/ImageMagick
LIB_DEPENDS-main= ${MODGETTEXT_LIB_DEPENDS} \
2013-09-27 08:09:16 +00:00
devel/libgsf \
graphics/gd
2014-03-26 18:36:16 +00:00
LIB_DEPENDS-python= ${MODLIBICONV_LIB_DEPENDS} \
${BASE_PKGPATH} \
devel/boost
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-pst-debug \
2012-09-28 12:22:46 +00:00
--disable-static-tools \
--enable-libpst-shared
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${MODPY_INCDIR}" \
2012-01-09 18:25:44 +00:00
LDFLAGS="-L${LOCALBASE}/lib" \
PYTHON_LDFLAGS="-L${LOCALBASE}/lib -lpython${MODPY_VERSION} -lm" \
PYTHON_BIN="python${MODPY_VERSION}"
# XXX eats all memory
.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "hppa"
CFLAGS+= -O0
.endif
FAKE_FLAGS+= htmldir="${PREFIX}/share/doc/libpst/" \
htmldeveldir="${PREFIX}/share/doc/libpst/devel/"
2011-04-15 09:56:22 +00:00
pre-configure:
2012-09-28 11:38:48 +00:00
${SUBST_CMD} ${WRKSRC}/configure
2011-04-15 09:56:22 +00:00
2012-09-28 12:22:46 +00:00
post-install:
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.{a,la}
.include <bsd.port.mk>