133 lines
3.8 KiB
Makefile
133 lines
3.8 KiB
Makefile
# $NetBSD: Makefile,v 1.36 2002/04/10 12:30:23 dmcmahill Exp $
|
|
|
|
DISTNAME= kdelibs-2.2.2
|
|
PKGREVISION= 1
|
|
CATEGORIES= x11
|
|
COMMENT= Support libraries for the KDE integrated X11 desktop
|
|
|
|
.include "../../x11/kde2/Makefile.kde2"
|
|
|
|
BUILDLINK_DEPENDS.libxml2= libxml2>=2.4.8
|
|
BUILDLINK_DEPENDS.audiofile= libaudiofile>=0.1.9
|
|
BUILDLINK_DEPENDS.qt2-libs= qt2-libs>=2.3.1nb2
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
|
USE_OPENSSL_VERSION= ${OPENSSL_VERSION_096}
|
|
|
|
CONFIGURE_ARGS+= --with-ssl-dir="${BUILDLINK_DIR}"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
LIBS+= -Wl,--export-dynamic
|
|
.endif
|
|
|
|
GCC_VERSION!= gcc --version
|
|
.if (${GCC_VERSION:C/-.*$$//} == egcs) && (${MACHINE_ARCH} == alpha)
|
|
.include "../../lang/gcc/Makefile.gcc"
|
|
.endif
|
|
|
|
# Override KDE_INCLUDES and QT_INCLUDES at build-time since their values
|
|
# are used by reference within the kdelibs2 Makefiles
|
|
#
|
|
MAKE_FLAGS+= KDE_INCLUDES="-I${BUILDLINK_DIR}/include"
|
|
MAKE_FLAGS+= QT_INCLUDES="-I${BUILDLINK_QTDIR}/include"
|
|
|
|
# The configure script looks for xml2-config in the environment as
|
|
# ${XML_CONFIG}, not as ${XML2_CONFIG} like it's supposed to.
|
|
#
|
|
CONFIGURE_ENV+= XML_CONFIG="${XML2_CONFIG}"
|
|
KDEDIR= ${PREFIX}
|
|
BUILDLINK_KDEDIR= ${BUILDLINK_DIR}
|
|
|
|
REPLACE_PERL= \
|
|
${WRKSRC}/kio/proxytype.pl \
|
|
${WRKSRC}/kio/useragent.pl
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
UNLIMIT_RESOURCES= datasize
|
|
|
|
.if defined(USE_CUPS) && (${USE_CUPS} == "YES")
|
|
.include "../../print/cups/buildlink.mk"
|
|
BUILD_DEFS+= USE_CUPS
|
|
|
|
PLIST_SUBST+= CUPS=
|
|
.else
|
|
PLIST_SUBST+= CUPS="@comment "
|
|
.endif
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*}
|
|
PLIST_SUBST+= KDED_WORKAROUND="@comment "
|
|
. else
|
|
PLIST_SUBST+= KDED_WORKAROUND=""
|
|
. endif
|
|
.endif
|
|
|
|
# Add a newline to EOF so patch on Solaris succeeds with patch-bk
|
|
|
|
pre-patch:
|
|
${ECHO} "" >> ${WRKSRC}/kio/klauncher/Makefile.am
|
|
|
|
# We will create the complete icon directory tree for use by other KDE2
|
|
# packages at post-install time.
|
|
#
|
|
ICONCOLORS= hicolor locolor
|
|
ICONSIZES= 16x16 22x22 32x32 48x48 64x64
|
|
ICONDIRS= actions/kde actions apps devices filesystems mimetypes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/kde/locale
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if ${OS_VERSION:M1.5.[12]*} || ${OS_VERSION:M1.[0-4]*}
|
|
@${RM} ${PREFIX}/lib/kded.*
|
|
. endif
|
|
.endif
|
|
@( ${CAT} ${PKGDIR}/PLIST; \
|
|
for color in ${ICONCOLORS}; do \
|
|
colordir=share/kde/icons/$${color}; \
|
|
for size in ${ICONSIZES}; do \
|
|
sizedir=$${colordir}/$${size}; \
|
|
for dir in ${ICONDIRS}; do \
|
|
icondir=$${sizedir}/$${dir}; \
|
|
${INSTALL_DATA_DIR} ${PREFIX}/$${icondir}; \
|
|
${ECHO} "@exec ${MKDIR} %D/$${icondir}"; \
|
|
${ECHO} "@dirrm $${icondir}"; \
|
|
done; \
|
|
${ECHO} "@dirrm $${sizedir}"; \
|
|
done; \
|
|
${ECHO} "@dirrm $${colordir}"; \
|
|
done; \
|
|
${ECHO} "@dirrm share/kde/icons"; \
|
|
${ECHO} "@dirrm share/kde"; \
|
|
) > ${PLIST_SRC}
|
|
|
|
.include "../../archivers/bzip2/buildlink.mk"
|
|
.include "../../audio/libaudiofile/buildlink.mk"
|
|
.include "../../devel/pcre/buildlink.mk"
|
|
.include "../../graphics/tiff/buildlink.mk"
|
|
.include "../../lang/perl5/buildlink.mk"
|
|
.include "../../security/openssl/buildlink.mk"
|
|
.include "../../textproc/libxml2/buildlink.mk"
|
|
.include "../../textproc/libxslt/buildlink.mk"
|
|
.include "../../x11/kde2/buildlink.mk"
|
|
.include "../../x11/qt2-libs/buildlink.mk"
|
|
.include "../../mk/ossaudio.buildlink.mk"
|
|
.include "../../mk/x11.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# XXX On NetBSD, the egcs and gcc-2.95.3 for:
|
|
# XXX
|
|
# XXX alpha
|
|
# XXX
|
|
# XXX has an optimization bug when compiling with -O2 that is tickled by
|
|
# XXX ${WRKSRC}/kdeprint/management/kmiconview.cpp.
|
|
# XXX ${WRKSRC}/kdecore/kwinmodule.cpp
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if (${MACHINE_ARCH} == "alpha")
|
|
CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]*//g}
|
|
CFLAGS:= ${CFLAGS:C/-O[0-9]*//g}
|
|
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
|
|
. endif
|
|
.endif
|