blob: 08fb0a183f1fcfc54adfa68f031fc5d066a428fd (
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
|
# $NetBSD: Makefile,v 1.2 2012/10/02 20:11:39 asau 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
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"
|