2000-02-13 03:18:18 +01:00
|
|
|
# New ports collection makefile for: clisp
|
|
|
|
# Date created: Feb 5 2000
|
|
|
|
# Whom: Jeff Brown <jabrown@caida.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= clisp
|
2009-11-12 01:05:43 +01:00
|
|
|
PORTVERSION= 2.48
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 2
|
2005-03-06 22:22:01 +01:00
|
|
|
CATEGORIES= lang lisp
|
2008-04-30 03:32:18 +02:00
|
|
|
MASTER_SITES= GNU/${PORTNAME}/release/${PORTVERSION}
|
2000-02-13 03:18:18 +01:00
|
|
|
|
2009-02-07 18:46:08 +01:00
|
|
|
MAINTAINER= jsa@wickedmachine.net
|
2005-09-04 06:49:53 +02:00
|
|
|
COMMENT= A Common Lisp implementation
|
|
|
|
|
2008-03-20 17:43:36 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libavcall.a:${PORTSDIR}/devel/ffcall
|
2009-05-12 13:28:17 +02:00
|
|
|
LIB_DEPENDS= readline.6:${PORTSDIR}/devel/readline \
|
2008-03-20 17:43:36 +01:00
|
|
|
sigsegv.0:${PORTSDIR}/devel/libsigsegv
|
2003-01-08 11:32:41 +01:00
|
|
|
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2007-12-11 22:23:42 +01:00
|
|
|
USE_GHOSTSCRIPT_BUILD= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --mandir="${MANPREFIX}/man" \
|
|
|
|
--elispdir="${DATADIR}/emacs" --vimdir="${DATADIR}/vim" \
|
|
|
|
--docdir="${DOCSDIR}"
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL}
|
|
|
|
# Complaints if the environment changes between build stages.
|
|
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
2006-06-29 00:04:01 +02:00
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2009-11-12 01:05:43 +01:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2006-03-15 14:34:12 +01:00
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
OPTIONS= BDB "Build Berkeley Database module" off \
|
|
|
|
CLX_MIT "Build X11 module (original MIT version)" off \
|
|
|
|
CLX_NEW "Build X11 module (new faster version)" off \
|
2009-11-27 19:21:12 +01:00
|
|
|
DBUS "D-BUS control module" Off \
|
2006-06-29 00:04:01 +02:00
|
|
|
FASTCGI "Build FastCGI module" off \
|
2007-12-11 22:23:42 +01:00
|
|
|
GDBM "Build GNU Database manager module" off \
|
|
|
|
GTK2 "Build Gtk+2 module" off \
|
2006-06-29 00:04:01 +02:00
|
|
|
ORACLE "Build Oracle database module" off \
|
2007-12-11 22:23:42 +01:00
|
|
|
PARI "Build PARI (math and calc lib) module" off \
|
2006-06-29 00:04:01 +02:00
|
|
|
PCRE "Build PCRE (Perl Compatible Regexp) module" off \
|
|
|
|
PGSQL "Build PostgreSQL database module" off \
|
|
|
|
RAWSOCK "Build Raw Socket Access module" on \
|
2007-12-11 22:23:42 +01:00
|
|
|
SVM "Enable Support Vector Machines module" off \
|
2009-11-27 19:21:12 +01:00
|
|
|
THREADS "Enable multithreaded (Experimental)" Off \
|
2006-06-29 00:04:01 +02:00
|
|
|
WILDCARD "Build wildcard matching module" on \
|
|
|
|
ZLIB "Build ZLib interface module " off
|
2000-02-13 03:18:18 +01:00
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
MAN1= clisp.1
|
2007-12-11 22:23:42 +01:00
|
|
|
SUB_FILES= pkg-message
|
2000-02-13 03:18:18 +01:00
|
|
|
|
2005-01-02 01:46:39 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-15 20:11:04 +01:00
|
|
|
# Semgentation fault in amd64 when using 'mmap(2)', errno = EINVAL.
|
2006-06-29 00:04:01 +02:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CONFIGURE_ARGS+=--disable-mmap
|
2008-02-15 20:11:04 +01:00
|
|
|
.endif
|
|
|
|
|
2009-11-27 19:21:12 +01:00
|
|
|
MODULES= BDB CLX_MIT CLX_NEW DBUS FASTCGI GDBM GTK2 ORACLE PARI PCRE \
|
|
|
|
PGSQL RAWSOCK SVM WILDCARD ZLIB
|
2007-12-11 22:23:42 +01:00
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
.for mod in ${MODULES}
|
|
|
|
. if defined(WITH_${mod})
|
|
|
|
PLIST_SUB+= ${mod}=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= ${mod}="@comment "
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2009-02-27 12:17:16 +01:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
.if defined(WITH_BDB)
|
2007-12-11 22:23:42 +01:00
|
|
|
USE_BDB= 43+
|
|
|
|
CONFIGURE_ARGS+=--with-module=berkeley-db
|
2006-06-29 00:04:01 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/db${BDB_VER}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/db${BDB_VER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CLX_MIT) && defined(WITH_CLX_NEW)
|
|
|
|
IGNORE= selected different implementations of the same X11 module
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLX_MIT) || defined(WITH_CLX_NEW)
|
2008-03-23 12:11:33 +01:00
|
|
|
USE_XORG= x11
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLX_MIT)
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=clx/mit-clx
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLX_NEW)
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=clx/new-clx
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
2009-11-27 19:21:12 +01:00
|
|
|
.if defined(WITH_DBUS)
|
|
|
|
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
|
|
|
|
CONFIGURE_ARGS+=--with-module=dbus
|
|
|
|
.endif
|
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
.if defined(WITH_FASTCGI)
|
|
|
|
LIB_DEPENDS+= fcgi.0:${PORTSDIR}/www/fcgi
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=fastcgi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
CONFIGURE_ARGS+=--with-module=gdbm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
USE_GNOME= gtk20 libglade2
|
|
|
|
CONFIGURE_ARGS+=--with-module=gtk2
|
2006-04-23 00:13:39 +02:00
|
|
|
.endif
|
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
.if defined(WITH_ORACLE)
|
|
|
|
BUILD_DEPENDS+= ${ORACLE_HOME}:${PORTSDIR}/databases/oracle8-client
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=oracle
|
2006-06-29 00:04:01 +02:00
|
|
|
CPPFLAGS+= -I${ORACLE_HOME}/rdbms/demo -I${ORACLE_HOME}/rdbms/public
|
|
|
|
LDFLAGS+= -L${ORACLE_HOME}/lib
|
2007-12-11 22:23:42 +01:00
|
|
|
ORACLE_HOME?= ${LOCALBASE}/oracle8-client
|
2005-10-29 00:44:44 +02:00
|
|
|
.endif
|
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
.if defined(WITH_PARI)
|
2009-04-08 00:50:17 +02:00
|
|
|
LIB_DEPENDS+= pari-gmp.2:${PORTSDIR}/math/pari
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=pari
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=pcre
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=postgresql
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RAWSOCK)
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=rawsock
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SVM)
|
|
|
|
RUN_DEPENDS+= svm-predict:${PORTSDIR}/science/libsvm
|
|
|
|
CONFIGURE_ARGS+=--with-module=libsvm
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
2009-11-27 19:21:12 +01:00
|
|
|
.if defined(WITH_THREADS)
|
|
|
|
CONFIGURE_ARGS+= --with-threads=POSIX_THREADS \
|
|
|
|
LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
|
|
|
|
PKGNAMESUFFIX= -threaded
|
|
|
|
.endif
|
|
|
|
|
2006-06-29 00:04:01 +02:00
|
|
|
.if defined(WITH_WILDCARD)
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=wildcard
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ZLIB)
|
2007-12-11 22:23:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-module=zlib
|
2006-06-29 00:04:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if defined(WITH_ORACLE)
|
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||; s|-lpthread|-lcompat ${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/modules/oracle/link.sh
|
|
|
|
.endif
|
2000-02-13 03:18:18 +01:00
|
|
|
|
2007-12-11 22:23:42 +01:00
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
2000-02-13 03:18:18 +01:00
|
|
|
|
2005-01-02 01:46:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|