openbsd-ports/x11/kde/libs3/Makefile
2006-10-12 23:12:18 +00:00

116 lines
2.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.71 2006/10/12 23:12:19 espie Exp $
COMMENT= "K Desktop Environment, libraries"
COMMENT-cups= "K Desktop Environment, cups support"
CATEGORIES= x11 x11/kde
VERSION= 3.5.5
DISTNAME= kdelibs-${VERSION}
MASTER_SITES0= ftp://ftp.kde.org/pub/kde/security_patches/
#PATCHFILES= post-3.4.3-kdelibs-kjs.diff:0
PKGNAME= ${DISTNAME}
PKGNAME-cups= kdecups-${VERSION}
MODKDE_VERSION?= 3.5.3
SHARED_LIBS= DCOP 7.0 \
artskde 4.0 \
kabc 4.0 \
kabc_dir 2.0 \
kabc_file 2.0 \
kabc_ldapkio 2.0 \
kabc_net 2.0 \
katepartinterfaces 1.0 \
kdecore 7.0 \
kdefakes 7.0 \
kdefx 7.0 \
kdeprint 7.0 \
kdeprint_management 7.0 \
kdesasl 4.0 \
kdesu 7.0 \
kdeui 7.0 \
kdnssd 2.0 \
khtml 7.0 \
kimproxy 1.0 \
kio 7.0 \
kjava 2.0 \
kjs 4.0 \
kmdi 2.0 \
kmdi2 2.0 \
kmediaplayer 1.0 \
kmid 1.0 \
knewstuff 2.0 \
kntlm 1.0 \
kparts 4.0 \
kresources 4.0 \
kscreensaver 7.0 \
kscript 1.0 \
kspell 7.0 \
kspell2 2.0 \
ktexteditor 1.0 \
kunittest 2.0 \
kutils 4.0 \
kwalletbackend 2.0 \
kwalletclient 2.0 \
vcard 1.0
FLAVORS=debug
VMEM_WARNING= Yes
MULTI_PACKAGES= -cups
CONFIGURE_ARGS+= --enable-cups
SUBPACKAGE?=
BUILD_DEPENDS+= ::devel/pkgconfig
LIB_DEPENDS+= art_lgpl_2::graphics/libart
LIB_DEPENDS+= idn::devel/libidn
WANTLIB+= intl iconv util jpeg m X11 ICE Xrender c SM pthread \
stdc++ Xext z png
.if !defined(PACKAGING) || ${SUBPACKAGE:L} == ""
LIB_DEPENDS+= artsflow.>=1.0,artsflow_idl,qtmcop,soundserver_idl,mcop,kmedia2_idl::x11/kde/arts3 \
pcreposix,pcre::devel/pcre \
xslt.>=1.10:libxslt->=1.0.10:textproc/libxslt \
bz2::archivers/bzip2 \
tiff.>=35::graphics/tiff \
jasper::graphics/jasper
WANTLIB+= audiofile esd glib-2.0 \
gmodule-2.0 gthread-2.0 mad ogg \
ossaudio vorbisenc vorbis vorbisfile \
xml2 krb5 gssapi crypto asn1
LIB_DEPENDS+= Half,Iex,Imath,IlmImf::graphics/openexr \
aspell::textproc/aspell/core
RUN_DEPENDS+= ::x11/hicolor-icon-theme
.endif
.if !defined(PACKAGING) || ${SUBPACKAGE:L} == "-cups"
LIB_DEPENDS+= cups::print/cups
WANTLIB+= gcrypt gnutls gpg-error
.endif
.if defined(PACKAGING) && ${SUBPACKAGE:L} == "-cups"
LIB_DEPENDS+= kdecore.>=6,kwalletclient,kdefakes,kdefx,kdeprint,kio,kparts,kdeui,kdesu,kdeprint_management,DCOP::x11/kde/libs3
.endif
SEPARATE_BUILD= flavored
SAMPLECONFDIR=${TRUEPREFIX}/share/apps/kde-conf-sample
EXTRA_CONFIG=xdg/menus/applications.menu
FAKE_FLAGS=DESTDIR=${WRKINST} sysconfdir=${SAMPLECONFDIR}
post-extract:
cp ${FILESDIR}/krb5-config ${WRKDIR}/bin
chmod a+x ${WRKDIR}/bin/krb5-config
post-install:
${INSTALL_PROGRAM} ${WRKBUILD}/libtool ${PREFIX}/bin/kdelibtool
USE_LIBTOOL=Yes
LIBTOOL_FLAGS=--tag=disable-static
.include <bsd.port.mk>
MODGNU_AUTOCONF_FILES+= dcop/dcop-path.h.in