summaryrefslogtreecommitdiff
path: root/lang/ficl/Makefile
blob: f2ffca3f3483cada02658b5a4b0e8b460dafeb33 (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
44
45
46
# $NetBSD: Makefile,v 1.3 2015/03/17 14:08:48 jperkin Exp $

DISTNAME=	ficl-4.1.0
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=ficl/}

MAINTAINER=	asau@inbox.ru
HOMEPAGE=	http://ficl.sourceforge.net/
COMMENT=	Forth Inspired Command Language

USE_GCC_RUNTIME=	yes

BUILD_TARGET=	ficl

MAJOR=		4
MINOR=		1.0
BUILD_TARGET+=	libficl.so.${MAJOR}.${MINOR}

FICL_DIRS+=	contrib contrib/xclasses
FICL_DIRS+=	doc doc/articles doc/graphics doc/source softcore test

INSTALLATION_DIRS=	bin share/ficl include include/ficlplatform lib
INSTALLATION_DIRS+=	${FICL_DIRS:C/^/share\/ficl\//}
do-install:
# install interpreter:
	${INSTALL_PROGRAM} ${WRKSRC}/ficl ${DESTDIR}${PREFIX}/bin
# install libraries:
	${INSTALL_LIB} ${WRKSRC}/libficl.a ${DESTDIR}${PREFIX}/lib
	${INSTALL_LIB} ${WRKSRC}/libficl.so.${MAJOR}.${MINOR} ${DESTDIR}${PREFIX}/lib
	${INSTALL_LIB} ${WRKSRC}/libficl.so ${DESTDIR}${PREFIX}/lib
# install header files:
	cd ${WRKSRC}; \
	for f in ficl.h ficlcompatibility.h ficllocal.h ficltokens.h; do \
		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/include; done
	cd ${WRKSRC}/ficlplatform; \
	for f in alpha.h ansi.h unix.h win32.h; do \
		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/include/ficlplatform; done
# install documentation and supplementary files:
	cd ${WRKSRC}; \
	for d in ${FICL_DIRS}; do \
		for f in $$d/*; do \
			if [ -f "$$f" ]; then \
				${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/ficl/$$d; \
	fi; done; done

.include "../../mk/bsd.pkg.mk"