d6aa01791f
* Checking the gcc version is unnecessary when using gcc/buildlink2.mk" * buildlink2 allows the configure script to detect xml-config on its own; we don't need to tell the script where it is through XML_CONFIG=...
113 lines
3 KiB
Makefile
113 lines
3 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2002/10/01 19:28:34 jlam Exp $
|
|
|
|
DISTNAME= kdelibs-3.0.3
|
|
PKGREVISION= 1
|
|
CATEGORIES= x11
|
|
COMMENT= Support libraries for the KDE integrated X11 desktop
|
|
|
|
.include "../../x11/kde3/Makefile.kde3"
|
|
|
|
BUILDLINK_DEPENDS.audiofile= libaudiofile>=0.1.9
|
|
BUILDLINK_DEPENDS.qt3-libs= qt3-libs>=3.0.3
|
|
|
|
USE_BUILDLINK2= YES
|
|
USE_CXX= YES
|
|
USE_OPENSSL_VERSION= ${OPENSSL_VERSION_096}
|
|
|
|
CONFIGURE_ARGS+= --with-ssl-dir="${BUILDLINK_PREFIX.openssl}"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
LIBS+= ${EXPORT_SYMBOLS_LDFLAGS}
|
|
.endif
|
|
|
|
KDEDIR= ${PREFIX}
|
|
|
|
REPLACE_PERL= \
|
|
${WRKSRC}/kio/proxytype.pl \
|
|
${WRKSRC}/kio/useragent.pl
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
UNLIMIT_RESOURCES= datasize memorysize
|
|
|
|
.if defined(USE_CUPS) && (${USE_CUPS} == "YES")
|
|
.include "../../print/cups/buildlink2.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
|
|
|
|
# We will create the complete icon directory tree for use by other KDE3
|
|
# 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}
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
. include "../../lang/gcc/buildlink2.mk"
|
|
.endif
|
|
.include "../../archivers/bzip2/buildlink2.mk"
|
|
.include "../../audio/arts/buildlink2.mk"
|
|
.include "../../audio/libaudiofile/buildlink2.mk"
|
|
.include "../../devel/pcre/buildlink2.mk"
|
|
.include "../../graphics/tiff/buildlink2.mk"
|
|
.include "../../lang/perl5/buildlink2.mk"
|
|
.include "../../security/openssl/buildlink2.mk"
|
|
.include "../../textproc/libxml2/buildlink2.mk"
|
|
.include "../../textproc/libxslt/buildlink2.mk"
|
|
.include "../../x11/kde3/buildlink2.mk"
|
|
.include "../../x11/qt3-libs/buildlink2.mk"
|
|
.include "../../mk/ossaudio.buildlink2.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# XXX On NetBSD, the gcc for:
|
|
# XXX
|
|
# XXX alpha
|
|
# XXX
|
|
# XXX has an optimization bug when compiling with -O2 that is tickled by
|
|
# XXX ${WRKSRC}/kdeprint/management/kmiconview.cpp.
|
|
#
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if (${MACHINE_ARCH} == "alpha")
|
|
CFLAGS+= -O
|
|
. endif
|
|
.endif
|