1995-02-10 07:15:04 +01:00
|
|
|
# New ports collection makefile for: smalltalk
|
|
|
|
# Date created: 09 Feb 1995
|
|
|
|
# Whom: gpalmer
|
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1995-02-10 07:15:04 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= smalltalk
|
2008-05-22 10:44:37 +02:00
|
|
|
PORTVERSION= 3.0.3
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 2
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= lang
|
1996-11-18 11:25:35 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2001-02-20 17:50:54 +01:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1995-04-15 07:44:50 +02:00
|
|
|
|
2007-04-15 19:52:35 +02:00
|
|
|
MAINTAINER= johans@stack.nl
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= GNU Smalltalk
|
1995-02-10 07:15:04 +01:00
|
|
|
|
2008-03-07 15:02:11 +01:00
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
2005-07-26 17:50:19 +02:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
|
|
|
|
execinfo.1:${PORTSDIR}/devel/libexecinfo
|
|
|
|
|
2008-03-07 15:02:11 +01:00
|
|
|
OPTIONS= TCLTK "Enable Tcl/Tk binding" on \
|
|
|
|
PGSQL "PostgreSQL binding" on
|
2002-06-29 21:14:59 +02:00
|
|
|
|
2007-02-08 11:07:02 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-12-18 23:26:09 +01:00
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
|
|
USE_ICONV= yes
|
2008-03-07 15:02:11 +01:00
|
|
|
USE_SQLITE= yes
|
2000-03-31 19:02:49 +02:00
|
|
|
USE_GMAKE= yes
|
1997-11-29 15:15:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-05-19 02:01:14 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
2005-12-18 23:26:09 +01:00
|
|
|
ac_cv_prog_EMACS=no
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --enable-generational-gc=no \
|
2006-12-21 20:57:38 +01:00
|
|
|
--enable-gtk=no \
|
|
|
|
--with-emacs=no \
|
|
|
|
--with-gmp=no
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-12-21 20:57:38 +01:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
1997-11-29 15:15:44 +01:00
|
|
|
|
2008-03-07 15:02:11 +01:00
|
|
|
MAN1= gst.1 gst-load.1 gst-package.1 gst-sunit.1 gst-config.1 \
|
|
|
|
gst-convert.1 gst-doc.1
|
|
|
|
MLINKS= gst-load.1 gst-reload.1
|
2003-11-22 19:40:28 +01:00
|
|
|
INFO= gst gst-base gst-libs
|
1995-04-18 07:18:51 +02:00
|
|
|
|
2003-05-19 02:01:14 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
|
2005-07-26 17:50:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-15 19:52:35 +02:00
|
|
|
.if ${OSVERSION} < 600000
|
|
|
|
BROKEN= requires C99 math functions for long doubles
|
2005-07-26 18:20:41 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-18 23:26:09 +01:00
|
|
|
.if defined(WITHOUT_TCLTK)
|
|
|
|
CONFIGURE_ARGS+= --with-tcl=no
|
|
|
|
PLIST_SUB+= TCLTK="@comment "
|
|
|
|
.else
|
2003-11-22 19:40:28 +01:00
|
|
|
LIB_DEPENDS+= tk84.1:${PORTSDIR}/x11-toolkits/tk84
|
|
|
|
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
|
|
|
|
--with-tk=${LOCALBASE}/lib/tk8.4
|
2003-05-19 02:01:14 +02:00
|
|
|
PLIST_SUB+= TCLTK=""
|
2004-03-14 02:29:36 +01:00
|
|
|
.endif
|
|
|
|
|
2008-03-07 15:02:11 +01:00
|
|
|
.if defined(WITHOUT_PGSQL)
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.else
|
|
|
|
USE_PGSQL= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.database.mk"
|
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
.endif
|
|
|
|
|
2007-02-08 11:07:02 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
|
2007-04-15 19:52:35 +02:00
|
|
|
-e 's/ia64-\*-\* /&|amd64-*-* /' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's/x86_64-\*-freebsd\* /&| amd64-*-freebsd* / ' \
|
|
|
|
${WRKSRC}/libffi/configure
|
|
|
|
@${REINPLACE_CMD} -e 's/lrintl (truncl/lroundl (truncl/' \
|
|
|
|
${WRKSRC}/libgst/prims.def \
|
|
|
|
${WRKSRC}/libgst/prims.inl
|
2007-02-08 11:07:02 +01:00
|
|
|
|
2006-12-21 20:57:38 +01:00
|
|
|
post-build:
|
|
|
|
@${SED} -e 's|@bindir@|${PREFIX}/bin|g' \
|
|
|
|
${WRKSRC}/gst-mode.el.in > ${WRKSRC}/gst-mode.el
|
|
|
|
@${SED} -e 's|@lispdir@|${PREFIX}/share/emacs/site-lisp|g' \
|
|
|
|
${WRKSRC}/smalltalk-mode.el.in > ${WRKSRC}/smalltalk-mode.el
|
2003-05-19 02:01:14 +02:00
|
|
|
|
|
|
|
post-install:
|
2006-12-21 20:57:38 +01:00
|
|
|
@${MKDIR} ${DATADIR}/gtk
|
|
|
|
@${TOUCH} ${DATADIR}/gtk/.keep_me
|
2003-05-19 02:01:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.el ${PREFIX}/share/emacs/site-lisp
|
2002-10-16 23:23:58 +02:00
|
|
|
|
2004-03-14 02:29:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|