2009-07-22 11:01:16 +02:00
|
|
|
# $NetBSD: kde3.mk,v 1.17 2009/07/22 09:01:35 wiz Exp $
|
2004-04-20 14:08:19 +02:00
|
|
|
#
|
|
|
|
# This Makefile fragment is included by packages that use the KDE3
|
|
|
|
# configure-and-build process.
|
|
|
|
#
|
|
|
|
# To use this Makefile fragment, simply include this Makefile fragment in
|
|
|
|
# the package Makefile.
|
|
|
|
#
|
|
|
|
# The buildlink strategy with KDE3 packages is:
|
|
|
|
#
|
|
|
|
# * pass UIC to the configure script, as the KDE3 configure scripts now
|
|
|
|
# check for its existance and fail if its not found.
|
|
|
|
#
|
|
|
|
# * pass USER_LDFLAGS to the configure script, containing the value of
|
|
|
|
# LDFLAGS as set by bsd.pkg.mk; this should pass all of the necessary
|
|
|
|
# library directory and rpath settings to the compiler/linker to find
|
|
|
|
# the X11, Qt-3.x, and KDE-3.x libraries.
|
|
|
|
#
|
|
|
|
# We pass the following values via options to the configure script:
|
|
|
|
#
|
|
|
|
# * datadir is where all of the KDE3 data files go
|
|
|
|
# * qt-dir is the location of QT3 for build purposes
|
|
|
|
# * extra-includes is where headers for dependencies may be found
|
|
|
|
#
|
|
|
|
# We _don't_ pass the following values via options to the configure script:
|
|
|
|
#
|
|
|
|
# * extra-libs contains library directories that are added to both the
|
|
|
|
# rpath via -R and to the linker flags via -L; we don't need this
|
|
|
|
# since we pass them in directly via ${USER_LDFLAGS}
|
|
|
|
#
|
|
|
|
# We also disable the rpath setting by the configure script since it often
|
|
|
|
# guesses wrong on odd setups, and since we already pass all of the required
|
|
|
|
# flags through USER_LDFLAGS.
|
|
|
|
#
|
2004-07-05 14:26:01 +02:00
|
|
|
# The qt3-tools buildlink3.mk file is also pulled in as all KDE3 pkgs need it.
|
2004-04-20 14:08:19 +02:00
|
|
|
|
|
|
|
.if !defined(KDE3_MK)
|
|
|
|
KDE3_MK= # defined
|
|
|
|
|
2004-12-10 06:59:50 +01:00
|
|
|
USE_PKGLOCALEDIR= YES
|
2004-04-20 14:08:19 +02:00
|
|
|
|
2007-06-19 15:31:01 +02:00
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
2004-04-20 14:08:19 +02:00
|
|
|
|
Remove Linux work-around for bug noted in PR #25402 from arts
and koffice build.
And do in meta-pkgs/kde3/kde3.mk as suggested by maintainer, markd.
It helps with builds on Linux for kdegraphics3, libkipi, gwenview,
kdelibs3, kdebase3, arts, and many other KDE-based packages on Linux.
(It was not needed for kile, but will be used.)
Thank you, Torsten Harenberg for testing many packages such as
kdenetwork, kdegames, kdepim, kdemultimedia.
I still don't know what the correct fix is for PR #25402.
2005-05-19 00:35:04 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
# work-around bug noted in PR #25402
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Wl,--no-undefined
|
|
|
|
.endif
|
|
|
|
|
2005-04-27 04:09:05 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2005-04-14 22:40:37 +02:00
|
|
|
GCC_REQD+= 3.3
|
|
|
|
.endif
|
|
|
|
|
2007-02-28 12:12:33 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CONFIGURE_ARGS+= --disable-pie
|
|
|
|
.endif
|
|
|
|
|
2004-04-20 14:08:19 +02:00
|
|
|
KDEDIR?= ${PREFIX}
|
|
|
|
QTDIR?= ${PREFIX}/qt3
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --datadir="${KDEDIR}/share/kde"
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-qt-dir=${QTDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-extra-includes=${_KDE3_EXTRA_INCLUDES:Q}
|
2004-04-20 14:08:19 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-rpath
|
|
|
|
CONFIGURE_ARGS+= --disable-debug
|
2007-06-19 15:31:01 +02:00
|
|
|
.if exists(${X11BASE}/lib/libXinerama.so) || ${X11_TYPE} != "native"
|
2004-04-20 14:08:19 +02:00
|
|
|
CONFIGURE_ARGS+= --with-xinerama
|
2007-06-19 15:31:01 +02:00
|
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
2004-04-20 14:08:19 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= USER_LDFLAGS=${LDFLAGS:M*:Q}
|
2004-04-20 14:08:19 +02:00
|
|
|
LDFLAGS+= -L${QTDIR}/lib
|
|
|
|
|
|
|
|
_KDE3_EXTRA_INCLUDES?= ${LOCALBASE}/include:${X11BASE}/include
|
|
|
|
|
|
|
|
KDE_CONFIG_SITE?= ${KDEDIR}/share/kde/config.site \
|
2005-03-06 13:41:26 +01:00
|
|
|
${PKG_SYSCONFDIR}/kde/config.site
|
2004-04-20 14:08:19 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= KDEDIR=${KDEDIR:Q}
|
|
|
|
CONFIGURE_ENV+= CONFIG_SITE=${KDE_CONFIG_SITE:Q}
|
2004-04-20 14:08:19 +02:00
|
|
|
CONFIGURE_ENV+= kde_appsdir="${KDEDIR}/share/kde/applnk"
|
|
|
|
CONFIGURE_ENV+= kde_cgidir="${KDEDIR}/kde-cgi-bin"
|
|
|
|
CONFIGURE_ENV+= kde_confdir="${KDEDIR}/share/kde/config"
|
|
|
|
CONFIGURE_ENV+= kde_datadir="${KDEDIR}/share/kde/apps"
|
|
|
|
CONFIGURE_ENV+= kde_htmldir="${KDEDIR}/share/doc/kde/HTML"
|
2007-01-26 03:36:14 +01:00
|
|
|
CONFIGURE_ENV+= kde_icondir="${KDEDIR}/share/icons"
|
2004-04-20 14:08:19 +02:00
|
|
|
CONFIGURE_ENV+= kde_locale="${KDEDIR}/${PKGLOCALEDIR}/locale"
|
|
|
|
CONFIGURE_ENV+= kde_mimedir="${KDEDIR}/share/kde/mimelnk"
|
|
|
|
CONFIGURE_ENV+= kde_servicesdir="${KDEDIR}/share/kde/services"
|
|
|
|
CONFIGURE_ENV+= kde_servicetypesdir="${KDEDIR}/share/kde/servicetypes"
|
|
|
|
CONFIGURE_ENV+= kde_sounddir="${KDEDIR}/share/kde/sounds"
|
|
|
|
CONFIGURE_ENV+= kde_templatesdir="${KDEDIR}/share/kde/templates"
|
|
|
|
CONFIGURE_ENV+= kde_toolbardir="${KDEDIR}/share/kde/toolbar"
|
|
|
|
CONFIGURE_ENV+= kde_wallpaperdir="${KDEDIR}/share/kde/wallpapers"
|
|
|
|
CONFIGURE_ENV+= xdg_appsdir="${KDEDIR}/share/applications/kde"
|
|
|
|
CONFIGURE_ENV+= xdg_directorydir="${KDEDIR}/share/desktop-directories"
|
|
|
|
|
2004-09-19 06:17:22 +02:00
|
|
|
_IN_ARTS_BUILD?= no
|
|
|
|
.if !empty(_IN_ARTS_BUILD:M[nN][oO])
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.qt3-libs+= qt3-libs>=3.3.3nb1
|
2004-09-19 06:17:22 +02:00
|
|
|
.include "../../x11/qt3-libs/buildlink3.mk"
|
|
|
|
.endif
|
2004-04-20 14:08:19 +02:00
|
|
|
|
|
|
|
.include "../../x11/qt3-tools/buildlink3.mk"
|
|
|
|
|
|
|
|
.endif # KDE3_MK
|