summaryrefslogtreecommitdiff
path: root/meta-pkgs/kde3/kde3.mk
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-04-20 12:08:19 +0000
committermarkd <markd@pkgsrc.org>2004-04-20 12:08:19 +0000
commit089407cfb99c2720ef90a5b17db817a588a0385f (patch)
tree48f5aeffa4869bdda0df8af0e3ce1ea255b23fc6 /meta-pkgs/kde3/kde3.mk
parent89ad0dbc4ebd28d675c4a1655250f9083c0211a1 (diff)
downloadpkgsrc-089407cfb99c2720ef90a5b17db817a588a0385f.tar.gz
Update to kde3.2.2
Diffstat (limited to 'meta-pkgs/kde3/kde3.mk')
-rw-r--r--meta-pkgs/kde3/kde3.mk95
1 files changed, 95 insertions, 0 deletions
diff --git a/meta-pkgs/kde3/kde3.mk b/meta-pkgs/kde3/kde3.mk
new file mode 100644
index 00000000000..d80aa547b4f
--- /dev/null
+++ b/meta-pkgs/kde3/kde3.mk
@@ -0,0 +1,95 @@
+# $NetBSD: kde3.mk,v 1.1 2004/04/20 12:08:19 markd Exp $
+#
+# 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.
+#
+# The qt3-tools and qt3-libs buildlink2.mk files are also pulled in as all
+# KDE3 pkgs need them.
+
+.if !defined(KDE3_MK)
+KDE3_MK= # defined
+
+# All KDE3 packages satisfy the requirements for USE_X11BASE. This also
+# forces all KDE3 packages to have a common installation prefix.
+#
+USE_X11= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+KDEDIR?= ${PREFIX}
+QTDIR?= ${PREFIX}/qt3
+
+CONFIGURE_ARGS+= --datadir="${KDEDIR}/share/kde"
+CONFIGURE_ARGS+= --with-qt-dir="${QTDIR}"
+CONFIGURE_ARGS+= --with-extra-includes="${_KDE3_EXTRA_INCLUDES}"
+CONFIGURE_ARGS+= --disable-rpath
+CONFIGURE_ARGS+= --disable-debug
+.if exists(${X11BASE}/lib/libXinerama.so)
+CONFIGURE_ARGS+= --with-xinerama
+.endif
+
+CONFIGURE_ENV+= USER_LDFLAGS="${LDFLAGS}"
+LDFLAGS+= -L${QTDIR}/lib
+
+_KDE3_EXTRA_INCLUDES?= ${LOCALBASE}/include:${X11BASE}/include
+
+KDE_CONFIG_SITE?= ${KDEDIR}/share/kde/config.site \
+ ${KDEDIR}/etc/config.site
+
+CONFIGURE_ENV+= KDEDIR="${KDEDIR}"
+CONFIGURE_ENV+= CONFIG_SITE="${KDE_CONFIG_SITE}"
+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"
+CONFIGURE_ENV+= kde_icondir="${KDEDIR}/share/kde/icons"
+.if defined(USE_PKGLOCALEDIR) && !empty(USE_PKGLOCALEDIR:M[Yy][Ee][Ss])
+CONFIGURE_ENV+= kde_locale="${KDEDIR}/${PKGLOCALEDIR}/locale"
+.else
+CONFIGURE_ENV+= kde_locale="${KDEDIR}/share/kde/locale"
+.endif
+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"
+
+BUILDLINK_DEPMETHOD.qt3-tools= build
+
+.include "../../x11/qt3-tools/buildlink3.mk"
+
+.endif # KDE3_MK