summaryrefslogtreecommitdiff
path: root/lang/lush/Makefile
blob: 2a4f8f533539329808178a07764921e8adf57514 (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
# New ports collection makefile for:	lush
# Date created:				20 May 2003
# Whom:					David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$

PORTNAME=	lush
PORTVERSION=	0.99
PORTREVISION=	3
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	lush

MAINTAINER=	dyeske@yahoo.com
COMMENT=	A high level object-oriented programming language

USE_GETTEXT=	yes
USE_X_PREFIX=	yes
USE_GL=		yes
USE_SDL=	sdl image
GNU_CONFIGURE=	yes

CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
		LIBS="${LIBS} ${PTHREAD_LIBS} -lintl -L${LOCALBASE}/lib"

CONFIGURE_ARGS=	--without-bfd

MAN1=		lush.1

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=		"Does not build on sparc64"
.endif

post-patch:
	@${REINPLACE_CMD} -E -e \
		's|opt=.+$$||; \
		s|-O3||; \
		s|-Wall||; \
		s|-pthread|${PTHREAD_LIBS}|' \
		${WRKSRC}/configure

pre-install:
	@${FIND} ${WRKSRC}/ -name "*.bak" -delete

.include <bsd.port.post.mk>