summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-13 21:08:55 +0000
committerjlam <jlam@pkgsrc.org>2001-11-13 21:08:55 +0000
commit5e85458d08af5cae20a9ca0ecd54ee4db5d0abfe (patch)
tree31d9300a8271883d8deb290e70c016e8f8ed8ee9 /x11
parent7771464e72d5806581cf67a57c934abcb3fcd8bd (diff)
downloadpkgsrc-5e85458d08af5cae20a9ca0ecd54ee4db5d0abfe.tar.gz
Create two new files:
Makefile.kde2 included by projects that use the recommended KDE2 build infrastructure, including all of the admin scripts. buildlink.mk included by KDE2 packages and contains all of the settings to use the buildlink.mk infrastructure. These obsolete Makefile.part1 and Makefile.part2.
Diffstat (limited to 'x11')
-rw-r--r--x11/kde2/Makefile.kde220
-rw-r--r--x11/kde2/Makefile.part19
-rw-r--r--x11/kde2/Makefile.part248
-rw-r--r--x11/kde2/buildlink.mk108
4 files changed, 128 insertions, 57 deletions
diff --git a/x11/kde2/Makefile.kde2 b/x11/kde2/Makefile.kde2
new file mode 100644
index 00000000000..3905c2a2447
--- /dev/null
+++ b/x11/kde2/Makefile.kde2
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile.kde2,v 1.1 2001/11/13 21:08:56 jlam Exp $
+#
+# This Makefile fragment is included at the top of package Makefiles for
+# those packages that use the recommended KDE2 configure and build
+# infrastructure.
+
+CATEGORIES+= kde
+_KDE_VERSION= 2.2.1
+MASTER_SITES?= ftp://ftp.kde.org/pub/kde/stable/${_KDE_VERSION}/src/ \
+ ftp://ftp.us.kde.org/pub/kde/stable/${_KDE_VERSION}/src/ \
+ ftp://ftp.de.kde.org/pub/kde/stable/${_KDE_VERSION}/src/
+EXTRACT_SUFX?= .tar.bz2
+
+MAINTAINER?= skrll@netbsd.org
+HOMEPAGE?= http://www.kde.org/
+
+USE_GMAKE= YES
+GNU_CONFIGURE= YES
+USE_LIBTOOL= YES
+LTCONFIG_OVERRIDE= ${WRKSRC}/admin/ltconfig
diff --git a/x11/kde2/Makefile.part1 b/x11/kde2/Makefile.part1
deleted file mode 100644
index 3352fe70243..00000000000
--- a/x11/kde2/Makefile.part1
+++ /dev/null
@@ -1,9 +0,0 @@
-# $NetBSD: Makefile.part1,v 1.4 2001/10/15 22:46:20 skrll Exp $
-#
-MASTER_SITES?= ftp://ftp.kde.org/pub/kde/stable/2.2.1/src/ \
- ftp://ftp.us.kde.org/pub/kde/stable/2.2.1/src/ \
- ftp://ftp.de.kde.org/pub/kde/stable/2.2.1/src/
-EXTRACT_SUFX?= .tar.bz2
-
-MAINTAINER?= skrll@netbsd.org
-HOMEPAGE?= http://www.kde.org/
diff --git a/x11/kde2/Makefile.part2 b/x11/kde2/Makefile.part2
deleted file mode 100644
index bb6a4196a92..00000000000
--- a/x11/kde2/Makefile.part2
+++ /dev/null
@@ -1,48 +0,0 @@
-# $NetBSD: Makefile.part2,v 1.5 2001/07/05 15:23:20 jlam Exp $
-#
-USE_X11BASE= YES
-USE_GMAKE= YES
-USE_LIBTOOL= YES
-LTCONFIG_OVERRIDE= ${WRKSRC}/admin/ltconfig
-GNU_CONFIGURE= YES
-
-.if defined(USE_BUILDLINK_ONLY)
-CONFIGURE_ARGS= \
- --datadir="${PREFIX}/share/kde" \
- --with-qt-dir="${BUILDLINK_QTDIR}" \
- --with-qt-includes="${BUILDLINK_QTDIR}/include" \
- --with-qt-libraries="${QTDIR}/lib" \
- --with-extra-libs="${LOCALBASE}/lib:${X11BASE}/lib" \
- --with-extra-includes="${BUILDLINK_DIR}/include"
-.else
-EVAL_PREFIX+= QT2DIR=qt2-libs
-CONFIGURE_ARGS= \
- --datadir="${PREFIX}/share/kde" \
- --with-qt-dir="${QT2DIR}/qt2" \
- --with-qt-includes="${QT2DIR}/qt2/include" \
- --with-qt-libraries="${QT2DIR}/qt2/lib" \
- --with-extra-libs="${LOCALBASE}/lib:${X11BASE}/lib" \
- --with-extra-includes="${LOCALBASE}/include:${X11BASE}/include"
-.endif
-
-CONFIGURE_ENV= \
- KDEDIR="${PREFIX}" \
- CONFIG_SITE="${PREFIX}/share/kde/config.site ${PREFIX}/etc/config.site" \
- kde_htmldir="${PREFIX}/share/doc/kde/HTML" \
- kde_appsdir="${PREFIX}/share/kde/applnk" \
- kde_icondir="${PREFIX}/share/kde/icons" \
- kde_sounddir="${PREFIX}/share/kde/sounds" \
- kde_datadir="${PREFIX}/share/kde/apps" \
- kde_locale="${PREFIX}/share/kde/locale" \
- kde_cgidir="${PREFIX}/kde-cgi-bin" \
- kde_confdir="${PREFIX}/share/kde/config" \
- kde_mimedir="${PREFIX}/share/kde/mimelnk" \
- kde_toolbardir="${PREFIX}/share/kde/toolbar" \
- kde_wallpaperdir="${PREFIX}/share/kde/wallpapers" \
- kde_templatesdir="${PREFIX}/share/kde/templates" \
- kde_servicesdir="${PREFIX}/share/kde/services" \
- kde_servicetypesdir="${PREFIX}/share/kde/servicetypes"
-
-.if defined(USE_BUILDLINK_ONLY)
-.include "../../x11/qt2-libs/buildlink.mk"
-.endif
diff --git a/x11/kde2/buildlink.mk b/x11/kde2/buildlink.mk
new file mode 100644
index 00000000000..c25c9702383
--- /dev/null
+++ b/x11/kde2/buildlink.mk
@@ -0,0 +1,108 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/11/13 21:08:56 jlam Exp $
+#
+# This Makefile fragment is included by packages that use the KDE2
+# configure-and-build process.
+#
+# To use this Makefile fragment, simply include this Makefile fragment in
+# the package Makefile.
+#
+# The buildlink strategy with KDE2 packages is:
+#
+# * pass UIC to the configure script, as most of the KDE2 packages need
+# the path to the QT2 uic to build.
+#
+# * 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-2.x, and KDE-2.x libraries.
+#
+# * pass KDEDIR and a hand-crafted ac_cv_have_kde to the configure
+# script, where KDEDIR contains the installed location of KDE,
+# and ac_cv_have_kde contains the buildlinked location of KDE; this
+# makes the KDE configure script install other KDE software in
+# ${KDEDIR}, but build against the libraries in ${BUILDLINK_DIR}.
+#
+# * override kde_libraries at build-time; the configure script will set
+# it to point into the buildlink directory and will add the correct
+# linker flags to find the KDE2 libraries in the buildlink directory,
+# but we need to point it to the actual install location of the KDE
+# libraries so that the build may find the libtool archives.
+#
+# We pass the following values via options to the configure script:
+#
+# * datadir is where all of the KDE2 data files go
+# * qt-dir is the location of QT2 for build purposes
+# * extra-includes is where headers for dependencies may be found;
+# since we're using the buildlink infrastructure, this should contain
+# ${BUILDLINK_DIR} and ${BUILDLINK_X11_DIR}.
+#
+# 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 need different directories for -R/-L and we can 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.
+
+.if !defined(KDE2_BUILDLINK_MK)
+KDE2_BUILDLINK_MK= # defined
+
+# All KDE2 packages satisfy the requirements for USE_X11BASE. This also
+# forces all KDE2 packages to have a common installation prefix.
+#
+USE_X11BASE= YES
+
+# Default values so that even if the package using this file is not
+# buildlinkified, there are sensible values for finding the KDE2 and Qt2
+# headers and libraries.
+#
+KDEDIR?= ${X11PREFIX}
+QTDIR?= ${X11PREFIX}
+BUILDLINK_KDEDIR?= ${KDEDIR}
+BUILDLINK_QTDIR?= ${QTDIR}
+
+.if defined(GNU_CONFIGURE)
+CONFIGURE_ARGS+= --datadir="${KDEDIR}/share/kde"
+CONFIGURE_ARGS+= --with-qt-dir="${BUILDLINK_QTDIR}"
+CONFIGURE_ARGS+= --with-extra-includes="${_KDE2_EXTRA_INCLUDES}"
+CONFIGURE_ARGS+= --disable-rpath
+
+CONFIGURE_ENV+= UIC="${QTDIR}/bin/uic"
+CONFIGURE_ENV+= USER_LDFLAGS="${LDFLAGS}"
+CONFIGURE_ENV+= ac_cv_have_kde="${_KDE2_AC_CV_HAVE_KDE}"
+LDFLAGS+= -L${BUILDLINK_QTDIR}/lib
+
+MAKE_FLAGS+= kde_libraries="${KDEDIR}/lib"
+MAKE_ENV+= AM_MAKEFLAGS="${MAKE_FLAGS}"
+
+_KDE2_EXTRA_INCLUDES?= ${BUILDLINK_DIR}/include:${BUILDLINK_X11_DIR}/include
+_KDE2_AC_CV_HAVE_KDE?= have_kde=yes \
+ ac_kde_includes=${BUILDLINK_KDEDIR}/include \
+ ac_kde_libraries=${BUILDLINK_KDEDIR}/lib
+
+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_bindir="${KDEDIR}/bin"
+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"
+CONFIGURE_ENV+= kde_locale="${KDEDIR}/share/kde/locale"
+CONFIGURE_ENV+= kde_mimedir="${KDEDIR}/share/kde/mimelnk"
+#CONFIGURE_ENV+= kde_moduledir="${KDEDIR}/lib/kde2"
+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"
+.endif # GNU_CONFIGURE
+.endif # KDE2_BUILDLINK_MK