blob: 63b0013cb078dc62de7af56f6b504e06afd0da92 (
plain)
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
119
120
|
# $NetBSD: Makefile,v 1.19 2003/01/17 03:20:58 markd Exp $
DISTNAME= kdelibs-3.0.5a
CATEGORIES= x11
COMMENT= Support libraries for the KDE integrated X11 desktop
.include "../../x11/kde3/Makefile.kde3"
CONFLICTS+= koffice3<=1.1.1
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= \
kio/proxytype.pl \
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
.else
PLIST_SUBST+= KDED_WORKAROUND=""
.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 egcs and gcc-2.95.3 for:
# XXX
# XXX alpha and sparc
# XXX
# XXX has an optimization bug when compiling with -O2 that is tickled by
# XXX ${WRKSRC}/kio/kio/global.cpp
# XXX ${WRKSRC}/kdeprint/management/kmiconview.cpp.
# XXX and others
#
.if ${OPSYS} == "NetBSD"
. if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc")
CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]*/-O/g}
CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O/g}
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
. endif
.endif
|