Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 2003 06:00:29 -0700 (PDT)
From:      NINOMIYA Hideyuki <nin@Jp.FreeBSD.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/53474: Fix audio support for squeak-3
Message-ID:  <200307011300.h61D0TWE033984@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/53474; it has been noted by GNATS.

From: NINOMIYA Hideyuki <nin@Jp.FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/53474: Fix audio support for squeak-3
Date: Tue, 01 Jul 2003 21:52:44 +0900 (JST)

 Hi,
 
 Date: Fri, 20 Jun 2003 15:38:15 +0200
 From: Roland Jesse <roland.jesse@gmx.net>
 Message-Id: <200306201538.15619.roland.jesse@gmx.net>
 >   * We should add "PORTREVISION=1" in case the suggested changes get committed.
 >  
 >   > -CONFIGURE_ARGS+=	--libdir=${PREFIX}/share --with-audio
 >   > +CONFIGURE_ARGS+=	--libdir=${PREFIX}/share --with-audio=nas
   
 >   It is probably better to leave out the "--with-audio" switch here completely 
 >   as it is already taken care of:
 
 I made a mistake this
 sorry
   
 >   > +--- platforms/unix/config/inisqueak.in.orig	Mon Jun 16 11:14:41 2003
 >   > ++++ platforms/unix/config/inisqueak.in	Mon Jun 16 11:19:18 2003
   
 >   I don't see the need to add a new patch file to CVS. Two ${REINPLACE_CMD} 
 >   lines can handle this job directly from within the Makefile.
 
 I understood it
 
 I remade diff file
 
 * add new patch file 
 	files/patch-platforms-unix-config-configure
   This is GCC-3 -O2 problem solution, but this is not complete solution.
   -O optimize option is passable.
 
 new diff file from next line.
 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
 diff -urN squeak3.orig/Makefile squeak3/Makefile
 --- squeak3.orig/Makefile	Thu Jun 12 11:13:22 2003
 +++ squeak3/Makefile	Tue Jul  1 21:13:00 2003
 @@ -7,6 +7,7 @@
  
  PORTNAME=	squeak
  PORTVERSION=	3.5
 +PORTREVISION=	1
  CATEGORIES=	lang
  MASTER_SITES=	ftp://st.cs.uiuc.edu/Smalltalk/Squeak/3.5/ \
  		http://www-sor.inria.fr/~piumarta/squeak/unix/release/ \
 @@ -21,7 +22,6 @@
  
  # Don't set USE_ZIP as this breaks EXTRACT_CMD, EXTRACT_SUFX, and what not.
  BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
 -LIB_DEPENDS+=	audio.2:${PORTSDIR}/audio/nas
  
  SQUEAK_VERSION=	3.4-1
  SQUEAK_IMAGE_VERSION=	3.5
 @@ -42,12 +42,23 @@
  CONFIGURE_WRKSRC=	${WRKSRC}/build
  INSTALL_WRKSRC=	${CONFIGURE_WRKSRC}
  CONFIGURE_SCRIPT=	../platforms/unix/config/configure
 -CONFIGURE_ARGS+=	--libdir=${PREFIX}/share --with-audio
 +CONFIGURE_ARGS+=	--libdir=${PREFIX}/share
  # don't pass "-s" to install to avoid trying to strip a shell script
  CONFIGURE_ENV=	INSTALL_PROGRAM="${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}"
  BUILD_WRKSRC=	${WRKSRC}/build
  DIST_SUBDIR=	squeak
  
 +.ifdef (WITHOUT_AUDIO)
 +CONFIGURE_ARGS+=	--without-audio
 +.else
 +LIB_DEPENDS+=	audio.2:${PORTSDIR}/audio/nas
 +CONFIGURE_ARGS+=	--with-audio=nas
 +.endif
 +
 +.ifdef (WITH_MMX)
 +CONFIGURE_ARGS+=	--enable-mpg-mmx
 +.endif
 +
  MAKEFILE=	Makefile
  .ifdef (CC)
  MAKE_ARGS+=	CC=${CC}
 @@ -75,7 +86,11 @@
  	(cd ${PREFIX}/share/squeak && ${GZIP_CMD} ${file})
  .endfor
  # install inisqueak and change the build in version number on the fly
 -	${SED} -e 's|VERSION=3.4-5170|VERSION=3.5-5180|' ${WRKSRC}/build/inisqueak > ${PREFIX}/bin/inisqueak
 +	${SED} \
 +		-e 's|VERSION=3.4-5170|VERSION=3.5-5180|' \
 +		-e 's|IMAGE=squeak|IMAGE=Squeak3.5-5180|' \
 +		-e 's|CHANGES=squeak|CHANGES=Squeak3.5-5180|' \
 +		${WRKSRC}/build/inisqueak > ${PREFIX}/bin/inisqueak
  	${CHMOD} 755 ${PREFIX}/bin/inisqueak
  	${STRIP_CMD} ${PREFIX}/share/squeak/${SQUEAK_VERSION}/squeak
  	${CAT} ${PKGMESSAGE}
 diff -urN squeak3.orig/files/patch-platforms-unix-config-configure squeak3/files/patch-platforms-unix-config-configure
 --- squeak3.orig/files/patch-platforms-unix-config-configure	Thu Jan  1 09:00:00 1970
 +++ squeak3/files/patch-platforms-unix-config-configure	Tue Jul  1 19:05:52 2003
 @@ -0,0 +1,16 @@
 +--- platforms/unix/config/configure.orig	Tue Jul  1 18:53:26 2003
 ++++ platforms/unix/config/configure	Tue Jul  1 19:03:44 2003
 +@@ -9852,7 +9852,12 @@
 +   cat >conftest.$ac_ext <<_ACEOF
 + #line 9853 "configure"
 + #include "confdefs.h"
 +-main(){ double d= 1.0; return *(int *)&d == 0;}
 ++int main(void)
 ++{
 ++	union { double d; int i[ sizeof(double) / sizeof(int) ]; } d;
 ++	d.d = 1.0;
 ++	return d.i[0] == 0;
 ++}
 + _ACEOF
 + rm -f conftest$ac_exeext
 + if { (eval echo "$as_me:9858: \"$ac_link\"") >&5
 
 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
 
 o.k. ?
 ----
 *******************************************************************
 * This message is a thing by output of automatic translation.     *
 * Therefore it will be for there to be a lot of funny parts.      *
 * Please approve it.                                              *
 *******************************************************************
 NINOMIYA(family name) Hideyuki(personal name)         @ ehime japan
 mailto:nin@polka.plala.or.jp              mailto:nin@Jp.FreeBSD.org
 PGP-Fingerprint: 6C59 EC08 5B23 6490 44D0  7CD3 DA40 219F 7114 8553
 PGP-Public-Key: http://www10.plala.or.jp/key-com/pgp/public-key.txt
 



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