aboutsummaryrefslogtreecommitdiff
path: root/lang/mosh/Makefile
blob: 65b2b3b828bbecd7afe7456b83f24d4fad15bba2 (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
# New ports collection makefile for:   mosh
# Date created:                2008-07-06
# Whom:                        Katsuji ISHIKAWA <katsuji.ishikawa@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	mosh
PORTVERSION=	0.2.7
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	mjt@cltn.org
COMMENT=	A Fast R6RS Scheme interpreter

LIB_DEPENDS=	gmp.10:${PORTSDIR}/math/gmp \
		onig.2:${PORTSDIR}/devel/oniguruma5

USE_GCC=	4.2+
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--datadir=${PREFIX}/lib
MAKE_JOBS_SAFE=	yes
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

CONFLICTS_INSTALL=	mosh-1.[0-9].*

PROJECTHOST=	mosh-scheme
MAN1=	mosh.1 mosh_config.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800000
BROKEN=	Does not build on FreeBSD 7.x
.endif

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on ia64, powerpc, or sparc64
.endif

post-patch:
	${REINPLACE_CMD} 's|mosh-$$PACKAGE_VERSION|mosh|' ${WRKSRC}/configure

x-generate-plist:
	@${ECHO} bin/mosh > pkg-plist.new
	@${ECHO} bin/mosh_config >> pkg-plist.new
	@${ECHO} bin/nmosh >> pkg-plist.new
	@${FIND} ${LOCALBASE}/lib/mosh -type f | ${SORT} | ${SED} 's|${LOCALBASE}/||' >> pkg-plist.new
	@${FIND} ${LOCALBASE}/lib/mosh -type d | ${SORT} -r | ${SED} 's|${LOCALBASE}/|@dirrm |' >> pkg-plist.new

.include <bsd.port.post.mk>