| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.140 2008/08/27 12:02:31 markd Exp $ | | 1 | # $NetBSD: Makefile,v 1.140.8.1 2009/06/18 08:54:21 tron Exp $ |
2 | | | 2 | |
3 | DISTNAME= kdelibs-${_KDE_VERSION} | | 3 | DISTNAME= kdelibs-${_KDE_VERSION} |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= x11 | | 5 | CATEGORIES= x11 |
5 | COMMENT= Support libraries for the KDE integrated X11 desktop | | 6 | COMMENT= Support libraries for the KDE integrated X11 desktop |
6 | | | 7 | |
7 | PKG_DESTDIR_SUPPORT= user-destdir | | 8 | PKG_DESTDIR_SUPPORT= user-destdir |
8 | | | 9 | |
9 | .include "../../meta-pkgs/kde3/Makefile.kde3" | | 10 | .include "../../meta-pkgs/kde3/Makefile.kde3" |
10 | | | 11 | |
11 | CONFLICTS+= koffice3<=1.1.1 | | 12 | CONFLICTS+= koffice3<=1.1.1 |
12 | CONFLICTS= kdelibs4-[0-9]* | | 13 | CONFLICTS= kdelibs4-[0-9]* |
13 | | | 14 | |
14 | USE_TOOLS+= iceauth:run perl:run pkg-config | | 15 | USE_TOOLS+= iceauth:run perl:run pkg-config |
15 | | | 16 | |
16 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/menus | | 17 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/menus |
| @@ -47,29 +48,32 @@ SUBST_FILES.kdelibsfix= \ | | | @@ -47,29 +48,32 @@ SUBST_FILES.kdelibsfix= \ |
47 | kdecore/ktimezones.cpp \ | | 48 | kdecore/ktimezones.cpp \ |
48 | kdeui/ksconfig.cpp \ | | 49 | kdeui/ksconfig.cpp \ |
49 | kio/kssl/kopenssl.cc | | 50 | kio/kssl/kopenssl.cc |
50 | SUBST_SED.kdelibsfix= -e 's:@LOCALBASE@:${LOCALBASE}:g' | | 51 | SUBST_SED.kdelibsfix= -e 's:@LOCALBASE@:${LOCALBASE}:g' |
51 | SUBST_SED.kdelibsfix+= -e 's:@PKGLOCALEDIR@:${PKGLOCALEDIR}:g' | | 52 | SUBST_SED.kdelibsfix+= -e 's:@PKGLOCALEDIR@:${PKGLOCALEDIR}:g' |
52 | | | 53 | |
53 | SUBST_CLASSES+= kdemagic | | 54 | SUBST_CLASSES+= kdemagic |
54 | SUBST_STAGE.kdemagic= pre-configure | | 55 | SUBST_STAGE.kdemagic= pre-configure |
55 | SUBST_MESSAGE.kdemagic= Add LOCALBASE paths to magic file. | | 56 | SUBST_MESSAGE.kdemagic= Add LOCALBASE paths to magic file. |
56 | SUBST_FILES.kdemagic= kio/magic | | 57 | SUBST_FILES.kdemagic= kio/magic |
57 | SUBST_SED.kdemagic= -n -e 'p' -e 's:/usr/local/bin:${LOCALBASE}/bin:p' | | 58 | SUBST_SED.kdemagic= -n -e 'p' -e 's:/usr/local/bin:${LOCALBASE}/bin:p' |
58 | | | 59 | |
59 | SPECIAL_PERMS+= ${PREFIX}/bin/fileshareset ${SETUID_ROOT_PERMS} | | 60 | SPECIAL_PERMS+= ${PREFIX}/bin/fileshareset ${SETUID_ROOT_PERMS} |
60 | SPECIAL_PERMS+= ${PREFIX}/bin/kgrantpty ${SETUID_ROOT_PERMS} | | | |
61 | SPECIAL_PERMS+= ${PREFIX}/bin/kpac_dhcp_helper ${SETUID_ROOT_PERMS} | | 61 | SPECIAL_PERMS+= ${PREFIX}/bin/kpac_dhcp_helper ${SETUID_ROOT_PERMS} |
62 | | | 62 | |
| | | 63 | # ${SETUID_ROOT_PERMS} doesn't work here because the locate() method used to |
| | | 64 | # find the path to the kgrantpty expects it to have read permissions set. |
| | | 65 | SPECIAL_PERMS+= ${PREFIX}/bin/kgrantpty ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 4555 |
| | | 66 | |
63 | .include "options.mk" | | 67 | .include "options.mk" |
64 | | | 68 | |
65 | PLIST_VARS+= kded | | 69 | PLIST_VARS+= kded |
66 | .if ${OPSYS} == "NetBSD" | | 70 | .if ${OPSYS} == "NetBSD" |
67 | . if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*} | | 71 | . if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*} |
68 | # nothing | | 72 | # nothing |
69 | . else | | 73 | . else |
70 | PLIST.kded= yes | | 74 | PLIST.kded= yes |
71 | . endif | | 75 | . endif |
72 | # make sure zone.tab is installed | | 76 | # make sure zone.tab is installed |
73 | DEPENDS+= zonetab-[0-9]*:../../time/zonetab | | 77 | DEPENDS+= zonetab-[0-9]*:../../time/zonetab |
74 | .else | | 78 | .else |
75 | PLIST.kded= yes | | 79 | PLIST.kded= yes |