pkgsrc/lang/ficl/Makefile
2015-03-17 14:08:48 +00:00

46 lines
1.4 KiB
Makefile

# $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"