summaryrefslogtreecommitdiffstats
path: root/devel/eboxy/Makefile
blob: 567808d6701de813ca262afed190930bfdd7d3e9 (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
# ex:ts=8
# Ports collection makefile for:	eboxy
# Date created:			Sep 14, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	eboxy
PORTVERSION=	0.3.9
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Create simple GUI interfaces for entertainment PC

USE_SDL=	sdl gui
USE_GNOME=	gnometarget libxml2
USE_GETOPT_LONG=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=	--disable-lirc

MAN1=		eboxy.1

CPPFLAGS=	`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include \
		-DHAVE_DECL_GETOPT -fPIC
LDFLAGS=	`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} -e 's|-O2 $$CFLAGS|$$CFLAGS|g' ${WRKSRC}/configure
	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
		's|malloc\.h|stdlib.h|g'

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