aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/gtkhx/Makefile
blob: 46d15acad5a30f4f759fc006665afea86117eac6 (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
# New ports collection makefile for:   gtkhx
# Date created:        9 February 2002
# Whom:                Josh Elsasser <jre@vineyard.net>
#
# $FreeBSD$
#

PORTNAME=	gtkhx
PORTVERSION=	0.9.4
PORTREVISION=	5
CATEGORIES=	net-p2p
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A GTK+ version of Hx, a UNIX Hotline Client

USE_GNOME=	gdkpixbuf gnomehack
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

MAN1=		gtkhx.1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
PLIST_SUB+=	NLS=""
USE_GETTEXT=	yes
.else
PLIST_SUB+=	NLS="@comment "
CONFIGURE_ARGS+=--disable-nls
.endif

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's|-I/usr/local/include||g ; \
		 s|-L/usr/local/lib||g ; \
		 s|^mandir =.*$$|mandir = $${prefix}/man/man1|g'
	@${REINPLACE_CMD} -e 's|^CC =|#CC =|g' ${WRKSRC}/plugins/eliza/Makefile
	@${REINPLACE_CMD} -e 's|^CC=|#CC=|g ; \
		 s|$$CFLAGS -O2|$$CFLAGS|g ; \
		 s|-g -Wall|$$CFLAGS -Wall|g' ${WRKSRC}/configure

.include <bsd.port.post.mk>