blob: b8db29c0fa07eb344996e190bc1bfb3b3e338528 (
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
|
# New ports collection Makefile for: kdeartwork
# Date created: 2008-01-31
# Whom: Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= kdeartwork
PORTVERSION= ${KDE4_VERSION}
PORTREVISION= 1
CATEGORIES= x11-themes kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= KDE Artworks Themes
LIB_DEPENDS= kexiv2.10:${PORTSDIR}/graphics/libkexiv2-kde4
BUILD_DEPENDS= eigen>=2.0.b1:${PORTSDIR}/math/eigen2
CONFLICTS= kdeaccessibility-4.[0-6].* kdebase-workspace-4.5.[0-5]
LATEST_LINK= ${PORTNAME}4
USE_BZIP2= yes
USE_KDE4= automoc4 kdehier kdelibs kdeprefix workspace
KDE4_BUILDENV= yes
USE_QT_VER= 4
QT_COMPONENTS= gui opengl \
moc_build qmake_build rcc_build uic_build
USE_XORG= x11 xt
MAKE_JOBS_SAFE= yes
OPTIONS= GNOME "Use Gnome screensavers" off
.include <bsd.port.options.mk>
.if defined(WITH_GNOME)
BUILD_DEPENDS+= ${LOCALBASE}/share/applications/xscreensaver-properties.desktop:${PORTSDIR}/x11/xscreensaver-gnome
RUN_DEPENDS+= ${LOCALBASE}/share/applications/xscreensaver-properties.desktop:${PORTSDIR}/x11/xscreensaver-gnome
.else
BUILD_DEPENDS+= xscreensaver:${PORTSDIR}/x11/xscreensaver
RUN_DEPENDS+= xscreensaver:${PORTSDIR}/x11/xscreensaver
.endif
post-patch:
${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}|g' \
-e 's|/usr/share|${LOCALBASE}/share|g' \
${PATCH_WRKSRC}/cmake/modules/FindXscreensaver.cmake
.for item in kscreensaver/kdesavers/banner.cpp
${REINPLACE_CMD} -e 's|<qlabel.h>|<QLabel>|'\
-e 's|<qlineedit.h>|<QLineEdit>|'\
-e 's|<qcombobox.h>|<QComboBox>|'\
-e 's|<qcheckbox.h>|<QCheckBox>|'\
-e 's|<qslider.h>|<QSlider>|'\
-e 's|<qlayout.h>|<QLayout>|'\
-e 's|<qdatetime.h>|<QDateEdit>|'\
-e 's|<qfontdatabase.h>|<QFontDatabase>|'\
-e 's|<qpainter.h>|<QPainter>|'\
-e 's|<qfontcombobox.h>|<QFontComboBox>|' \
${PATCH_WRKSRC}/${item}
.endfor
.for item in kscreensaver/kdesavers/banner.h kscreensaver/kdesavers/blob.h\
kscreensaver/kdesavers/Euphoria.cpp
${REINPLACE_CMD} -e 's|<qtimer.h>|<QTimer>|'\
${PATCH_WRKSRC}/${item}
.endfor
.for item in kscreensaver/kdesavers/blob.cpp
${REINPLACE_CMD} -e 's|<qcolor.h>|<QColor>|'\
-e 's|<qlabel.h>|<QLabel>|'\
-e 's|<qlayout.h>|<QLayout>|'\
-e 's|<qpainter.h>|<QPainter>|'\
-e 's|<qpixmap.h>|<QPixmap>|'\
-e 's|<qimage.h>|<QImage>|' \
${PATCH_WRKSRC}/${item}
.endfor
.include <bsd.port.mk>
|