pkgsrc/lang/ficl/Makefile
asau af10d0b8d2 Import FICL 4.1.0 as lang/ficl.
Ficl is a complete programming language interpreter designed to be
embedded into other systems (including firmware based ones) as
a command, macro, and development prototype language.
Ficl stands for "Forth Inspired Command Language".
2010-12-01 21:58:27 +00:00

46 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2010/12/01 21:58:27 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
PKG_DESTDIR_SUPPORT= user-destdir
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"