summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2004-02-12 04:57:07 +0000
committermarkd <markd@pkgsrc.org>2004-02-12 04:57:07 +0000
commit9b65f93dd923aa023c35990c08fc6c45e15ce7e3 (patch)
treeed0d029cdf4d2d2f6343df71136b8bfe8712b333 /x11
parent393e6ef181637f9a5b49a8fba070e682e70abae2 (diff)
downloadpkgsrc-9b65f93dd923aa023c35990c08fc6c45e15ce7e3.tar.gz
Conditionalise some bits of PLIST for parts that arent built when using
some older X11 versions. Should fix both Al's and Krister Walfridsson's bulk build problems.
Diffstat (limited to 'x11')
-rw-r--r--x11/kdebase3/Makefile23
-rw-r--r--x11/kdebase3/PLIST28
2 files changed, 36 insertions, 15 deletions
diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile
index d0d9015b04f..aa2c686ef6f 100644
--- a/x11/kdebase3/Makefile
+++ b/x11/kdebase3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2004/02/04 14:25:58 markd Exp $
+# $NetBSD: Makefile,v 1.40 2004/02/12 04:57:07 markd Exp $
DISTNAME= kdebase-3.2.0
CATEGORIES= x11
@@ -72,6 +72,27 @@ PLIST_SUBST+= KCMKEYBOARD="kcm_keyboard.a"
PLIST_SUBST+= KCMKEYBOARD="kcm_keyboard.so"
.endif
+.if ${OPSYS} == "NetBSD" && !exists(${X11BASE}/lib/libfontenc.so)
+PLIST_SUBST+= FONTENC_SUFFIX=".a"
+.else
+PLIST_SUBST+= FONTENC_SUFFIX=".so"
+.endif
+
+.if exists(${X11BASE}/include/X11/extensions/Xrandr.h)
+HAVE_RANDR!= ${GREP} XRRSetScreenConfigAndRateX ${X11BASE}/include/X11/extensions/Xrandr.h; ${ECHO}
+.endif
+.if !empty(HAVE_RANDR)
+PLIST_SUBST+= HAVE_RANDR=""
+.else
+PLIST_SUBST+= HAVE_RANDR="@comment "
+.endif
+
+.if exists(${X11BASE}/lib/libXcursor.so)
+PLIST_SUBST+= HAVE_XCURSOR=""
+.else
+PLIST_SUBST+= HAVE_XCURSOR="@comment "
+.endif
+
ICONDIR= share/kde/icons
# Several programs need to be setuid-root, but due to the way that KDE3
diff --git a/x11/kdebase3/PLIST b/x11/kdebase3/PLIST
index 143fdebe2ec..97a5b6c2244 100644
--- a/x11/kdebase3/PLIST
+++ b/x11/kdebase3/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2004/02/04 14:25:58 markd Exp $
+@comment $NetBSD: PLIST,v 1.14 2004/02/12 04:57:07 markd Exp $
bin/appletproxy
bin/drkonqi
bin/extensionproxy
@@ -46,7 +46,7 @@ bin/kpersonalizer
bin/kpm
bin/kprinter
bin/krandom.kss
-bin/krandrtray
+${HAVE_RANDR}bin/krandrtray
bin/krdb
bin/kreadconfig
bin/krootimage
@@ -141,8 +141,8 @@ lib/kde3/childpanel_panelextension.so.0
lib/kde3/childpanel_panelextension.so.0.0
lib/kde3/clock_panelapplet.la
lib/kde3/clock_panelapplet.so
-lib/kde3/cursorthumbnail.la
-lib/kde3/cursorthumbnail.so
+${HAVE_XCURSOR}lib/kde3/cursorthumbnail.la
+${HAVE_XCURSOR}lib/kde3/cursorthumbnail.so
lib/kde3/djvuthumbnail.la
lib/kde3/djvuthumbnail.so
lib/kde3/dockbar_panelextension.la
@@ -194,7 +194,7 @@ lib/kde3/kcm_fileshare.so
lib/kde3/kcm_filetypes.la
lib/kde3/kcm_filetypes.so
lib/kde3/kcm_fontinst.la
-lib/kde3/kcm_fontinst.so
+lib/kde3/kcm_fontinst.${FONTENC_SUFFIX}
lib/kde3/kcm_fonts.la
lib/kde3/kcm_fonts.so
lib/kde3/kcm_history.la
@@ -251,8 +251,8 @@ lib/kde3/kcm_printmgr.la
lib/kde3/kcm_printmgr.so
lib/kde3/kcm_privacy.la
lib/kde3/kcm_privacy.so
-lib/kde3/kcm_randr.la
-lib/kde3/kcm_randr.so
+${HAVE_RANDR}lib/kde3/kcm_randr.la
+${HAVE_RANDR}lib/kde3/kcm_randr.so
lib/kde3/kcm_samba.la
lib/kde3/kcm_samba.so
lib/kde3/kcm_screensaver.la
@@ -282,7 +282,7 @@ lib/kde3/kdesktop.so
lib/kde3/keditbookmarks.la
lib/kde3/keditbookmarks.so
lib/kde3/kfile_font.la
-lib/kde3/kfile_font.so
+lib/kde3/kfile_font.${FONTENC_SUFFIX}
lib/kde3/kfmclient.la
lib/kde3/kfmclient.so
lib/kde3/kgreet_classic.la
@@ -316,7 +316,7 @@ lib/kde3/kio_fish.so
lib/kde3/kio_floppy.la
lib/kde3/kio_floppy.so
lib/kde3/kio_fonts.la
-lib/kde3/kio_fonts.so
+lib/kde3/kio_fonts.${FONTENC_SUFFIX}
lib/kde3/kio_imap4.la
lib/kde3/kio_imap4.so
lib/kde3/kio_info.la
@@ -471,8 +471,8 @@ lib/kde3/taskbar_panelextension.la
lib/kde3/taskbar_panelextension.so
lib/kde3/textthumbnail.la
lib/kde3/textthumbnail.so
-lib/krandrinithack.la
-lib/krandrinithack.so
+${HAVE_RANDR}lib/krandrinithack.la
+${HAVE_RANDR}lib/krandrinithack.so
lib/libkateinterfaces.la
lib/libkateinterfaces.so
lib/libkateinterfaces.so.0
@@ -629,7 +629,7 @@ share/applications/kde/konsole.desktop
share/applications/kde/konsolesu.desktop
share/applications/kde/kpager.desktop
share/applications/kde/kpersonalizer.desktop
-share/applications/kde/krandrtray.desktop
+${HAVE_RANDR}share/applications/kde/krandrtray.desktop
share/applications/kde/ksplashthememgr.desktop
share/applications/kde/ksysguard.desktop
share/applications/kde/ktip.desktop
@@ -1211,7 +1211,7 @@ share/kde/applnk/.hidden/kwinadvanced.desktop
share/kde/applnk/.hidden/kwinfocus.desktop
share/kde/applnk/.hidden/kwinmoving.desktop
share/kde/applnk/.hidden/power.desktop
-share/kde/applnk/.hidden/randr.desktop
+${HAVE_RANDR}share/kde/applnk/.hidden/randr.desktop
share/kde/applnk/.hidden/smb.desktop
share/kde/applnk/.hidden/socks.desktop
share/kde/applnk/.hidden/virtualdesktops.desktop
@@ -3208,7 +3208,7 @@ share/kde/services/ar.protocol
share/kde/services/bzip.protocol
share/kde/services/bzip2.protocol
share/kde/services/cgi.protocol
-share/kde/services/cursorthumbnail.desktop
+${HAVE_XCURSOR}share/kde/services/cursorthumbnail.desktop
share/kde/services/djvuthumbnail.desktop
share/kde/services/finger.protocol
share/kde/services/fish.protocol