summaryrefslogtreecommitdiffstats
path: root/lang/elk/Makefile
blob: a90bfacafebbd7eccd526db471b621b7fbc62be9 (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
# New ports collection makefile for:	elk
# Date created:		08 March 1995
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	elk
PORTVERSION=	3.99.5
CATEGORIES=	lang scheme
MASTER_SITES=	http://sam.zoy.org/projects/elk/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An embeddable Scheme interpreter

LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm \
		elf.0:${PORTSDIR}/devel/libelf

USE_BZIP2=	yes
USE_MOTIF=	yes
USE_REINPLACE=	yes
USE_LIBTOOL=	yes
LIBTOOLFLAGS=	# none
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB=	yes

MAN1=		elk.1

CPPFLAGS=	-I${LOCALBASE}/include/libelf -I${LOCALBASE}/include \
		-DHAVE_SYS_TIMES_H
LDFLAGS=	-L${LOCALBASE}/lib

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/man/elk.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	@${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" -cf - . | \
		${TAR} -C ${EXAMPLESDIR} --unlink -xf -
	@${CHOWN} -R ${SHAREMODE}:${SHAREGRP} ${EXAMPLESDIR}
.endif

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