aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kdelibs4/Makefile
blob: ea528049d457067998f5ed2a6cc23e4ad4634402 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Created by: arved@FreeBSD.org
# $FreeBSD$

PORTNAME=   kdelibs
PORTVERSION=    ${KDE4_VERSION}
PORTREVISION=   1
CATEGORIES= x11 kde
MASTER_SITES=   KDE/${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR=    KDE/${PORTVERSION}

MAINTAINER= kde@FreeBSD.org
COMMENT=    Base set of libraries needed by KDE programs

LIB_DEPENDS=    libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
        libjasper.so:${PORTSDIR}/graphics/jasper \
        libpcre.so:${PORTSDIR}/devel/pcre \
        libavahi-core.so:${PORTSDIR}/net/avahi-app \
        libenchant.so:${PORTSDIR}/textproc/enchant \
        libgif.so:${PORTSDIR}/graphics/giflib \
        libpng15.so:${PORTSDIR}/graphics/png \
        libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libhal.so:${PORTSDIR}/sysutils/hal \
        libqca.so:${PORTSDIR}/devel/qca \
        libHUpnp.so:${PORTSDIR}/net/hupnp \
        libpolkit-qt-core-1.so:${PORTSDIR}/sysutils/polkit-qt \
        libdbusmenu-qt.so:${PORTSDIR}/devel/libdbusmenu-qt \
        libgrantlee_gui.so:${PORTSDIR}/devel/grantlee

BUILD_DEPENDS=  ${LOCALBASE}/share/xml/docbook/4.2:${PORTSDIR}/textproc/docbook-xml \
        ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl

RUN_DEPENDS=    ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme \
        xauth:${PORTSDIR}/x11/xauth \
        ${LOCALBASE}/share/xml/docbook/4.2:${PORTSDIR}/textproc/docbook-xml \
        ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl

USE_GNOME=  libxml2 libxslt
USE_KDE4=   kdehier kdeprefix oxygen \
        attica automoc4 ontologies soprano strigi
USES=       cmake:outsource fam gettext perl5 shared-mime-info shebangfix tar:xz
USE_OPENSSL=    yes
USE_QT4=    corelib dbus declarative designer_build gui \
        network opengl phonon qt3support \
        qtestlib script sql svg webkit xml \
        moc_build qmake_build rcc_build uic_build \
        imageformats_run qdbusviewer_run
USE_XORG=   sm x11 xcursor xext xfixes xft xpm xrender xtst
USE_LDCONFIG=   yes
MAKE_ENV=   XDG_CONFIG_HOME=/dev/null

CMAKE_ARGS+=    -DWITH_ACL:BOOL=Off \
        -DWITH_FAM:BOOL=On \
        -DWITH_ASPELL:BOOL=Off \
        -DWITH_HSPELL:BOOL=Off \
        -DWITH_UDev:BOOL=Off \
        -DHUPNP_ENABLED:BOOL=On \
        -DKDE_DISTRIBUTION_TEXT:STRING="${OPSYS}" \
        -DKDE_DEFAULT_HOME:STRING=".kde4"

SHEBANG_FILES=  kdecore/kconfig_compiler/checkkcfg.pl \
        kdeui/preparetips \
        khtml/bindings/scripts/generate-bindings.pl \
        kio/misc/fileshareset \
        kioslave/http/kcookiejar/kcookiescfg.pl

OPTIONS_DEFAULT=    MDNSRESPONDER
OPTIONS_SINGLE=     ZEROCONF
OPTIONS_SINGLE_ZEROCONF=    AVAHI MDNSRESPONDER
AVAHI_LIB_DEPENDS=  libdns_sd.so:${PORTSDIR}/net/avahi-libdns
MDNSRESPONDER_LIB_DEPENDS=  libdns_sd.so:${PORTSDIR}/net/mDNSResponder

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 900004
LIB_DEPENDS+=   libutempter.so:${PORTSDIR}/sysutils/libutempter
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-ConfigureChecks.cmake
.endif

post-patch:
    ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
        ${PATCH_WRKSRC}/kde3support/kdeui/k3sconfig.cpp \
        ${PATCH_WRKSRC}/kdecore/network/k3socks.cpp \
        ${PATCH_WRKSRC}/kdecore/kernel/kstandarddirs.cpp \
        ${PATCH_WRKSRC}/kdeui/dialogs/kcupsoptionswidget_p.cpp \
        ${PATCH_WRKSRC}/kdeui/kernel/start-session-bus.sh \
        ${PATCH_WRKSRC}/kio/kssl/kopenssl.cpp \
        ${PATCH_WRKSRC}/kio/kio/ksambashare.cpp \
        ${PATCH_WRKSRC}/kjsembed/qtonly/FindQJSInternal.cmake
# Fix rgb named colors database path.
    ${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
        ${PATCH_WRKSRC}/kdeui/colors/kcolordialog.cpp

pre-configure:
    ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
             -e 's|/usr/X11R6|${LOCALBASE}|g' \
        ${PATCH_WRKSRC}/cmake/modules/*.cmake \
        ${PATCH_WRKSRC}/ConfigureChecks.cmake \
        ${PATCH_WRKSRC}/doc/api/doxygen.sh
    ${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|g' \
        ${PATCH_WRKSRC}/cmake/modules/FindDNSSD.cmake
    ${REINPLACE_CMD} -e 's|soprano/cmake|cmake/Modules|g' \
        ${PATCH_WRKSRC}/cmake/modules/FindSoprano.cmake
# FindBerkeleyDB.cmake should be rewritten to support multiple version
# provided by ports, instead of hardcoding one of them
#   ${REINPLACE_CMD} -e 's|/usr/local/include/db4|${BDB_INCLUDE_DIR}|' \
#       -e 's|NAMES db|NAMES ${BDB_LIB_NAME} ${LOCALBASE}/lib|' \
#       ${PATCH_WRKSRC}/cmake/modules/FindBerkeleyDB.cmake
# When XSync (xext) is found, xscreensaver is just used as a fallback,
# then we can disable it.
    ${REINPLACE_CMD} -e '/macro_bool_to_01/ s|^.*X11_Xscreensaver.*$$|set(HAVE_XSCREENSAVER 0)|' \
        ${PATCH_WRKSRC}/CMakeLists.txt

post-install:
# workaround for non-standard mime files and directories
    ${MKDIR} ${STAGEDIR}/${PREFIX}/share/mime/all \
        ${STAGEDIR}/${PREFIX}/share/mime/uri

.include <bsd.port.post.mk>
00'>2003-02-212-1/+1 * De-pkg-comment.knu2003-02-214-2/+2 * Finish repo copy move from misc category: link to buildlioux2003-01-291-0/+2 * Update to KDE 3.1 releaselioux2003-01-298-264/+2214 * Fix dependency: editors/openoffice-pt -> portuguese/openofficelioux2002-12-092-2/+2 * Finish repo copy move: remove from old category, link into new, addlioux2002-12-071-0/+1 * Finish repo copy move: remove from old category, link into new, addlioux2002-12-071-0/+4 * After repo copy to newly created portuguese category, update alllioux2002-12-066-11/+15 * BROKEN: Does not build on 5.0kris2002-12-021-1/+7 * Remove www as secondary category. It is redundant in the slave port since mas...lioux2002-11-272-2/+2 * o Make PKGNAMEPREFIX language variant specific (i.e., pt_BR)lioux2002-11-272-4/+4 * added webalizer slave-ports.dinoex2002-11-243-0/+34 * Move br-ispell to portuguese category as ispell-pt_BR after repolioux2002-11-221-0/+1 * Update with appropriate info for portuguese category after repolioux2002-11-221-2/+3 * Repo-move textproc/pt-aspell to portuguese/aspell.knu2002-11-223-5/+7 * Set the default value of PKGNAMEPREFIX to "pt-".knu2002-11-181-0/+4 * Add several new real categories.knu2002-11-181-0/+5 * Add several new real categories.knu2002-11-181-0/+1 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-114-4/+2 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-074-2/+4 * The release notes say:trevor2002-10-151-0/+3 * I remove the linux-netscape6 ports from ports/french, ports/german,trevor2002-10-145-48/+52 * 1. Removed comments from pkg-plist files per will's request.alane2002-10-114-4/+4 * build aspell with dictionarydinoex2002-09-106-0/+46 * Update to 3.0.3. Not much changed here: [1] i18n PKGNAMEs converted towill2002-08-258-16/+12 * Add OpenOffice.org spelling dictionary ports. They are based on MySpell,mbr2002-08-126-2/+38 * 1. Changed the lib depends on gettext to a build depends. This will meanalane2002-08-034-8/+8 * Bump PORTREVISION. KDE is fragile enough in its dependencies; we don'talane2002-08-024-0/+4 * Chase shlib rev of devel/gettextade2002-08-024-4/+4 * Add support for spelling dictionaries. Remove the pkg-plist for thembr2002-07-162-0/+2 * Fix MASTER_SITE_SUBDIR.will2002-07-104-4/+4 * Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-0512-234/+22 * Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-1612-12/+78 * Add Portuguese OpenOffice slave portmbr2002-06-154-0/+32 * Remove some unused code.trevor2002-05-231-7/+1 * Update to 6.2.3. Belatedly, I confirmed that 6.2.2 supportstrevor2002-05-172-14/+15