1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/finance/kmymoney-kde4/Makefile
Raphael Kubo da Costa 5f54a52585 Change header installation location for kdelibs4-based ports.
Install x11/kdelibs4's headers into include/kde4 instead of include (which
consequently causes several other ports to have their installation paths
changed too).

The idea behind this is to reduce path conflicts between KDE4 ports and the
upcoming KDE Frameworks 5 ports that will be installed into include/KF5. If
we continue installing the KDE4 headers into include/, we can end up in a
situation like this:

    c++ [...] -I/usr/local/include -I/usr/local/include/KF5 file.cpp

If the KDE4 and KF5 versions of a port have the same headers, the KDE4 port
will unintentionally be picked up first and the build will fail.

Most of this huge patch is just PORTREVISION bumps, pkg-plist changes and a
few patches to FooConfig.cmake files to make them look into the kde4/
subdirectory in include/.

Changes which don't fit into the above are:
- deskutils/kdepimlibs4: Import an upstream patch to remove some double
  semicolons that cause base GCC to fail. They have always been present, but
  since the faulty header was referenced via -isystem /usr/local/include
  this never caused any problems.
- devel/subversion, devel/subversion18: Update patch-configure. The current
  kwallet changes there date back to 2011 (r272490), at a time when the
  build could fail when both KDE3 and KDE4 were installed. Replace those
  bits with a change I've submitted upstream to use the kde4-config program
  to determine where KDE4's headers and libraries are installed instead of
  assuming the headers are always in include/.

Once again, huge thanks to Tobias Berner <tcberner@gmail.com> for being the
first one to notice this problem when working on the KDE Frameworks 5 ports,
coming up with the solution and bugging me until I had time to work on this
and ask for the exp-run :-)

PR:		207906 (exp-run)
2016-03-15 12:35:56 +00:00

61 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= kmymoney
PORTVERSION= 4.7.2
PORTREVISION= 1
CATEGORIES= finance kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/src
MAINTAINER= jhale@FreeBSD.org
COMMENT= KDE4 personal finance manager
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libboost_graph.so:${PORTSDIR}/devel/boost-libs \
libalkimia.so:${PORTSDIR}/finance/libalkimia
USES= cmake pkgconfig shared-mime-info shebangfix tar:xz
USE_QT4= gui dbus network phonon sql svg xml \
qmake_build moc_build rcc_build uic_build
USE_KDE4= kdeprefix automoc4 kdelibs pimlibs
USE_LDCONFIG= yes
SHEBANG_FILES= kmymoney/misc/financequote.pl
OPTIONS_DEFINE= NLS CALENDAR KBANKING OFX QUOTES
OPTIONS_DEFAULT= CALENDAR
OPTIONS_SUB= yes
NO_OPTIONS_SORT= yes
NLS_USES= gettext
NLS_CMAKE_ON= -DBUILD_po:BOOL=ON
NLS_CMAKE_OFF= -DBUILD_po:BOOL=OFF
CALENDAR_DESC= Enable Calendar plugin
CALENDAR_LIB_DEPENDS= libical.so:${PORTSDIR}/devel/libical
CALENDAR_CMAKE_ON= -DENABLE_LIBICAL:BOOL=ON
CALENDAR_CMAKE_OFF= -DENABLE_LIBICAL:BOOL=OFF
KBANKING_DESC= Enable KBanking plugin
KBANKING_LIB_DEPENDS= libgwengui-qt4.so:${PORTSDIR}/devel/gwenhywfar-qt4 \
libaqbanking.so:${PORTSDIR}/finance/aqbanking
KBANKING_CMAKE_ON= -DENABLE_KBANKING:BOOL=ON
KBANKING_CMAKE_OFF= -DENABLE_KBANKING:BOOL=OFF
OFX_DESC= Enable OFX plugin
OFX_LIB_DEPENDS= libofx.so:${PORTSDIR}/finance/libofx
OFX_CMAKE_ON= -DENABLE_LIBOFX:BOOL=ON
OFX_CMAKE_OFF= -DENABLE_LIBOFX:BOOL=OFF
QUOTES_DESC= Enable online price quotes
QUOTES_USES= perl5
QUOTES_USE= PERL5=run
QUOTES_RUN_DEPENDS= p5-Date-Manip>=0:${PORTSDIR}/devel/p5-Date-Manip \
p5-Finance-Quote>=0:${PORTSDIR}/finance/p5-Finance-Quote \
p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
p5-XML-Writer>=0:${PORTSDIR}/textproc/p5-XML-Writer \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
.include <bsd.port.mk>