summaryrefslogtreecommitdiffstats
path: root/net/gtk+licq/Makefile
blob: 2e4ed207c7120c0fec41ecd32bec9c5ac6df6906 (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
# New ports collection makefile for:    gtk+licq
# Date created:                         17 Oct 2000
# Whom:                                 Jeremy Norris <ishmael27@home.com>
#
# $FreeBSD$
#

PORTNAME=	gtk+licq
PORTVERSION=	0.51
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://gtk.licq.org/download/

MAINTAINER=	roman@xpert.com

BUILD_DEPENDS=	${LOCALBASE}/include/licq/licq_icqd.h:${PORTSDIR}/net/licq
LIB_DEPENDS=	pspell.4:${PORTSDIR}/textproc/pspell \
		iconv.3:${PORTSDIR}/converters/libiconv
RUN_DEPENDS=	licq:${PORTSDIR}/net/licq

# It breaks the build for some reason
#USE_LIBTOOL=	yes
USE_GMAKE=	yes
USE_GNOMENG=	yes
USE_GNOME=	gtk12
WANT_GNOME=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mlibcapplet}!=""
USE_GNOME+=	libcapplet
PKGNAMESUFFIX=	-gnome
CONFIGURE_ARGS+=	--enable-gnome
.else
CONFIGURE_ARGS+=	--disable-gnome
.endif

post-patch:
	@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL5} -pi -e \
		's|-D_REENTRANT|${PTHREAD_CFLAGS} -D_REENTRANT|g ; \
		s|^localedir =.*|localedir = \$$(prefix)/share/locale| ; \
		s|^gtklicq_helpdir =.*|gtklicq_helpdir = \
		\$$(datadir)/help/gtk+licq/C|'
.if !defined(HAVE_GNOME)
	@${PERL5} -pi -e \
		's|^SUBDIRS =.*|SUBDIRS =|' ${WRKSRC}/doc/Makefile.in
	@${PERL5} -pi -e \
		's|\sinstall-menuDATA||;s|\sinstall-ximianmenuDATA||' ${WRKSRC}/Makefile.in
.endif

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