summaryrefslogtreecommitdiffstats
path: root/net/mugshot/Makefile
blob: 35ad6ff4b8b4acc9da01ff9c023c0fb2c8f0769d (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
# New ports collection makefile for: mugshot
# Date Created:                      24 December 2006
# Whom:                              wahjava
#
# $FreeBSD$
#

PORTNAME=	mugshot
PORTVERSION=	1.1.95
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://download.mugshot.org/client/sources/linux/

MAINTAINER=	wahjava@gmail.com
COMMENT=	The official client for Mugshot network

LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg:install \
		Xss.1:${PORTSDIR}/x11/xorg-libraries:install \
		dbus-1.3:${PORTSDIR}/devel/dbus \
		dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
		cairo.2:${PORTSDIR}/graphics/cairo \
		hippocanvas-1.0:${PORTSDIR}/x11-toolkits/hippo-canvas \
		ddm-1.0:${PORTSDIR}/net/desktop-data-model
BUILD_DEPENDS=	${PKGCONFIG_LOCAL_BASE}/dbus-1.pc:${PORTSDIR}/devel/dbus:install \
		${PKGCONFIG_LOCAL_BASE}/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib:install \
		${PKGCONFIG_LOCAL_BASE}/loudmouth-1.0.pc:${PORTSDIR}/net-im/loudmouth:install \
		${PKGCONFIG_LOCAL_BASE}/cairo.pc:${PORTSDIR}/graphics/cairo:install \
		${PKGCONFIG_LOCAL_BASE}/libcurl.pc:${PORTSDIR}/ftp/curl:install \
		${LOCALBASE}/include/firefox/caps/nsIScriptSecurityManager.h:${PORTSDIR}/www/firefox:install \
		${LOCALBASE}/lib/firefox/xpidl:${PORTSDIR}/www/firefox:install \
		${LOCALBASE}/include/X11/extensions/scrnsaver.h:${PORTSDIR}/x11/xorg-libraries:install \
		dbus>=1.0.2:${PORTSDIR}/devel/dbus:install \
		${PKGCONFIG_LOCAL_BASE}/hippo-canvas-1.pc:${PORTSDIR}/x11-toolkits/hippo-canvas:install \
		${PKGCONFIG_LOCAL_BASE}/ddm-1.pc:${PORTSDIR}/net/desktop-data-model:install

USE_GNOME=	gnomehack gconf2 glib20 gtk20 pango gnomevfs2 gnomedesktop
GNU_CONFIGURE=	yes
USE_GMAKE=	yes

GCONF_SCHEMAS=	mugshot-uri-handler.schemas
INSTALLS_ICONS=	yes

USE_LDCONFIG=	yes
LDCONFIG_DIRS=	%%PREFIX%%/lib/mugshot/firefox/components

PKGCONFIG_LOCAL_BASE=	${LOCALBASE}/libdata/pkgconfig
PKGCONFIG_X11_BASE=	${LOCALBASE}/libdata/pkgconfig

mugshot_INSTALL_cmd=	install

.include <bsd.port.pre.mk>

CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	"--with-gecko-idl=${FIREFOX_IDL_PATH}" \
		"--with-gecko-headers=${LOCALBASE}/include/firefox" \
		"--with-xpidl=${LOCALBASE}/lib/firefox/xpidl" \
		"--x-includes=${LOCALBASE}/include" \
		"--x-libraries=${LOCALBASE}/lib"

FIREFOX_IDL_PATH!=${SH} -c 'for i in ${LOCALBASE}/share/idl/firefox-*; do [ -f $$i/nsIURI.idl ] && ${ECHO} $$i && break; done; exit 0;'
BUILD_DEPENDS+=${FIREFOX_IDL_PATH}/nsIURI.idl:${PORTSDIR}/www/firefox:install

post-install:
	@${SED} -i "" -e "s|%%PREFIX%%|${PREFIX}|" ${PREFIX}/share/mugshot/firefox-update.sh
	@${PREFIX}/share/mugshot/firefox-update.sh ${mugshot_INSTALL_cmd}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud