aboutsummaryrefslogtreecommitdiff
path: root/deskutils/logjam/Makefile
blob: 02875810a4bd15239471ee209255cedb6da3bc55 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
# Created by: alanp@unixpower.org
# $FreeBSD$

PORTNAME=	logjam
PORTVERSION=	4.6.2
PORTREVISION=	3
CATEGORIES=	deskutils
MASTER_SITES=	http://andy-shev.github.com/LogJam/download/

MAINTAINER=	novel@FreeBSD.org
COMMENT=	GTK2 interface to livejournals, ie www.livejournal.com

LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
		libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib

USES=		pkgconfig gmake pathfix
USE_BZIP2=	yes
WANT_GNOME=	yes
GNU_CONFIGURE=	yes
USE_GNOME=	gnomeprefix gtk20 libxml2 intlhack
CONFIGURE_ARGS=	--program-transform-name="s/$$//"
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

.ifndef(WITHOUT_GTKSPELL)
LIB_DEPENDS+=		libgtkspell.so:${PORTSDIR}/textproc/gtkspell
.else
CONFIGURE_ARGS+=	--without-gtkspell
.endif

.if defined(WITH_SQLITE)
CONFIGURE_ARGS+=	--with-sqlite3
LIB_DEPENDS+=		libsqlite3.so:${PORTSDIR}/databases/sqlite3
.endif

.if defined(WITH_XMMS)
LIB_DEPENDS+=		libxmms.so:${PORTSDIR}/multimedia/xmms
PLIST_SUB+=		WITH_XMMS=""
.else
PLIST_SUB+=		WITH_XMMS="@comment "
CONFIGURE_ARGS+=	--without-xmms
.endif

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgtkhtml3}!=""
USE_GNOME+=		gtkhtml3
.else
CONFIGURE_ARGS+=	--without-gtkhtml
.endif

.if ${HAVE_GNOME:Mlibrsvg2}!=""
USE_GNOME+=		librsvg2
.else
CONFIGURE_ARGS+=	--without-librsvg
.endif

pre-everything::
	@${ECHO_MSG} ""
	@${ECHO_MSG} "logjam has the following tunable option(s):"
	@${ECHO_MSG} "		WITHOUT_GTKSPELL	Disable spell checking"
	@${ECHO_MSG} "		WITH_XMMS		Enable XMMS music detection"
	@${ECHO_MSG} ""

post-patch:
	@${REINPLACE_CMD} -e 's|libgtkhtml-3.0|libgtkhtml-3.18|g' ${WRKSRC}/configure

.include <bsd.port.post.mk>