2022-01-10 02:46:21 +01:00
|
|
|
# $NetBSD: Makefile,v 1.129 2022/01/10 01:46:47 ryoon Exp $
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2018-01-17 19:53:25 +01:00
|
|
|
DISTNAME= kdelibs-4.14.38
|
2012-03-19 12:28:48 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/-4/4-4/}
|
2022-01-10 02:46:21 +01:00
|
|
|
PKGREVISION= 26
|
2009-10-02 21:18:56 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
COMMENT= Support libraries for the KDE integrated X11 desktop
|
2018-01-17 19:53:25 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE:=applications/17.08.3/src/}
|
2009-10-02 21:18:56 +02:00
|
|
|
|
|
|
|
#PATCH_SITES= ftp://ftp.kde.org/pub/kde/security_patches/ \
|
|
|
|
# http://mirrors.isc.org/pub/kde/security_patches/
|
|
|
|
#PATCHFILES= post-kde-4.0.3-khtml.diff
|
|
|
|
|
|
|
|
.include "../../meta-pkgs/kde4/Makefile.kde4"
|
|
|
|
|
|
|
|
CONFLICTS= kdelibs-[0-9]*
|
|
|
|
|
|
|
|
# BUILD_MAKE_FLAGS+= VERBOSE=1
|
2014-11-30 04:30:25 +01:00
|
|
|
#CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2019-11-03 10:14:06 +01:00
|
|
|
CMAKE_DEPENDENCIES_REWRITE= _KDE_build/KDELibsDependencies.cmake
|
|
|
|
CMAKE_DEPENDENCIES_REWRITE+= _KDE_build/KDELibsDependenciesInternal.cmake
|
|
|
|
CMAKE_MODULE_PATH_OVERRIDE+= kjsembed/qtonly/CMakeLists.txt
|
2009-10-02 21:18:56 +02:00
|
|
|
|
|
|
|
CMAKE_ARGS+= -DKDE_DISTRIBUTION_TEXT:STRING="NetBSD pkgsrc"
|
|
|
|
CMAKE_ARGS+= -DWITH_Avahi:BOOL=off
|
2014-11-30 04:30:25 +01:00
|
|
|
CMAKE_ARGS+= -DWITH_Soprano:BOOL=off
|
|
|
|
CMAKE_ARGS+= -DWITH_SharedDesktopOntologies:BOOL=off
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2010-11-10 11:14:42 +01:00
|
|
|
CMAKE_ARGS+= -DLIBLZMA_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.xz}/include
|
|
|
|
CMAKE_ARGS+= -DLIBLZMA_LIBRARY:FILEPATH=${BUILDLINK_PREFIX.xz}/lib/liblzma.so
|
|
|
|
|
2009-10-02 21:18:56 +02:00
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/menus
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kdelibs4/applications.menu \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/menus/applications.menu
|
2010-04-11 15:55:49 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde4-dbus/org.kde.auth.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dbus-1/system.d/org.kde.auth.conf
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2011-09-29 21:31:58 +02:00
|
|
|
DEPENDS+= docbook-xml>=4.2:../../textproc/docbook-xml
|
|
|
|
DEPENDS+= docbook-xsl>=1.75:../../textproc/docbook-xsl
|
|
|
|
|
2019-10-22 01:58:04 +02:00
|
|
|
USE_LANGUAGES+= gnu++11
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2019-09-23 16:04:10 +02:00
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man7 ${PKGMANDIR}/man8
|
|
|
|
|
2009-10-02 21:18:56 +02:00
|
|
|
REPLACE_PERL+= \
|
|
|
|
kio/proxytype.pl \
|
|
|
|
kio/useragent.pl \
|
|
|
|
kio/misc/fileshareset \
|
2013-04-03 12:51:43 +02:00
|
|
|
kioslave/http/kcookiejar/kcookiescfg.pl \
|
2020-05-24 22:41:32 +02:00
|
|
|
kdeui/preparetips
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2019-11-03 10:14:06 +01:00
|
|
|
CHECK_PORTABILITY_SKIP+= kate/tests/hl/highlight.sh
|
2009-10-02 21:18:56 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= kdelibsfix
|
|
|
|
SUBST_STAGE.kdelibsfix= pre-configure
|
|
|
|
SUBST_MESSAGE.kdelibsfix= Fixing hardcoded paths.
|
2016-03-11 17:51:33 +01:00
|
|
|
SUBST_FILES.kdelibsfix= kde3support/kdeui/k3sconfig.cpp
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.kdelibsfix= LOCALBASE
|
2012-03-19 12:28:48 +01:00
|
|
|
|
2016-03-11 17:51:33 +01:00
|
|
|
# Avoid the WRKDIR path in the installed cmake file
|
2020-05-19 18:06:01 +02:00
|
|
|
# SUBST BLOCK deleted
|
2009-10-02 21:18:56 +02:00
|
|
|
|
2010-04-10 04:45:02 +02:00
|
|
|
USE_TOOLS+= flex gmake
|
2016-02-19 00:24:45 +01:00
|
|
|
PLIST_VARS+= kgrantpty mac notmac
|
2009-10-02 21:18:56 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2016-02-19 00:24:45 +01:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
PLIST.mac= yes
|
|
|
|
.else
|
|
|
|
PLIST.notmac= yes
|
|
|
|
.endif
|
|
|
|
|
2009-10-02 21:18:56 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
# make sure zone.tab is installed
|
|
|
|
DEPENDS+= zonetab-[0-9]*:../../time/zonetab
|
|
|
|
.endif
|
|
|
|
|
2012-03-31 23:46:55 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
PLIST.kgrantpty= yes
|
|
|
|
.endif
|
|
|
|
|
2013-05-17 23:20:40 +02:00
|
|
|
CFLAGS.SunOS+= -D__EXTENSIONS__
|
2018-02-05 11:56:47 +01:00
|
|
|
LDFLAGS.Darwin+= -lintl
|
2012-03-31 23:46:55 +02:00
|
|
|
LDFLAGS.SunOS+= -lintl
|
|
|
|
|
2016-12-17 15:19:27 +01:00
|
|
|
# jasper uses SIZE_MAX and friends in its headers.
|
|
|
|
CXXFLAGS+= -D__STDC_LIMIT_MACROS
|
2020-08-02 14:49:08 +02:00
|
|
|
CXXFLAGS+= -fpermissive
|
2016-12-17 15:19:27 +01:00
|
|
|
|
2009-10-02 21:18:56 +02:00
|
|
|
BUILDLINK_DEPMETHOD.qt4-tools= full
|
|
|
|
.include "../../meta-pkgs/kde4/kde4.mk"
|
|
|
|
|
2019-11-03 10:14:06 +01:00
|
|
|
BUILDLINK_API_DEPENDS.strigi+= strigi>=0.5.11
|
2014-11-13 11:31:07 +01:00
|
|
|
#BUILDLINK_API_DEPENDS.soprano+= soprano>=2.5.60
|
|
|
|
#BUILDLINK_API_DEPENDS.shared-desktop-ontologies+= shared-desktop-ontologies>=0.10.0
|
2009-10-02 21:18:56 +02:00
|
|
|
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
2010-04-10 04:45:02 +02:00
|
|
|
.include "../../archivers/xz/buildlink3.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../sysutils/strigi/buildlink3.mk"
|
2014-11-13 11:31:07 +01:00
|
|
|
#.include "../../textproc/soprano/buildlink3.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../databases/shared-mime-info/buildlink3.mk"
|
2013-11-07 14:35:56 +01:00
|
|
|
.include "../../devel/grantlee/buildlink3.mk"
|
2012-03-19 12:28:48 +01:00
|
|
|
.include "../../devel/libdbusmenu-qt/buildlink3.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
|
|
|
.include "../../graphics/jasper/buildlink3.mk"
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2014-05-31 17:56:26 +02:00
|
|
|
.include "../../graphics/giflib/buildlink3.mk"
|
2021-07-08 23:32:16 +02:00
|
|
|
#.include "../../graphics/openexr/buildlink3.mk"
|
2010-04-10 04:45:02 +02:00
|
|
|
.include "../../misc/attica/buildlink3.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../multimedia/phonon/buildlink3.mk"
|
|
|
|
|
|
|
|
# Avahi ? rather than mDNSResponder
|
|
|
|
.include "../../net/mDNSResponder/buildlink3.mk"
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2010-04-10 04:45:02 +02:00
|
|
|
.include "../../security/polkit-qt/buildlink3.mk"
|
|
|
|
.include "../../security/qca2/buildlink3.mk"
|
2012-03-19 12:28:48 +01:00
|
|
|
.include "../../mk/fam.buildlink3.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../textproc/aspell/buildlink3.mk"
|
|
|
|
.include "../../textproc/enchant/buildlink3.mk"
|
|
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
|
|
.include "../../textproc/libxslt/buildlink3.mk"
|
2014-11-13 11:31:07 +01:00
|
|
|
#.include "../../textproc/shared-desktop-ontologies/buildlink3.mk"
|
2010-04-10 04:45:02 +02:00
|
|
|
.include "../../x11/libXScrnSaver/buildlink3.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
|
|
.include "../../x11/libXtst/buildlink3.mk"
|
|
|
|
.include "../../mk/krb5.buildlink3.mk"
|
2012-03-19 12:28:48 +01:00
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2009-10-02 21:18:56 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|