Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / kdelibs3 / Makefile
blob66374ed5538fa1cfedd06d0e653f7c3c26971972
1 # $NetBSD: Makefile,v 1.166 2013/02/16 11:19:29 wiz Exp $
3 DISTNAME= kdelibs-${_KDE_VERSION}
4 PKGREVISION= 24
5 CATEGORIES= x11
6 COMMENT= Support libraries for the KDE integrated X11 desktop
8 .include "../../meta-pkgs/kde3/Makefile.kde3"
10 CONFLICTS+= koffice3<=1.1.1
11 CONFLICTS= kdelibs4-[0-9]*
13 USE_TOOLS+= iceauth:run perl:run pkg-config
15 MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/menus
16 CONF_FILES+= ${PREFIX}/share/examples/kdelibs3/applications.menu \
17 ${PKG_SYSCONFDIR}/xdg/menus/applications.menu
19 CONFIGURE_ARGS+= --with-distribution="NetBSD pkgsrc"
20 CONFIGURE_ARGS+= --with-ssl-dir="${BUILDLINK_PREFIX.openssl}"
22 SGML_CATALOGS= ${PREFIX}/share/kde/apps/ksgmltools2/customization/catalog
23 SGML_CATALOGS+= ${PREFIX}/share/kde/apps/ksgmltools2/docbook/xml-dtd-4.1.2/docbook.cat
24 SGML_CATALOGS+= ${PREFIX}/share/kde/apps/ksgmltools2/docbook/xml-dtd-4.2/docbook.cat
26 .include "../../mk/bsd.prefs.mk"
28 LIBS.NetBSD+= ${EXPORT_SYMBOLS_LDFLAGS}
30 REPLACE_PERL+= \
31 dcop/dcopidlng/kalyptus \
32 kio/proxytype.pl \
33 kio/useragent.pl \
34 kio/misc/fileshareset \
35 kdeui/preparetips
37 CHECK_PORTABILITY_SKIP+=kate/tests/highlight.sh
39 UNLIMIT_RESOURCES= datasize memorysize
41 SUBST_CLASSES+= kdelibsfix
42 SUBST_STAGE.kdelibsfix= pre-configure
43 SUBST_MESSAGE.kdelibsfix= Fixing hardcoded paths.
44 SUBST_FILES.kdelibsfix= \
45 kdecore/kstandarddirs.cpp \
46 kdecore/ktimezones.cpp \
47 kdeui/ksconfig.cpp \
48 kio/kssl/kopenssl.cc
49 SUBST_SED.kdelibsfix= -e 's:@LOCALBASE@:${LOCALBASE}:g'
50 SUBST_SED.kdelibsfix+= -e 's:@PKGLOCALEDIR@:${PKGLOCALEDIR}:g'
52 SUBST_CLASSES+= kdemagic
53 SUBST_STAGE.kdemagic= pre-configure
54 SUBST_MESSAGE.kdemagic= Add LOCALBASE paths to magic file.
55 SUBST_FILES.kdemagic= kio/magic
56 SUBST_SED.kdemagic= -n -e 'p' -e 's:/usr/local/bin:${LOCALBASE}/bin:p'
58 SPECIAL_PERMS+= ${PREFIX}/bin/fileshareset ${SETUID_ROOT_PERMS}
59 SPECIAL_PERMS+= ${PREFIX}/bin/kpac_dhcp_helper ${SETUID_ROOT_PERMS}
61 # ${SETUID_ROOT_PERMS} doesn't work here because the locate() method used to
62 # find the path to the kgrantpty expects it to have read permissions set.
63 SPECIAL_PERMS+= ${PREFIX}/bin/kgrantpty ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 4555
65 .include "options.mk"
67 PLIST_VARS+= kded
68 .if ${OPSYS} == "NetBSD"
69 . if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*}
70 # nothing
71 . else
72 PLIST.kded= yes
73 . endif
74 # make sure zone.tab is installed
75 DEPENDS+= zonetab-[0-9]*:../../time/zonetab
76 .else
77 PLIST.kded= yes
78 .endif
80 .include "../../mk/krb5.buildlink3.mk"
81 CONFIGURE_ARGS+= --with-gssapi=yes
83 post-install:
84 .if ${OPSYS} == "NetBSD"
85 . if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*}
86 @${RM} ${PREFIX}/lib/kded.*
87 . endif
88 .endif
90 .if ${MACHINE_ARCH} == "alpha"
91 GCC_REQD+= 2.95
92 .endif
94 .include "../../meta-pkgs/kde3/kde3.mk"
96 .include "../../archivers/bzip2/buildlink3.mk"
97 .include "../../audio/arts/buildlink3.mk"
98 .include "../../audio/libaudiofile/buildlink3.mk"
99 .include "../../devel/libidn/buildlink3.mk"
100 .include "../../devel/pcre/buildlink3.mk"
101 .include "../../graphics/jasper/buildlink3.mk"
102 .include "../../mk/jpeg.buildlink3.mk"
103 .include "../../graphics/libart/buildlink3.mk"
104 .include "../../graphics/openexr/buildlink3.mk"
105 .include "../../graphics/tiff/buildlink3.mk"
106 .include "../../net/mDNSResponder/buildlink3.mk"
107 .include "../../security/openssl/buildlink3.mk"
108 .include "../../textproc/aspell/buildlink3.mk"
109 .include "../../textproc/libxml2/buildlink3.mk"
110 .include "../../textproc/libxslt/buildlink3.mk"
111 .include "../../textproc/xmlcatmgr/catalogs.mk"
112 .include "../../mk/oss.buildlink3.mk"
113 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
115 .include "../../mk/bsd.pkg.mk"
117 # XXX On NetBSD, the egcs and gcc-2.95.3 for:
118 # XXX
119 # XXX alpha and sparc
120 # XXX
121 # XXX has an optimization bug when compiling with -O2 that is tickled by
122 # XXX ${WRKSRC}/kio/kio/global.cpp
123 # XXX ${WRKSRC}/kdeprint/management/kmiconview.cpp.
124 # XXX and others
126 .if ${OPSYS} == "NetBSD"
127 . if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc")
128 CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]*/-O/g}
129 CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O/g}
130 CONFIGURE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
131 CONFIGURE_ENV+= CFLAGS=${CFLAGS:M*:Q}
132 . endif
134 # Configure finds these but apparently they are not ready for primetime
135 # and build will blow up as declarations in netdb.h are not visible
136 CONFIGURE_ENV+= ac_cv_func_getservbyname_r='no'
137 CONFIGURE_ENV+= ac_cv_func_getservbyport_r='no'
138 CONFIGURE_ENV+= ac_cv_func_getprotobyname_r='no'
139 .endif
141 .if ${OPSYS} == "SunOS"
142 # We require use of a recent enough libbz2 to have the BZ2_ prefixes
143 # so force this as configure gets this wrong on Solaris 9
144 CONFIGURE_ENV+= ac_cv_lib_bzip2='no'
145 .endif