1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/editors/calligra/Makefile
Alexey Dokuchaev 3febe31ec5 - Chase libexiv2.so shlib version bump after r350163
- Fix nearby minor style issues while here (not all)

Approved by:	portmgr (bapt), some ports are still NO_STAGE :(
2014-04-04 20:36:47 +00:00

117 lines
4.3 KiB
Makefile

# $FreeBSD$
PORTNAME= calligra
PORTVERSION= ${CALLIGRA_VERSION}
PORTREVISION= 4
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${CALLIGRA_BRANCH}/${PORTNAME}-${PORTVERSION}/
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= KDE graphic art and office suite
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
libboost_thread.so:${PORTSDIR}/devel/boost-libs \
libqca.so:${PORTSDIR}/devel/qca \
libexiv2.so:${PORTSDIR}/graphics/exiv2 \
liblcms2.so:${PORTSDIR}/graphics/lcms2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libwpd-0.9.so:${PORTSDIR}/textproc/libwpd \
libwpg-0.2.so:${PORTSDIR}/graphics/libwpg \
libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4 \
libopenjpeg.so:${PORTSDIR}/graphics/openjpeg \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libdcmdata.so:${PORTSDIR}/devel/dcmtk \
libfftw3.so:${PORTSDIR}/math/fftw3 \
libtiff.so:${PORTSDIR}/graphics/tiff \
libgsl.so:${PORTSDIR}/math/gsl \
libwps-0.2.so:${PORTSDIR}/textproc/libwps \
libvisio-0.0.so:${PORTSDIR}/textproc/libvisio \
libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:${PORTSDIR}/math/eigen2
CONFLICTS= koffice-kde4-2.*
CONFLICTS_BUILD=qt-3.*
USE_GL= glew
USE_GNOME= glib20 libxml2 libxslt
USE_KDE4= kactivities kdehier kdelibs kdeprefix libkdcraw nepomuk-core \
okular pimlibs attica automoc4 soprano
USE_QT4= corelib dbus designer_build gui opengl phonon porting_build \
qt3support qtestlib_build script sql svg webkit xml xmlpatterns \
moc_build qmake_build rcc_build uic_build uic3_build
USE_SQLITE= 3
USES= cmake:outsource compiler:c++11-lang iconv perl5 pkgconfig \
shared-mime-info
USE_XZ= yes
CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:STRING="${QT_INCDIR} ${LOCALBASE}/include" \
-DPRODUCTSET:STRING="DESKTOP"
USE_LDCONFIG= yes
OPTIONS_DEFINE= GTL MARBLE MYSQL PGSQL SYBASE
OPTIONS_DEFAULT=MARBLE MYSQL PGSQL
OPTIONS_SUB= yes
GTL_DESC= Color transformations in Krita (requires LLVM)
GTL_LIB_DEPENDS=libOpenCTL.so:${PORTSDIR}/graphics/opengtl \
libQtShiva.so:${PORTSDIR}/graphics/qtgtl
GTL_CMAKE_OFF= -DWITH_OpenShiva:BOOL=FALSE \
-DWITH_QtShiva:BOOL=FALSE
MARBLE_DESC= World globe widget support via Marble
MARBLE_USE= KDE4=marble
MARBLE_CMAKE_OFF=-DWITH_Marble:BOOL=FALSE
MYSQL_DESC= MySQL database support in Kexi
MYSQL_USE= MYSQL=yes
MYSQL_CMAKE_OFF=-DWITH_MySQL:BOOL=FALSE
PGSQL_DESC= PostgreSQL database support in Kexi
PGSQL_LIB_DEPENDS=libpqxx-3.1.so:${PORTSDIR}/databases/postgresql-libpqxx3
PGSQL_USE= PGSQL=yes
PGSQL_CMAKE_OFF=-DWITH_PostgreSQL:BOOL=FALSE
SYBASE_DESC= Sybase database support in Kexi
SYBASE_LIB_DEPENDS=libsybdb.so:${PORTSDIR}/databases/freetds
SYBASE_CMAKE_OFF=-DWITH_FreeTDS:BOOL=FALSE
.if exists(${LOCALBASE}/lib/pstoedit/libp2edrvlplot.so)
BUILD_DEPENDS+= ${LOCALBASE}/lib/pstoedit/libp2edrvlplot.so:${PORTSDIR}/graphics/pstoedit
RUN_DEPENDS+= ${LOCALBASE}/lib/pstoedit/libp2edrvlplot.so:${PORTSDIR}/graphics/pstoedit
PLIST_SUB+= EPS=""
.else
PLIST_SUB+= EPS="@comment "
.endif
.if defined(PACKAGE_BUILDING)
# Requires Vc (http://code.compeng.uni-frankfurt.de/projects/vc).
CMAKE_ARGS+= -DWITH_PACKAGERS_BUILD:BOOL=TRUE
.else
CMAKE_ARGS+= -DWITH_PACKAGERS_BUILD:BOOL=FALSE
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|' \
${PATCH_WRKSRC}/cmake/modules/FindGLEW.cmake
@${REINPLACE_CMD} -e 's|/opt/local|${LOCALBASE}|' \
${PATCH_WRKSRC}/cmake/modules/FindImageMagick.cmake
@${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
${PATCH_WRKSRC}/cmake/modules/FindWPD.cmake
@${REINPLACE_CMD} -e 's/^# *include *< *malloc\.h *>/#include <stdlib.h>/' \
${PATCH_WRKSRC}/libs/db/parser/sqlparser.cpp \
${PATCH_WRKSRC}/libs/db/parser/sqlparser.y \
${PATCH_WRKSRC}/plan/plugins/schedulers/rcps/libs/src/*.c
# They require memalign() to build; as they're not installed, they're just a
# waste of CPU cycles.
@${REINPLACE_CMD} -e '/add_subdirectory.*benchmarks/ d' \
${PATCH_WRKSRC}/krita/CMakeLists.txt
# Prevent updating MIME during build/install.
@${REINPLACE_CMD} -e '/^update_xdg_mimetypes/ d; /SharedMimeInfo/ d' \
${PATCH_WRKSRC}/filters/libmsooxml/CMakeLists.txt \
${PATCH_WRKSRC}/krita/plugins/formats/ora/CMakeLists.txt
.include <bsd.port.mk>