freebsd-ports/x11-themes/kdeartwork4/Makefile
Alberto Villa 519877d020 - Detect eigen2 by checking for .pc file, not min. port version.
If a user had eigen3 installed, but not eigen2, the min. port version
check would not differentiate between the two.

Submitted by:	Jason E. Hale <bsdkaffee at gmail.com> via area51
2012-06-27 01:14:01 +00:00

77 lines
2.4 KiB
Makefile

# New ports collection Makefile for: kdeartwork
# Date created: 2008-01-31
# Whom: Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= kdeartwork
PORTVERSION= ${KDE4_VERSION}
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
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:${PORTSDIR}/math/eigen2
CONFLICTS_INSTALL= kdeaccessibility-4.[0-6].* \
kdebase-workspace-4.5.[0-5] \
kde-wallpapers-4.7.*
LATEST_LINK= ${PORTNAME}4
USE_XZ= yes
USE_KDE4= kdehier kdelibs kdeprefix libkexiv2 workspace automoc4
KDE4_BUILDENV= yes
USE_QT4= 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>