2004-08-11 01:27:37 +00:00
|
|
|
# New ports collection makefile for: xscreensaver-kde
|
|
|
|
# Date created: July 08 2004
|
|
|
|
# Whom: Michael Nottebrock <lofi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xscreensaver-kde
|
|
|
|
PORTVERSION= ${KDE_VERSION}
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2004-08-11 01:27:37 +00:00
|
|
|
CATEGORIES= x11 kde
|
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2004-08-30 19:55:42 +00:00
|
|
|
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
|
2004-08-11 01:27:37 +00:00
|
|
|
PKGNAMEPREFIX= kdeartwork-
|
|
|
|
DISTNAME= kdeartwork-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= KDE
|
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
|
|
COMMENT= Support for xscreensaver blankers in KDE
|
|
|
|
|
|
|
|
CONFLICTS= kdeartwork-3.1.* kdeartwork-3.2.[0-3]
|
|
|
|
|
|
|
|
USE_KDELIBS_VER=3
|
|
|
|
PREFIX= ${KDE_PREFIX}
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2006-03-30 20:30:29 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-08-11 01:27:37 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/kdeartwork-${PORTVERSION}
|
|
|
|
|
2007-03-13 19:13:51 +00:00
|
|
|
USE_LDCONFIG= yes
|
2004-08-11 01:27:37 +00:00
|
|
|
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-03-15 14:53:01 +00:00
|
|
|
.if exists(${LOCALBASE}/share/gnome/applications/gnome-screensaver-properties.desktop)
|
2004-08-11 01:27:37 +00:00
|
|
|
WITH_XSGNOME= yes
|
2007-03-15 14:53:01 +00:00
|
|
|
.elif exists(${LOCALBASE}/bin/screensaver)
|
2004-08-11 01:27:37 +00:00
|
|
|
WITH_XSGNOME= yes
|
|
|
|
.else
|
|
|
|
WITH_XS= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XS) && !defined(WITH_XSGNOME)
|
|
|
|
BUILD_DEPENDS+= xscreensaver:${PORTSDIR}/x11/xscreensaver
|
|
|
|
RUN_DEPENDS+= xscreensaver:${PORTSDIR}/x11/xscreensaver
|
|
|
|
.endif # defined(WITH_XS)
|
|
|
|
|
|
|
|
.if defined(WITH_XSGNOME)
|
2007-03-15 14:53:01 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/gnome/applications/gnome-screensaver-properties.desktop:${PORTSDIR}/x11/xscreensaver-gnome
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/gnome/applications/gnome-screensaver-properties.desktop:${PORTSDIR}/x11/xscreensaver-gnome
|
2004-08-11 01:27:37 +00:00
|
|
|
.endif # defined(WITH_XSGNOME)
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${ECHO_CMD} "kscreensaver" > ${WRKSRC}/inst-apps
|
|
|
|
@${REINPLACE_CMD} -e 's|kdesavers||g' -e 's|kpartsaver||g' -e 's|xsavers||g' \
|
|
|
|
${WRKSRC}/kscreensaver/Makefile.in
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|