aboutsummaryrefslogtreecommitdiff
path: root/x11-themes/gtk-qt-engine/Makefile
blob: 691f71d53829c47374c929e24101ccedf1e92ab9 (plain) (blame)
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
# New ports collection makefile for:    gtk-qt-engine
# Date created:                         23 February 2004
# Whom:                                 Danny Pansters <danny@ricin.com>
#
# $FreeBSD$
#

PORTNAME=	gtk-qt-engine
PORTVERSION=	0.7
PORTREVISION=	6
CATEGORIES=	x11-themes
MASTER_SITES=	http://gtk-qt.ecs.soton.ac.uk/files/${PORTVERSION}/ \
		http://freebsd.ricin.com/ports/distfiles/

MAINTAINER=	danny@ricin.com
COMMENT=	GTK-QT Theme Engine allows GTK2 apps to use QT (KDE) themes

LIB_DEPENDS=	kdecore:${PORTSDIR}/x11/kdelibs3

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool:15
USE_GNOME=	gtk20
USE_QT_VER=	3

WRKSRC=		${WRKDIR}/${PORTNAME}

CONFIGURE_ARGS+=--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include

OPTIONS=	LIBBONOBOUI "Install libbonoboui if missing" off

.include <bsd.port.pre.mk>

# Note: had to turn off libbonoboui (dependency) OPTION for technical reasons
# So a "vanilla" package will have no libbonoboui support
.if defined(WITH_LIBBONOBOUI)
USE_GNOME+=	libbonoboui
.endif

post-patch:
	@${REINPLACE_CMD} -e "s|GTK_LIBPREFIX)/gtk|PREFIX)/lib/gtk|" \
		${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} -e "s|GTK_PREFIX)/share|PREFIX)/share|g" \
		${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} -e "s|/usr/lib/menu|${WRKDIR}/menu|g" \
		${WRKSRC}/kcm_gtk/Makefile.in
	@${REINPLACE_CMD} -e \
		"s|/usr/share/applications|${PREFIX}/share/applications/kde|g" \
		${WRKSRC}/kcm_gtk/Makefile.in

post-install:
	@${RM} -r ${WRKDIR}/menu
	@${RM} ${PREFIX}/share/applnk/Settings/LookNFeel/kcmgtk.desktop

.include <bsd.port.post.mk>