Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/languages
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv24745/languages
Added Files:
gcc45-10.4.info gcc45-x86_64.info gcc45.info gcc45.patch
Log Message:
add gcc45 suite to stable...looks pretty sane and functional, needed by
upcoming gnome/kde suite
--- NEW FILE: gcc45.patch ---
--- gcc/libjava/configure.ac.org 2008-01-25 18:55:24.000000000 -0500
+++ gcc/libjava/configure.ac 2008-01-25 18:56:16.000000000 -0500
@@ -82,6 +82,13 @@
[allow rebuilding of .class and .h files]))
AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes)
+AC_ARG_ENABLE(libjava-multilib,
+ AS_HELP_STRING([--enable-libjava-multilib], [build libjava as
multilib]))
+if test "$enable_libjava_multilib" = no; then
+ multilib=no
+ ac_configure_args="$ac_configure_args --disable-multilib"
+fi
+
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
GCC_NO_EXECUTABLES
--- gcc/libjava/configure.org 2008-01-25 18:56:41.000000000 -0500
+++ gcc/libjava/configure 2008-01-25 18:57:21.000000000 -0500
@@ -1018,6 +1018,8 @@
--enable-gconf-peer compile GConf native peers for util.preferences
--enable-java-maintainer-mode
allow rebuilding of .class and .h files
+ --enable-libjava-multilib
+ build libjava as multilib
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-maintainer-mode enable make rules and dependencies not useful
@@ -1850,6 +1852,16 @@
fi
+# Check whether --enable-libjava-multilib was given.
+if test "${enable_libjava_multilib+set}" = set; then
+ enableval=$enable_libjava_multilib;
+fi
+
+if test "$enable_libjava_multilib" = no; then
+ multilib=no
+ ac_configure_args="$ac_configure_args --disable-multilib"
+fi
+
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
diff -uNr gcc-4.5-20100413/gcc/config/i386/i386.c
gcc-4.5-20100413.dragonegg/gcc/config/i386/i386.c
--- gcc-4.5-20100413/gcc/config/i386/i386.c 2010-04-13 20:56:39.000000000
-0400
+++ gcc-4.5-20100413.dragonegg/gcc/config/i386/i386.c 2010-04-13
21:01:03.000000000 -0400
@@ -4992,7 +4992,8 @@
case, we return the original mode and warn ABI change if CUM isn't
NULL. */
-static enum machine_mode
+enum machine_mode type_natural_mode (const_tree, CUMULATIVE_ARGS *);
+enum machine_mode
type_natural_mode (const_tree type, CUMULATIVE_ARGS *cum)
{
enum machine_mode mode = TYPE_MODE (type);
@@ -5123,7 +5124,9 @@
See the x86-64 PS ABI for details.
*/
-static int
+int classify_argument (enum machine_mode, const_tree,
+ enum x86_64_reg_class [MAX_CLASSES], int);
+int
classify_argument (enum machine_mode mode, const_tree type,
enum x86_64_reg_class classes[MAX_CLASSES], int bit_offset)
{
@@ -5504,7 +5507,8 @@
/* Examine the argument and return set number of register required in each
class. Return 0 iff parameter should be passed in memory. */
-static int
+int examine_argument (enum machine_mode, const_tree, int, int *, int *);
+int
examine_argument (enum machine_mode mode, const_tree type, int in_return,
int *int_nregs, int *sse_nregs)
{
@@ -6186,7 +6190,8 @@
/* Return true when TYPE should be 128bit aligned for 32bit argument passing
ABI. */
-static bool
+bool contains_aligned_value_p (tree);
+bool
contains_aligned_value_p (tree type)
{
enum machine_mode mode = TYPE_MODE (type);
diff -uNr gcc-4.5.0/gcc/configure gcc-4.5.0.fixes/gcc/configure
--- gcc-4.5.0/gcc/configure 2010-03-26 01:40:32.000000000 -0400
+++ gcc-4.5.0.fixes/gcc/configure 2010-04-24 19:31:05.000000000 -0400
@@ -25160,17 +25160,25 @@
pluginlibs=
if test x"$enable_plugin" = x"yes"; then
+ case "${host}" in
+ *-*-darwin*)
+ export_sym_check="$gcc_cv_nm -g"
+ ;;
+ *)
+ export_sym_check="$gcc_cv_objdump -T"
+ ;;
+ esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
$as_echo_n "checking for exported symbols... " >&6; }
echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
- if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+ if $export_sym_check conftest | grep foobar > /dev/null; then
: # No need to use a flag
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
$as_echo_n "checking for -rdynamic... " >&6; }
${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null
2>&1
- if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+ if $export_sym_check conftest | grep foobar > /dev/null; then
pluginlibs="-rdynamic"
else
enable_plugin=no
@@ -25242,7 +25250,14 @@
# Check that we can build shared objects with -fPIC -shared
saved_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -fPIC -shared"
+ case "${host}" in
+ *-*-darwin*)
+ LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
+ ;;
+ *)
+ LDFLAGS="$LDFLAGS -fPIC -shared"
+ ;;
+ esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
$as_echo_n "checking for -fPIC -shared... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
diff -uNr gcc-4.5.0/gcc/configure.ac gcc-4.5.0.fixes/gcc/configure.ac
--- gcc-4.5.0/gcc/configure.ac 2010-03-26 01:40:32.000000000 -0400
+++ gcc-4.5.0.fixes/gcc/configure.ac 2010-04-24 19:30:30.000000000 -0400
@@ -4381,15 +4381,23 @@
pluginlibs=
if test x"$enable_plugin" = x"yes"; then
+ case "${host}" in
+ *-*-darwin*)
+ export_sym_check="$gcc_cv_nm -g"
+ ;;
+ *)
+ export_sym_check="$gcc_cv_objdump -T"
+ ;;
+ esac
AC_MSG_CHECKING([for exported symbols])
echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
- if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+ if $export_sym_check conftest | grep foobar > /dev/null; then
: # No need to use a flag
else
AC_MSG_CHECKING([for -rdynamic])
${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null
2>&1
- if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
+ if $export_sym_check conftest | grep foobar > /dev/null; then
pluginlibs="-rdynamic"
else
enable_plugin=no
@@ -4406,7 +4414,14 @@
# Check that we can build shared objects with -fPIC -shared
saved_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -fPIC -shared"
+ case "${host}" in
+ *-*-darwin*)
+ LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
+ ;;
+ *)
+ LDFLAGS="$LDFLAGS -fPIC -shared"
+ ;;
+ esac
AC_MSG_CHECKING([for -fPIC -shared])
AC_TRY_LINK(
[extern int X;],[return X == 0;],
diff -uNr gcc-4.5.0/gcc/testsuite/lib/plugin-support.exp
gcc-4.5.0.fixes/gcc/testsuite/lib/plugin-support.exp
--- gcc-4.5.0/gcc/testsuite/lib/plugin-support.exp 2010-03-05
17:52:02.000000000 -0500
+++ gcc-4.5.0.fixes/gcc/testsuite/lib/plugin-support.exp 2010-04-24
19:27:28.000000000 -0400
@@ -88,6 +88,10 @@
set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared"
+ if { [ ishost *-*-darwin* ] } {
+ set optstr [concat $optstr "-undefined dynamic_lookup"]
+ }
+
# Temporarily switch to the environment for the plugin compiler.
restore_ld_library_path_env_vars
set status [remote_exec build "$PLUGINCC $PLUGINCFLAGS $plugin_src $optstr
-o $plugin_lib"]
diff -uNr gcc-4.5.0/libjava/testsuite/Makefile.am
gcc-4.5.0.fixes/libjava/testsuite/Makefile.am
--- gcc-4.5.0/libjava/testsuite/Makefile.am 2007-12-17 12:06:44.000000000
-0500
+++ gcc-4.5.0.fixes/libjava/testsuite/Makefile.am 2010-04-24
19:33:11.000000000 -0400
@@ -24,6 +24,27 @@
.PHONY: compile-tests
+# We need more things in site.exp, but automake completely controls the
+# creation of that file; there's no way to append to it without messing up
+# the dependency chains. So we overrule automake. This rule is exactly
+# what it would have generated, plus our own additions.
+site.exp: Makefile
+ @echo '# edit the last section' >>site.tmp
+ @echo "set objdir `pwd`" >>site.tmp
+ @echo 'set build_alias "$(build_alias)"' >>site.tmp
+ @echo 'set build_triplet $(build_triplet)' >>site.tmp
+ @echo 'set host_alias "$(host_alias)"' >>site.tmp
+ @echo 'set host_triplet $(host_triplet)' >>site.tmp
+ @echo 'set target_alias "$(target_alias)"' >>site.tmp
+ @echo 'set target_triplet $(target_triplet)' >>site.tmp
+ @echo 'set libiconv "$(LIBICONV)"' >>site.tmp
+ @echo '## All variables above are generated by configure. Do Not Edit
##' >>site.tmp
+ @test ! -f site.exp || \
+ sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
+ @-rm -f site.bak
+ @test ! -f site.exp || mv site.exp site.bak
+ @mv site.tmp site.exp
+
check-am: compile-tests
compile-tests:
diff -uNr gcc-4.5.0/libjava/testsuite/Makefile.in
gcc-4.5.0.fixes/libjava/testsuite/Makefile.in
--- gcc-4.5.0/libjava/testsuite/Makefile.in 2010-04-02 14:18:06.000000000
-0400
+++ gcc-4.5.0.fixes/libjava/testsuite/Makefile.in 2010-04-24
19:33:32.000000000 -0400
@@ -388,25 +388,6 @@
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi; \
exit $$exit_status
-site.exp: Makefile
- @echo 'Making a new site.exp file...'
- @echo '## these variables are automatically generated by make ##'
>site.tmp
- @echo '# Do not edit here. If you wish to override these values'
>>site.tmp
- @echo '# edit the last section' >>site.tmp
- @echo 'set srcdir $(srcdir)' >>site.tmp
- @echo "set objdir `pwd`" >>site.tmp
- @echo 'set build_alias "$(build_alias)"' >>site.tmp
- @echo 'set build_triplet $(build_triplet)' >>site.tmp
- @echo 'set host_alias "$(host_alias)"' >>site.tmp
- @echo 'set host_triplet $(host_triplet)' >>site.tmp
- @echo 'set target_alias "$(target_alias)"' >>site.tmp
- @echo 'set target_triplet $(target_triplet)' >>site.tmp
- @echo '## All variables above are generated by configure. Do Not Edit
##' >>site.tmp
- @test ! -f site.exp || \
- sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
- @-rm -f site.bak
- @test ! -f site.exp || mv site.exp site.bak
- @mv site.tmp site.exp
distclean-DEJAGNU:
-rm -f site.exp site.bak
@@ -557,6 +538,27 @@
.PHONY: compile-tests
+# We need more things in site.exp, but automake completely controls the
+# creation of that file; there's no way to append to it without messing up
+# the dependency chains. So we overrule automake. This rule is exactly
+# what it would have generated, plus our own additions.
+site.exp: Makefile
+ @echo '# edit the last section' >>site.tmp
+ @echo "set objdir `pwd`" >>site.tmp
+ @echo 'set build_alias "$(build_alias)"' >>site.tmp
+ @echo 'set build_triplet $(build_triplet)' >>site.tmp
+ @echo 'set host_alias "$(host_alias)"' >>site.tmp
+ @echo 'set host_triplet $(host_triplet)' >>site.tmp
+ @echo 'set target_alias "$(target_alias)"' >>site.tmp
+ @echo 'set target_triplet $(target_triplet)' >>site.tmp
+ @echo 'set libiconv "$(LIBICONV)"' >>site.tmp
+ @echo '## All variables above are generated by configure. Do Not Edit
##' >>site.tmp
+ @test ! -f site.exp || \
+ sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
+ @-rm -f site.bak
+ @test ! -f site.exp || mv site.exp site.bak
+ @mv site.tmp site.exp
+
check-am: compile-tests
compile-tests:
diff -uNr gcc-4.5.0/libjava/testsuite/libjava.jni/jni.exp
gcc-4.5.0.fixes/libjava/testsuite/libjava.jni/jni.exp
--- gcc-4.5.0/libjava/testsuite/libjava.jni/jni.exp 2009-08-12
12:34:00.000000000 -0400
+++ gcc-4.5.0.fixes/libjava/testsuite/libjava.jni/jni.exp 2010-04-24
19:31:58.000000000 -0400
@@ -251,7 +251,11 @@
}
proc gcj_jni_get_cxxflags_invocation {} {
+ global libiconv
global LIBJAVA
+ if {$libiconv == ""} {
+ set libiconv "-liconv"
+ }
if [info exists LIBJAVA] {
set libjava $LIBJAVA;
} else {
@@ -267,7 +271,7 @@
# to just make the linker find libgcc using -L options.
# Similar logic applies to libgcj.
if { [istarget "*-*-darwin*"] } {
- lappend cxxflags -shared-libgcc -lgcj -liconv
+ eval lappend cxxflags "-shared-libgcc -lgcj $libiconv"
}
if { [istarget "*-*-solaris*"] } {
--- gcc-4.5.0/libgomp/configure.orig 2010-06-03 13:05:23.000000000 -0400
+++ gcc-4.5.0/libgomp/configure 2010-06-03 13:41:14.000000000 -0400
@@ -15379,7 +15379,8 @@
/* end confdefs.h. */
#include <pthread.h>
__thread int a;
- static int *a_in_other_thread;
+ int *a_in_other_thread;
+ int *a_in_main_thread;
static void *
thread_func (void *arg)
{
@@ -15391,11 +15392,10 @@
{
pthread_t thread;
void *thread_retval;
- int *a_in_main_thread;
+ a_in_main_thread = &a;
if (pthread_create (&thread, (pthread_attr_t *)0,
thread_func, (void *)0))
return 0;
- a_in_main_thread = &a;
if (pthread_join (thread, &thread_retval))
return 0;
return (a_in_other_thread == a_in_main_thread);
--- gcc-4.5.0/libjava/configure.orig 2010-06-03 13:50:53.000000000 -0400
+++ gcc-4.5.0/libjava/configure 2010-06-03 13:51:44.000000000 -0400
@@ -24341,7 +24341,8 @@
/* end confdefs.h. */
#include <pthread.h>
__thread int a;
- static int *a_in_other_thread;
+ int *a_in_other_thread;
+ int *a_in_main_thread;
static void *
thread_func (void *arg)
{
@@ -24353,11 +24354,10 @@
{
pthread_t thread;
void *thread_retval;
- int *a_in_main_thread;
+ a_in_main_thread = &a;
if (pthread_create (&thread, (pthread_attr_t *)0,
thread_func, (void *)0))
return 0;
- a_in_main_thread = &a;
if (pthread_join (thread, &thread_retval))
return 0;
return (a_in_other_thread == a_in_main_thread);
--- gcc-4.5.0/libstdc++-v3/configure.orig 2010-06-03 13:48:33.000000000
-0400
+++ gcc-4.5.0/libstdc++-v3/configure 2010-06-03 13:55:44.000000000 -0400
@@ -25572,7 +25572,8 @@
/* end confdefs.h. */
#include <pthread.h>
__thread int a;
- static int *a_in_other_thread;
+ int *a_in_other_thread;
+ int *a_in_main_thread;
static void *
thread_func (void *arg)
{
@@ -25584,11 +25585,10 @@
{
pthread_t thread;
void *thread_retval;
- int *a_in_main_thread;
+ a_in_main_thread = &a;
if (pthread_create (&thread, (pthread_attr_t *)0,
thread_func, (void *)0))
return 0;
- a_in_main_thread = &a;
if (pthread_join (thread, &thread_retval))
return 0;
return (a_in_other_thread == a_in_main_thread);
@@ -44510,7 +44510,8 @@
/* end confdefs.h. */
#include <pthread.h>
__thread int a;
- static int *a_in_other_thread;
+ int *a_in_other_thread;
+ int *a_in_main_thread;
static void *
thread_func (void *arg)
{
@@ -44522,11 +44523,10 @@
{
pthread_t thread;
void *thread_retval;
- int *a_in_main_thread;
+ a_in_main_thread = &a;
if (pthread_create (&thread, (pthread_attr_t *)0,
thread_func, (void *)0))
return 0;
- a_in_main_thread = &a;
if (pthread_join (thread, &thread_retval))
return 0;
return (a_in_other_thread == a_in_main_thread);
@@ -50595,7 +50595,8 @@
/* end confdefs.h. */
#include <pthread.h>
__thread int a;
- static int *a_in_other_thread;
+ int *a_in_other_thread;
+ int *a_in_main_thread;
static void *
thread_func (void *arg)
{
@@ -50607,11 +50608,10 @@
{
pthread_t thread;
void *thread_retval;
- int *a_in_main_thread;
+ a_in_main_thread = &a;
if (pthread_create (&thread, (pthread_attr_t *)0,
thread_func, (void *)0))
return 0;
- a_in_main_thread = &a;
if (pthread_join (thread, &thread_retval))
return 0;
return (a_in_other_thread == a_in_main_thread);
--- NEW FILE: gcc45.info ---
Info2: <<
Package: gcc45
Version: 4.5.0
Revision: 1000
Source: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%v/gcc-%v.tar.bz2
Source-MD5: ff27b7c4a5d5060c8a8543a44abca31f
Source2: ftp://sourceware.org/pub/java/ecj-latest.jar
Source2-MD5: fd299f26c02268878b5d6c0e86f57c43
PatchFile: %n.patch
PatchFile-MD5: 5952b42bc2117cbb896cf47426684442
Distribution: 10.5, 10.6
Type: -64bit -64bit
Architecture: powerpc, i386
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
Conflicts: gcc42, gcc43, gcc44, gcc46
Replaces: gcc42, gcc43, gcc44, gcc46
Depends: %N-compiler (= %v-%r)
BuildDepends: gmp (>= 4.3.2-1), libmpfr1 (>= 2.4.2-2), libiconv-dev,
gettext-tools, libgettext8-dev, ppl (>= 0.10.2-1), cloog (>= 0.15.9-1), libmpc2
(>= 0.8.1-1), xcode (>= 3.1.2), fink (>= 0.27.2)
ConfigureParams: <<
--prefix=%p/lib/gcc4.5 --mandir=%p/share/man --infodir=%p/lib/gcc4.5/info
--enable-languages=c,c++,fortran,objc,obj-c++,java \
--with-gmp=%p --with-libiconv-prefix=%p --with-ppl=%p --with-cloog=%p
--with-mpc=%p --with-system-zlib \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.5
<<
InfoTest: <<
TestDepends: autogen, dejagnu
TestScript: cd ../darwin_objdir; make -k check || :
<<
InfoDocs: cp-tools.info gcc.info gfortran.info cpp.info gccinstall.info
libgomp.info cppinternals.info gccint.info gcj.info
CompileScript: <<
#!/bin/bash -ev
set +x
if [ -e /usr/local/lib/libgmp.a ] || [ -e /usr/local/lib/libgmp.dylib ]; then
echo "-----WARNING-----WARNING-----WARNING-----"
echo "You seem to have GMP installed in /usr/local."
echo "This is known to cause %N to fail to build."
echo "Please move aside /usr/local and try again."
echo "-----WARNING-----WARNING-----WARNING-----"
exit 1
fi
set -x
ulimit -s `ulimit -s`
mv ../ecj-latest.jar ecj.jar
mkdir ../darwin_objdir
cd ../darwin_objdir
if [ "%m" = "powerpc" ]; then
../gcc-%v/configure %c --disable-libjava-multilib
else
../gcc-%v/configure %c
fi
num_cpu=$(echo `sysctl -n hw.ncpu`)
make -j $num_cpu
## make check requires autogen, dejagnu and expect, and should be run, in
darwin_objdir, after install.
## on 32-bit processors use
# make -k check
## on 64-bit processors use
# make -k check RUNTESTFLAGS="--target_board=unix'{-m32,-m64}'"
<<
InstallScript: <<
#!/bin/sh -ev
darwinvers=`uname -r`
cd ../darwin_objdir
make install DESTDIR=%d
mkdir -p %i/bin
# Add symlinks to recreate previous naming of executables in %p/bin
# as well as %p/lib/gcc4.5/bin and new -fsf-4.5 naming in %p/bin.
binfiles="gcc g++ c++ cpp gcov"
for binfile in $binfiles ; do
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/lib/gcc4.5/bin/$binfile-4
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-4
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-fsf-4.5
done
binfiles="gfortran gcj gcj-dbtool gcjh gij gjnih grmiregistry grmic jcf-dump
jv-convert jv-scan"
for binfile in $binfiles ; do
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/lib/gcc4.5/bin/$binfile
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-fsf-4.5
done
# Add symlinks for manpages under old names.
man1files="cpp g++ gcc gcov"
for man1file in $man1files ; do
ln -s %p/share/man/man1/$man1file-fsf-4.5.1 %i/share/man/man1/$man1file-4.1
done
man1files="aot-compile gappletviewer gc-analyze gcj-dbtool gcj gcjh gfortran
gij gjar gjarsigner gjavah gjdoc gkeytool gnative2ascii gorbd grmic grmid
grmiregistry gserialver gtnameserv jcf-dump jv-convert rebuild-gcj-db"
for man1file in $man1files ; do
ln -s %p/share/man/man1/$man1file-fsf-4.5.1 %i/share/man/man1/$man1file.1
done
# Rename manpages with -fsf-4.5 suffix and create symlinks to old names.
man7files="fsf-funding gfdl gpl"
for man7file in $man7files ; do
mv %i/share/man/man7/$man7file.7 %i/share/man/man7/$man7file-fsf-4.5.7
ln -s %p/share/man/man7/$man7file-fsf-4.5.7 %i/share/man/man7/$man7file.7
done
# Add dir for installed info files, and link them to %i/share/info.
# the %i/lib/gcc4.5/info/* files will go into the -compiler package
# and the files in %i/share/info go into the main package, this allows
# the info files for specific compiler versions to be accessed with
# e.g. `info -d /fink_install_dir/lib/gcc4.5/info gcc', but the "main" info
files will
# be available for the install gcc4N package in %p/share/info, as usual
install -d -m 755 %i/share/info
for infofile in $(find %i/lib/gcc4.5/info -name '*.info*'); do
infobase=$(basename $infofile)
case $infofile in
*info) /usr/bin/install-info --infodir=%i/lib/gcc4.5/info ${infofile} ;;
esac
ln -s %p/lib/gcc4.5/info/$infobase %i/share/info/$infobase
done
if [ "%m" != "powerpc" ] ; then
cp %b/gcc/config/darwin-sections.def
%i/lib/gcc4.5/lib/gcc/%m-apple-darwin${darwinvers}/%v/plugin/include/config
fi
# remove build path from .la files
perl -pi -e "s, \-L[^ ']*/%n-%v-%r/darwin_objdir/[^ ']*,,g" `find
%i/lib/gcc4.5/lib -name '*.la'`
<<
SplitOff: <<
Package: %N-shlibs
Replaces: gcc4 (<= 20050130-4), gfortran-shlibs
Provides: gfortran-shlibs
Description: Shared libraries for gcc4
DocFiles: gcc/COPYING gcc/COPYING.LIB
Homepage: http://gcc.gnu.org/
Files: <<
lib/gcc4.5/lib/libgfortran.3*.dylib
lib/gcc4.5/lib/libffi.4*.dylib
lib/gcc4.5/lib/libstdc++.6*.dylib
lib/gcc4.5/lib/libgcc_s.1*.dylib
lib/gcc4.5/lib/libgcc_ext.1*.dylib
lib/gcc4.5/lib/libgcj.11*.dylib
lib/gcc4.5/lib/libgcj-tools.11*.dylib
lib/gcc4.5/lib/libgij.11*.dylib
lib/gcc4.5/lib/libssp.0*.dylib
lib/gcc4.5/lib/libobjc-gnu.2*.dylib
lib/gcc4.5/lib/libgomp.1*.dylib
lib/gcc4.5/lib/gcj-4.5.0-11
lib/gcc4.5/%lib/libgfortran.3*.dylib
lib/gcc4.5/%lib/libffi.4*.dylib
(%m != powerpc) lib/gcc4.5/%lib/libgcj.11*.dylib
(%m != powerpc) lib/gcc4.5/%lib/libgcj-tools.11*.dylib
(%m != powerpc) lib/gcc4.5/%lib/libgij.11*.dylib
lib/gcc4.5/%lib/libstdc++.6*.dylib
lib/gcc4.5/%lib/libssp.0*.dylib
lib/gcc4.5/%lib/libobjc-gnu.2*.dylib
lib/gcc4.5/%lib/libgomp.1*.dylib
(%m != powerpc) lib/gcc4.5/%lib/gcj-4.5.0-11
<<
Shlibs: <<
%p/lib/gcc4.5/lib/libgfortran.3.dylib 4.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libffi.4.dylib 5.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libstdc++.6.dylib 7.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcc_s.1.dylib 1.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcj.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcj-tools.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgij.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libssp.0.dylib 1.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libobjc-gnu.2.dylib 3.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgomp.1.dylib 2.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/gcj-4.5.0-11/libjvm.dylib 0.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/%lib/libgfortran.3.dylib 4.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libffi.4.dylib 5.0.0 %n (>= 4.5-1) 64
(%m != powerpc) %p/lib/gcc4.5/%lib/libgcj.11.dylib 12.0.0 %n (>= 4.5-1) 64
(%m != powerpc) %p/lib/gcc4.5/%lib/libgcj-tools.11.dylib 12.0.0 %n (>=
4.5-1) 64
(%m != powerpc) %p/lib/gcc4.5/%lib/libgij.11.dylib 12.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libstdc++.6.dylib 7.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libssp.0.dylib 1.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libobjc-gnu.2.dylib 3.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libgomp.1.dylib 2.0.0 %n (>= 4.5-1) 64
(%m != powerpc) %p/lib/gcc4.5/%lib/gcj-4.5.0-11/libjvm.dylib 0.0.0 %n (>=
4.5-1) 64
<<
<<
SplitOff2: <<
Package: %N-compiler
Depends: gmp-shlibs (>= 4.3.2-1), libgmpxx-shlibs (>= 4.3.2-1),
libmpfr1-shlibs (>= 2.4.2-2), %N-shlibs (= %v-%r), libiconv,
libgettext8-shlibs, ppl-shlibs (>= 0.10.2-1), cloog-shlibs (>= 0.15.9-1),
libmpc2-shlibs (>= 0.8.1-1), xcode (>= 3.1.2)
Description: Compiler Binaries for gcc45.
DocFiles: gcc/COPYING gcc/COPYING.LIB
Homepage: http://gcc.gnu.org/
Files: <<
bin/*-fsf-4.5
lib/gcc4.5
share/man/man1/*-fsf-4.5.1
share/man/man3/*-fsf-4.5.3
share/man/man7/*-fsf-4.5.7
<<
<<
PostInstScript: <<
update-alternatives --install %p/share/man/man3/ffi.3 ffi
%p/share/man/man3/%N_ffi.3 60 \
--slave %p/share/man/man3/ffi_call.3 ffi_call
%p/share/man/man3/%N_ffi_call.3 \
--slave %p/share/man/man3/ffi_prep_cif.3 ffi_prep_cif
%p/share/man/man3/%N_ffi_prep_cif.3
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove ffi %p/share/man/man3/%N_ffi.3
fi
<<
License: GPL
Description: GNU Compiler Collection Version 4.5
DescDetail: <<
GCC, the GNU Compiler Collection, includes front ends for
C, C++, Objective-C, Objective-C++, Fortran, Java, and Ada.
.
C, C++, Objective C and Fortran and Java are included in this package.
.
The C and C++ compilers are named gcc-4 and g++-4 to avoid
conflicts with gcc and g++ installed by the Apple Developer Tools
<<
DescPackaging: <<
The multilib build of libjava is disabled for PowerPC since the
64-bit support is incomplete on Darwin for libffi.
Build with -fsf-4.5 suffix and place non-overlapping files into new
gcc45-compiler
package which can co-exist with other gcc4x-compiler packages. Overlapping
files
are left in main gcc45 package which still conflicts with other gcc4x packages.
<<
Homepage: http://gcc.gnu.org/
Maintainer: Jack Howarth <[email protected]>
<<
--- NEW FILE: gcc45-x86_64.info ---
Info2: <<
Package: gcc45
Version: 4.5.0
Revision: 1000
Source: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%v/gcc-%v.tar.bz2
Source-MD5: ff27b7c4a5d5060c8a8543a44abca31f
Source2: ftp://sourceware.org/pub/java/ecj-latest.jar
Source2-MD5: fd299f26c02268878b5d6c0e86f57c43
PatchFile: %n.patch
PatchFile-MD5: 5952b42bc2117cbb896cf47426684442
Distribution: 10.5, 10.6
Type: -64bit .
Architecture: x86_64
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
Conflicts: gcc42, gcc43, gcc44, gcc46
Replaces: gcc42, gcc43, gcc44, gcc46
Depends: %N-compiler (= %v-%r)
BuildDepends: gmp (>= 4.3.2-1), libmpfr1 (>= 2.4.2-2), libiconv-dev,
gettext-tools, libgettext8-dev, ppl (>= 0.10.2-1), cloog (>= 0.15.9-1), libmpc2
(>= 0.8.1-1), xcode (>= 3.1.2), fink (>= 0.27.2)
ConfigureParams: <<
--prefix=%p/lib/gcc4.5 --mandir=%p/share/man --infodir=%p/lib/gcc4.5/info
--enable-languages=c,c++,fortran,objc,obj-c++,java \
--with-gmp=%p --with-libiconv-prefix=%p --with-ppl=%p --with-cloog=%p
--with-mpc=%p --with-system-zlib \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.5
<<
InfoTest: <<
TestDepends: autogen, dejagnu
TestScript: cd ../darwin_objdir; make -k check || :
<<
InfoDocs: cp-tools.info gcc.info gfortran.info cpp.info gccinstall.info
libgomp.info cppinternals.info gccint.info gcj.info
CompileScript: <<
#!/bin/bash -ev
set +x
if [ -e /usr/local/lib/libgmp.a ] || [ -e /usr/local/lib/libgmp.dylib ]; then
echo "-----WARNING-----WARNING-----WARNING-----"
echo "You seem to have GMP installed in /usr/local."
echo "This is known to cause %N to fail to build."
echo "Please move aside /usr/local and try again."
echo "-----WARNING-----WARNING-----WARNING-----"
exit 1
fi
set -x
ulimit -s `ulimit -s`
mv ../ecj-latest.jar ecj.jar
mkdir ../darwin_objdir
cd ../darwin_objdir
../gcc-%v/configure %c
num_cpu=$(echo `sysctl -n hw.ncpu`)
make -j $num_cpu
## make check requires autogen, dejagnu and expect, and should be run, in
darwin_objdir, after install.
## on 32-bit processors use
# make -k check
## on 64-bit processors use
# make -k check RUNTESTFLAGS="--target_board=unix'{-m32,-m64}'"
<<
InstallScript: <<
#!/bin/sh -ev
darwinvers=`uname -r`
cd ../darwin_objdir
make install DESTDIR=%d
mkdir -p %i/bin
# Add symlinks to recreate previous naming of executables in %p/bin
# as well as %p/lib/gcc4.5/bin and new -fsf-4.5 naming in %p/bin.
binfiles="gcc g++ c++ cpp gcov"
for binfile in $binfiles ; do
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/lib/gcc4.5/bin/$binfile-4
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-4
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-fsf-4.5
done
binfiles="gfortran gcj gcj-dbtool gcjh gij gjnih grmiregistry grmic jcf-dump
jv-convert jv-scan"
for binfile in $binfiles ; do
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/lib/gcc4.5/bin/$binfile
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-fsf-4.5
done
# Add symlinks for manpages under old names.
man1files="cpp g++ gcc gcov"
for man1file in $man1files ; do
ln -s %p/share/man/man1/$man1file-fsf-4.5.1 %i/share/man/man1/$man1file-4.1
done
man1files="aot-compile gappletviewer gc-analyze gcj-dbtool gcj gcjh gfortran
gij gjar gjarsigner gjavah gjdoc gkeytool gnative2ascii gorbd grmic grmid
grmiregistry gserialver gtnameserv jcf-dump jv-convert rebuild-gcj-db"
for man1file in $man1files ; do
ln -s %p/share/man/man1/$man1file-fsf-4.5.1 %i/share/man/man1/$man1file.1
done
# Rename manpages with -fsf-4.5 suffix and create symlinks to old names.
man7files="fsf-funding gfdl gpl"
for man7file in $man7files ; do
mv %i/share/man/man7/$man7file.7 %i/share/man/man7/$man7file-fsf-4.5.7
ln -s %p/share/man/man7/$man7file-fsf-4.5.7 %i/share/man/man7/$man7file.7
done
# Add dir for installed info files, and link them to %i/share/info.
# the %i/lib/gcc4.5/info/* files will go into the -compiler package
# and the files in %i/share/info go into the main package, this allows
# the info files for specific compiler versions to be accessed with
# e.g. `info -d /fink_install_dir/lib/gcc4.5/info gcc', but the "main" info
files will
# be available for the install gcc4N package in %p/share/info, as usual
install -d -m 755 %i/share/info
for infofile in $(find %i/lib/gcc4.5/info -name '*.info*'); do
infobase=$(basename $infofile)
case $infofile in
*info) /usr/bin/install-info --infodir=%i/lib/gcc4.5/info ${infofile} ;;
esac
ln -s %p/lib/gcc4.5/info/$infobase %i/share/info/$infobase
done
if [ "%m" != "powerpc" ] ; then
cp %b/gcc/config/darwin-sections.def
%i/lib/gcc4.5/lib/gcc/%m-apple-darwin${darwinvers}/%v/plugin/include/config
fi
# remove build path from .la files
perl -pi -e "s, \-L[^ ']*/%n-%v-%r/darwin_objdir/[^ ']*,,g" `find
%i/lib/gcc4.5/lib -name '*.la'`
<<
SplitOff: <<
Package: %N-shlibs
Replaces: gcc4 (<= 20050130-4), gfortran-shlibs
Provides: gfortran-shlibs
Description: Shared libraries for gcc4
DocFiles: gcc/COPYING gcc/COPYING.LIB
Homepage: http://gcc.gnu.org/
Files: <<
lib/gcc4.5/lib/libgfortran.3*.dylib
lib/gcc4.5/lib/libffi.4*.dylib
lib/gcc4.5/lib/libstdc++.6*.dylib
lib/gcc4.5/lib/libgcc_s.1*.dylib
lib/gcc4.5/lib/libgcc_ext.1*.dylib
lib/gcc4.5/lib/libgcj.11*.dylib
lib/gcc4.5/lib/libgcj-tools.11*.dylib
lib/gcc4.5/lib/libgij.11*.dylib
lib/gcc4.5/lib/libssp.0*.dylib
lib/gcc4.5/lib/libobjc-gnu.2*.dylib
lib/gcc4.5/lib/libgomp.1*.dylib
lib/gcc4.5/lib/gcj-4.5.0-11
lib/gcc4.5/lib/i386/libgfortran.3*.dylib
lib/gcc4.5/lib/i386/libffi.4*.dylib
lib/gcc4.5/lib/i386/libgcj.11*.dylib
lib/gcc4.5/lib/i386/libgcj-tools.11*.dylib
lib/gcc4.5/lib/i386/libgij.11*.dylib
lib/gcc4.5/lib/i386/libstdc++.6*.dylib
lib/gcc4.5/lib/i386/libssp.0*.dylib
lib/gcc4.5/lib/i386/libobjc-gnu.2*.dylib
lib/gcc4.5/lib/i386/libgomp.1*.dylib
lib/gcc4.5/lib/i386/gcj-4.5.0-11
<<
Shlibs: <<
%p/lib/gcc4.5/lib/libgfortran.3.dylib 4.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libffi.4.dylib 5.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libstdc++.6.dylib 7.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcc_s.1.dylib 1.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcj.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcj-tools.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgij.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libssp.0.dylib 1.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libobjc-gnu.2.dylib 3.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgomp.1.dylib 2.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/gcj-4.5.0-11/libjvm.dylib 0.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/i386/libgfortran.3.dylib 4.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libffi.4.dylib 5.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libgcj.11.dylib 12.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libgcj-tools.11.dylib 12.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libgij.11.dylib 12.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libstdc++.6.dylib 7.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libssp.0.dylib 1.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libobjc-gnu.2.dylib 3.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/libgomp.1.dylib 2.0.0 %n (>= 4.5-1) 32
%p/lib/gcc4.5/lib/i386/gcj-4.5.0-11/libjvm.dylib 0.0.0 %n (>= 4.5-1) 32
<<
<<
SplitOff2: <<
Package: %N-compiler
Depends: gmp-shlibs (>= 4.3.2-1), libgmpxx-shlibs (>= 4.3.2-1),
libmpfr1-shlibs (>= 2.4.2-2), %N-shlibs (= %v-%r), libiconv,
libgettext8-shlibs, ppl-shlibs (>= 0.10.2-1), cloog-shlibs (>= 0.15.9-1),
libmpc2-shlibs (>= 0.8.1-1), xcode (>= 3.1.2)
Description: Compiler Binaries for gcc45.
DocFiles: gcc/COPYING gcc/COPYING.LIB
Homepage: http://gcc.gnu.org/
Files: <<
bin/*-fsf-4.5
lib/gcc4.5
share/man/man1/*-fsf-4.5.1
share/man/man3/*-fsf-4.5.3
share/man/man7/*-fsf-4.5.7
<<
<<
PostInstScript: <<
update-alternatives --install %p/share/man/man3/ffi.3 ffi
%p/share/man/man3/%N_ffi.3 60 \
--slave %p/share/man/man3/ffi_call.3 ffi_call
%p/share/man/man3/%N_ffi_call.3 \
--slave %p/share/man/man3/ffi_prep_cif.3 ffi_prep_cif
%p/share/man/man3/%N_ffi_prep_cif.3
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove ffi %p/share/man/man3/%N_ffi.3
fi
<<
License: GPL
Description: GNU Compiler Collection Version 4.5
DescDetail: <<
GCC, the GNU Compiler Collection, includes front ends for
C, C++, Objective-C, Objective-C++, Fortran, Java, and Ada.
.
C, C++, Objective C and Fortran and Java are included in this package.
.
The C and C++ compilers are named gcc-4 and g++-4 to avoid
conflicts with gcc and g++ installed by the Apple Developer Tools
<<
DescPackaging: <<
Build with -fsf-4.5 suffix and place non-overlapping files into new
gcc45-compiler
package which can co-exist with other gcc4x-compiler packages. Overlapping
files
are left in main gcc45 package which still conflicts with other gcc4x packages.
<<
Homepage: http://gcc.gnu.org/
Maintainer: Jack Howarth <[email protected]>
<<
--- NEW FILE: gcc45-10.4.info ---
Info2: <<
Package: gcc45
Version: 4.5.0
Revision: 1000
Source: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%v/gcc-%v.tar.bz2
Source-MD5: ff27b7c4a5d5060c8a8543a44abca31f
Source2: ftp://sourceware.org/pub/java/ecj-latest.jar
Source2-MD5: fd299f26c02268878b5d6c0e86f57c43
PatchFile: %n.patch
PatchFile-MD5: 5952b42bc2117cbb896cf47426684442
Distribution: 10.4
Type: -64bit -64bit
Architecture: powerpc, i386
NoSetCPPFLAGS: True
NoSetLDFLAGS: True
Conflicts: gcc42, gcc43, gcc44, gcc46
Replaces: gcc42, gcc43, gcc44, gcc46
Depends: %N-compiler (= %v-%r)
BuildDepends: gmp (>= 4.3.2-1), libmpfr1 (>= 2.4.2-2), libiconv-dev,
gettext-tools, libgettext8-dev, libmpc2 (>= 0.8.1-1), xcode (>= 2.5), fink (>=
0.27.2)
ConfigureParams: <<
--prefix=%p/lib/gcc4.5 --mandir=%p/share/man --infodir=%p/lib/gcc4.5/info
--enable-languages=c,c++,fortran,objc,obj-c++,java \
--with-gmp=%p --with-libiconv-prefix=%p --with-mpc=%p --with-system-zlib \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.5
<<
InfoTest: <<
TestDepends: autogen, dejagnu
TestScript: cd ../darwin_objdir; make -k check || :
<<
InfoDocs: cp-tools.info gcc.info gfortran.info cpp.info gccinstall.info
libgomp.info cppinternals.info gccint.info gcj.info
CompileScript: <<
#!/bin/bash -ev
set +x
if [ -e /usr/local/lib/libgmp.a ] || [ -e /usr/local/lib/libgmp.dylib ]; then
echo "-----WARNING-----WARNING-----WARNING-----"
echo "You seem to have GMP installed in /usr/local."
echo "This is known to cause %N to fail to build."
echo "Please move aside /usr/local and try again."
echo "-----WARNING-----WARNING-----WARNING-----"
exit 1
fi
set -x
ulimit -s `ulimit -s`
mv ../ecj-latest.jar ecj.jar
mkdir ../darwin_objdir
cd ../darwin_objdir
../gcc-%v/configure %c --disable-libjava-multilib
num_cpu=$(echo `sysctl -n hw.ncpu`)
make -j $num_cpu
## make check requires autogen, dejagnu and expect, and should be run, in
darwin_objdir, after install.
## on 32-bit processors use
# make -k check
## on 64-bit processors use
# make -k check RUNTESTFLAGS="--target_board=unix'{-m32,-m64}'"
<<
InstallScript: <<
#!/bin/sh -ev
darwinvers=`uname -r`
cd ../darwin_objdir
make install DESTDIR=%d
mkdir -p %i/bin
# Add symlinks to recreate previous naming of executables in %p/bin
# as well as %p/lib/gcc4.5/bin and new -fsf-4.5 naming in %p/bin.
binfiles="gcc g++ c++ cpp gcov"
for binfile in $binfiles ; do
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/lib/gcc4.5/bin/$binfile-4
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-4
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-fsf-4.5
done
binfiles="gfortran gcj gcj-dbtool gcjh gij gjnih grmiregistry grmic jcf-dump
jv-convert jv-scan"
for binfile in $binfiles ; do
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/lib/gcc4.5/bin/$binfile
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile
ln -s %p/lib/gcc4.5/bin/$binfile-fsf-4.5 %i/bin/$binfile-fsf-4.5
done
# Add symlinks for manpages under old names.
man1files="cpp g++ gcc gcov"
for man1file in $man1files ; do
ln -s %p/share/man/man1/$man1file-fsf-4.5.1 %i/share/man/man1/$man1file-4.1
done
man1files="aot-compile gappletviewer gc-analyze gcj-dbtool gcj gcjh gfortran
gij gjar gjarsigner gjavah gjdoc gkeytool gnative2ascii gorbd grmic grmid
grmiregistry gserialver gtnameserv jcf-dump jv-convert rebuild-gcj-db"
for man1file in $man1files ; do
ln -s %p/share/man/man1/$man1file-fsf-4.5.1 %i/share/man/man1/$man1file.1
done
# Rename manpages with -fsf-4.5 suffix and create symlinks to old names.
man7files="fsf-funding gfdl gpl"
for man7file in $man7files ; do
mv %i/share/man/man7/$man7file.7 %i/share/man/man7/$man7file-fsf-4.5.7
ln -s %p/share/man/man7/$man7file-fsf-4.5.7 %i/share/man/man7/$man7file.7
done
# Add dir for installed info files, and link them to %i/share/info.
# the %i/lib/gcc4.5/info/* files will go into the -compiler package
# and the files in %i/share/info go into the main package, this allows
# the info files for specific compiler versions to be accessed with
# e.g. `info -d /fink_install_dir/lib/gcc4.5/info gcc', but the "main" info
files will
# be available for the install gcc4N package in %p/share/info, as usual
install -d -m 755 %i/share/info
for infofile in $(find %i/lib/gcc4.5/info -name '*.info*'); do
infobase=$(basename $infofile)
case $infofile in
*info) /usr/bin/install-info --infodir=%i/lib/gcc4.5/info ${infofile} ;;
esac
ln -s %p/lib/gcc4.5/info/$infobase %i/share/info/$infobase
done
if [ "%m" != "powerpc" ] ; then
cp %b/gcc/config/darwin-sections.def
%i/lib/gcc4.5/lib/gcc/%m-apple-darwin${darwinvers}/%v/plugin/include/config
fi
# remove build path from .la files
perl -pi -e "s, \-L[^ ']*/%n-%v-%r/darwin_objdir/[^ ']*,,g" `find
%i/lib/gcc4.5/lib -name '*.la'`
<<
SplitOff: <<
Package: %N-shlibs
Replaces: gcc4 (<= 20050130-4), gfortran-shlibs
Provides: gfortran-shlibs
Description: Shared libraries for gcc4
DocFiles: gcc/COPYING gcc/COPYING.LIB
Homepage: http://gcc.gnu.org/
Files: <<
lib/gcc4.5/lib/libgfortran.3*.dylib
lib/gcc4.5/lib/libffi.4*.dylib
lib/gcc4.5/lib/libstdc++.6*.dylib
lib/gcc4.5/lib/libgcc_s.1*.dylib
lib/gcc4.5/lib/libgcc_ext.1*.dylib
lib/gcc4.5/lib/libgcj.11*.dylib
lib/gcc4.5/lib/libgcj-tools.11*.dylib
lib/gcc4.5/lib/libgij.11*.dylib
lib/gcc4.5/lib/libssp.0*.dylib
lib/gcc4.5/lib/libobjc-gnu.2*.dylib
lib/gcc4.5/lib/libgomp.1*.dylib
lib/gcc4.5/lib/gcj-4.5.0-11
lib/gcc4.5/%lib/libgfortran.3*.dylib
lib/gcc4.5/%lib/libffi.4*.dylib
lib/gcc4.5/%lib/libstdc++.6*.dylib
lib/gcc4.5/%lib/libssp.0*.dylib
lib/gcc4.5/%lib/libobjc-gnu.2*.dylib
lib/gcc4.5/%lib/libgomp.1*.dylib
<<
Shlibs: <<
%p/lib/gcc4.5/lib/libgfortran.3.dylib 4.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libffi.4.dylib 5.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libstdc++.6.dylib 7.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcc_s.1.dylib 1.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcj.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgcj-tools.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgij.11.dylib 12.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libssp.0.dylib 1.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libobjc-gnu.2.dylib 3.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/libgomp.1.dylib 2.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/lib/gcj-4.5.0-11/libjvm.dylib 0.0.0 %n (>= 4.5-1)
%p/lib/gcc4.5/%lib/libgfortran.3.dylib 4.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libffi.4.dylib 5.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libstdc++.6.dylib 7.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libssp.0.dylib 1.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libobjc-gnu.2.dylib 3.0.0 %n (>= 4.5-1) 64
%p/lib/gcc4.5/%lib/libgomp.1.dylib 2.0.0 %n (>= 4.5-1) 64
<<
<<
SplitOff2: <<
Package: %N-compiler
Depends: gmp-shlibs (>= 4.3.2-1), libgmpxx-shlibs (>= 4.3.2-1),
libmpfr1-shlibs (>= 2.4.2-2), %N-shlibs (= %v-%r), libiconv,
libgettext8-shlibs, libmpc2-shlibs (>= 0.8.1-1), xcode (>= 2.5)
Description: Compiler Binaries for gcc45.
DocFiles: gcc/COPYING gcc/COPYING.LIB
Homepage: http://gcc.gnu.org/
Files: <<
bin/*-fsf-4.5
lib/gcc4.5
share/man/man1/*-fsf-4.5.1
share/man/man3/*-fsf-4.5.3
share/man/man7/*-fsf-4.5.7
<<
<<
PostInstScript: <<
update-alternatives --install %p/share/man/man3/ffi.3 ffi
%p/share/man/man3/%N_ffi.3 60 \
--slave %p/share/man/man3/ffi_call.3 ffi_call
%p/share/man/man3/%N_ffi_call.3 \
--slave %p/share/man/man3/ffi_prep_cif.3 ffi_prep_cif
%p/share/man/man3/%N_ffi_prep_cif.3
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove ffi %p/share/man/man3/%N_ffi.3
fi
<<
License: GPL
Description: GNU Compiler Collection Version 4.5
DescDetail: <<
GCC, the GNU Compiler Collection, includes front ends for
C, C++, Objective-C, Objective-C++, Fortran, Java, and Ada.
.
C, C++, Objective C and Fortran and Java are included in this package.
.
The C and C++ compilers are named gcc-4 and g++-4 to avoid
conflicts with gcc and g++ installed by the Apple Developer Tools
<<
DescPackaging: <<
The multilib build of libjava is disabled for PowerPC since the
64-bit support is incomplete on Darwin for libffi.
Build with -fsf-4.5 suffix and place non-overlapping files into new
gcc45-compiler
package which can co-exist with other gcc4x-compiler packages. Overlapping
files
are left in main gcc45 package which still conflicts with other gcc4x packages.
<<
Homepage: http://gcc.gnu.org/
Maintainer: Jack Howarth <[email protected]>
<<
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs