2000-02-12 21:18:18 -05:00
|
|
|
# New ports collection makefile for: clisp
|
|
|
|
# Date created: Feb 5 2000
|
|
|
|
# Whom: Jeff Brown <jabrown@caida.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-12 02:21:15 -04:00
|
|
|
PORTNAME= clisp
|
2003-01-08 05:32:41 -05:00
|
|
|
PORTVERSION= 2.30
|
2004-02-03 23:36:30 -05:00
|
|
|
PORTREVISION= 2
|
2000-02-12 21:18:18 -05:00
|
|
|
CATEGORIES= lang
|
2002-02-07 16:11:10 -05:00
|
|
|
MASTER_SITES= ftp://cvs2.cons.org/pub/lisp/clisp/source/${PORTVERSION}/ \
|
2001-09-01 01:38:28 -04:00
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-02-12 21:18:18 -05:00
|
|
|
|
2003-01-08 05:32:41 -05:00
|
|
|
MAINTAINER= henrik.motakef@web.de
|
2003-02-21 07:35:09 -05:00
|
|
|
COMMENT= An ANSI Common Lisp
|
2003-01-08 05:32:41 -05:00
|
|
|
|
2004-02-03 23:36:30 -05:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2000-02-12 21:18:18 -05:00
|
|
|
|
2000-04-30 21:44:43 -04:00
|
|
|
USE_BZIP2= yes
|
2001-05-19 15:03:34 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2003-05-19 08:31:00 -04:00
|
|
|
USE_GCC= 2.95
|
2004-02-03 23:36:30 -05:00
|
|
|
USE_GETTEXT= yes
|
2001-05-19 15:03:34 -04:00
|
|
|
|
2002-06-28 04:23:07 -04:00
|
|
|
# In clisp-2.28, the build dies in the "regexp" module: the build target
|
|
|
|
# invokes a configure script, which encounters a different CC variable than
|
|
|
|
# the one the top-level configure cached. We'll explicitly set CC to avoid
|
|
|
|
# this.
|
|
|
|
MAKE_ENV+= CC="${CC}"
|
|
|
|
CONFIGURE_ENV+= CC="${CC}"
|
|
|
|
|
2001-05-19 15:03:34 -04:00
|
|
|
# The build uses INSTALL_* to copy files around, but since the Ports
|
|
|
|
# INSTALL_* try to set file permissions, using them breaks non-root builds.
|
|
|
|
# Instead, we'll just fix up permissions in the post-install target, after we
|
|
|
|
# install the files.
|
|
|
|
CONFIGURE_ENV+= INSTALL=${CP} INSTALL_DATA=${CP} INSTALL_PROGRAM=${CP} \
|
|
|
|
INSTALL_SCRIPT=${CP} INSTALL_MAN=${CP}
|
2000-04-30 21:44:43 -04:00
|
|
|
|
2000-02-12 21:18:18 -05:00
|
|
|
# Build subdirectory
|
2001-05-19 15:03:34 -04:00
|
|
|
BUILD_DIRNAME=${CONFIGURE_TARGET}
|
2000-02-12 21:18:18 -05:00
|
|
|
|
2002-06-28 04:23:07 -04:00
|
|
|
# These came from clisp-2.28's "configure" on my 4.4-R system,
|
|
|
|
# with "--with-module=regexp --with-export-syscalls" added in.
|
2000-02-12 21:18:18 -05:00
|
|
|
MAKEMAKE_ARGS=--prefix=${PREFIX} --with-readline --with-gettext \
|
2002-01-11 20:20:02 -05:00
|
|
|
--with-dynamic-ffi --with-module=regexp --with-export-syscalls
|
2000-02-12 21:18:18 -05:00
|
|
|
|
|
|
|
# The post-install target uses these to fix permissions.
|
|
|
|
DATA_PATHS=${PREFIX}/lib/clisp ${PREFIX}/share/doc/clisp \
|
|
|
|
${PREFIX}/share/locale/de/LC_MESSAGES/clisp.mo \
|
2001-05-19 15:03:34 -04:00
|
|
|
${PREFIX}/share/locale/de/LC_MESSAGES/clisplow.mo \
|
2000-02-12 21:18:18 -05:00
|
|
|
${PREFIX}/share/locale/en/LC_MESSAGES/clisp.mo \
|
2001-05-19 15:03:34 -04:00
|
|
|
${PREFIX}/share/locale/en/LC_MESSAGES/clisplow.mo \
|
2000-02-12 21:18:18 -05:00
|
|
|
${PREFIX}/share/locale/es/LC_MESSAGES/clisp.mo \
|
2001-05-19 15:03:34 -04:00
|
|
|
${PREFIX}/share/locale/es/LC_MESSAGES/clisplow.mo \
|
2000-04-30 21:44:43 -04:00
|
|
|
${PREFIX}/share/locale/fr/LC_MESSAGES/clisp.mo \
|
2001-05-19 15:03:34 -04:00
|
|
|
${PREFIX}/share/locale/fr/LC_MESSAGES/clisplow.mo \
|
|
|
|
${PREFIX}/share/locale/nl/LC_MESSAGES/clisp.mo \
|
|
|
|
${PREFIX}/share/locale/nl/LC_MESSAGES/clisplow.mo
|
2000-02-12 21:18:18 -05:00
|
|
|
PROG_PATHS=${PREFIX}/bin/clisp
|
2003-01-08 05:32:41 -05:00
|
|
|
MAN_PATHS=${PREFIX}/man/man1/clisp.1
|
2000-02-12 21:18:18 -05:00
|
|
|
|
|
|
|
# The source doesn't include a top-level Makefile, so we'll fake one.
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
printf "all install:\n\t@cd ${WRKSRC}/${BUILD_DIRNAME} && \$${MAKE} \$${MAKEFLAGS} \$$@\n" > ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
# The 'configure' script stops short of doing this for us.
|
|
|
|
post-configure:
|
2001-09-01 01:38:28 -04:00
|
|
|
cd ${WRKSRC}/${BUILD_DIRNAME} && \
|
2000-02-12 21:18:18 -05:00
|
|
|
./makemake ${MAKEMAKE_ARGS} > Makefile && \
|
2001-05-19 15:03:34 -04:00
|
|
|
make config.lisp
|
2000-02-12 21:18:18 -05:00
|
|
|
|
|
|
|
post-install:
|
2001-06-01 02:05:18 -04:00
|
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} ${PROG_PATHS}
|
2000-02-12 21:18:18 -05:00
|
|
|
${CHMOD} -R ugo+rX,ugo-w ${PROG_PATHS}
|
2001-06-01 02:05:18 -04:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATA_PATHS}
|
2000-02-12 21:18:18 -05:00
|
|
|
${CHMOD} -R ugo+rX,ugo-w ${DATA_PATHS}
|
2001-06-01 02:05:18 -04:00
|
|
|
${CHOWN} -R ${MANOWN}:${MANGRP} ${MAN_PATHS}
|
2000-02-12 21:18:18 -05:00
|
|
|
${CHMOD} -R ugo+rX,ugo-w ${MAN_PATHS}
|
|
|
|
|
|
|
|
MAN1= clisp.1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|