Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 2006 21:15:03 GMT
From:      "Pedro F. Giffuni" <giffunip@asme.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/95441: lang/smalltalk: unbreak on amd64.
Message-ID:  <200604062115.k36LF3Yd003353@www.freebsd.org>
Resent-Message-ID: <200604062120.k36LKDt5048304@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95441
>Category:       ports
>Synopsis:       lang/smalltalk: unbreak on amd64.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 06 21:20:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.0
>Organization:
>Environment:
N/A
>Description:
Unbreak on amd64.

- updated libffi for x86_64 and maybe other platforms support.

- added a dependency on math/libgmp.
>How-To-Repeat:
The current port has:

.if ${ARCH} != "i386" && ${ARCH} != "alpha"
BROKEN=		"Does not compile on !i386 and !alpha"
.endif
>Fix:
diff -ruN smalltalk.orig/Makefile smalltalk/Makefile
--- smalltalk.orig/Makefile	Sat Mar 11 23:41:48 2006
+++ smalltalk/Makefile	Thu Apr  6 14:42:08 2006
@@ -8,27 +8,31 @@
 PORTNAME=	smalltalk
 PORTVERSION=	2.2
 CATEGORIES=	lang
-MASTER_SITES=	${MASTER_SITE_GNU}
+MASTER_SITES=	${MASTER_SITE_GNU}:smalltalk	\
+		http://www.spindazzle.org/:libffi
 MASTER_SITE_SUBDIR=	${PORTNAME}
+DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:smalltalk	\
+		libffi-green${EXTRACT_SUFX}:libffi
+EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GNU Smalltalk
 
-LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm \
-		execinfo.1:${PORTSDIR}/devel/libexecinfo
+LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo	\
+		gdbm.3:${PORTSDIR}/databases/gdbm		\
+		gmp.6:${PORTSDIR}/math/libgmp4
 
 OPTIONS=	TCLTK "Enable Tcl/Tk binding" on
 
 USE_GNOME=	gnomehack gnometarget pkgconfig
 USE_GCC=	3.4+
+GNU_CONFIGURE=	yes
 USE_ICONV=	yes
-USE_REINPLACE=	yes
 USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
 		ac_cv_prog_EMACS=no
-CONFIGURE_ARGS=	--enable-generational-gc=no --enable-gtk=no \
-		--with-emacs=no --with-gmp=no
+CONFIGURE_ARGS=	--disable-generational-gc --enable-gtk=no \
+		--without-emacs --with-gmp=${LOCALBASE}/lib
 INSTALLS_SHLIB=	yes
 
 MAN1=		gst.1
@@ -39,8 +43,10 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} != "i386" && ${ARCH} != "alpha"
-BROKEN=		"Does not compile on !i386 and !alpha"
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
+.elif ${ARCH} != "i386" && ${ARCH} != "alpha"
+BROKEN=		Does not compile on !i386 and !alpha
 .endif
 
 .if ${OSVERSION} < 500000
@@ -56,6 +62,10 @@
 			--with-tk=${LOCALBASE}/lib/tk8.4
 PLIST_SUB+=	TCLTK=""
 .endif
+
+post-extract:
+	${RM} -rf ${WRKSRC}/libffi
+	@(cd ${WRKSRC}; ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/libffi-green${EXTRACT_SUFX})
 
 post-patch:
 	@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
diff -ruN smalltalk.orig/distinfo smalltalk/distinfo
--- smalltalk.orig/distinfo	Sat Mar 11 23:41:48 2006
+++ smalltalk/distinfo	Thu Apr  6 13:44:44 2006
@@ -1,3 +1,6 @@
 MD5 (smalltalk-2.2.tar.gz) = f092bb42f6cf52b429dba8640f8bf810
 SHA256 (smalltalk-2.2.tar.gz) = ca134253f45bf5e3f34113c8d2a677f7733c464e2c3d75316f05e1d1437541b0
 SIZE (smalltalk-2.2.tar.gz) = 4187113
+MD5 (libffi-green.tar.gz) = 229290a13965c2cb8620a2679b8069aa
+SHA256 (libffi-green.tar.gz) = da3f82edfbad391dfe2a8b25bada6ff80db3a74faa8c551cdaec783b7039d7b2
+SIZE (libffi-green.tar.gz) = 376904

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604062115.k36LF3Yd003353>