aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-11-27 03:33:32 +0800
committerjylefort <jylefort@FreeBSD.org>2005-11-27 03:33:32 +0800
commit25d7748e44f7b73841fc73a91ea7c6ea648d02cf (patch)
tree05b3998d8243ae8e50de16495cede558037012ed
parentb50995d2cf524f5c83b12848a254c33361c1cc7c (diff)
downloadfreebsd-ports-gnome-25d7748e44f7b73841fc73a91ea7c6ea648d02cf.tar.gz
freebsd-ports-gnome-25d7748e44f7b73841fc73a91ea7c6ea648d02cf.tar.zst
freebsd-ports-gnome-25d7748e44f7b73841fc73a91ea7c6ea648d02cf.zip
Add linux-libgcc.
This port contains a version of libgcc which is newer than the one shipped with the default linux_base port. WWW: http://gcc.gnu.org/
-rw-r--r--lang/Makefile1
-rw-r--r--lang/linux-libgcc/Makefile32
-rw-r--r--lang/linux-libgcc/distinfo.amd643
-rw-r--r--lang/linux-libgcc/distinfo.i3863
-rw-r--r--lang/linux-libgcc/pkg-deinstall10
-rw-r--r--lang/linux-libgcc/pkg-descr4
-rw-r--r--lang/linux-libgcc/pkg-install11
7 files changed, 64 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 41706c18d01f..807040332cb3 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -124,6 +124,7 @@
SUBDIR += librep
SUBDIR += libutils
SUBDIR += linux-j
+ SUBDIR += linux-libgcc
SUBDIR += logo
SUBDIR += lua
SUBDIR += lua-mode.el
diff --git a/lang/linux-libgcc/Makefile b/lang/linux-libgcc/Makefile
new file mode 100644
index 000000000000..992690d7387d
--- /dev/null
+++ b/lang/linux-libgcc/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: linux-libgcc
+# Date created: 25 Nov 2005
+# Whom: jylefort@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= libgcc
+DISTVERSION= 3.4.4-2
+CATEGORIES= audio linux
+MASTER_SITE_SUBDIR= updates/3/${LINUX_ARCH}/
+DISTNAME= ${PORTNAME}-${DISTVERSION}.fc3
+
+MAINTAINER= jylefort@FreeBSD.org
+COMMENT= Linux libgcc support library
+
+ONLY_FOR_ARCHS= i386 amd64
+DESCR= ${PKGDIR}/pkg-descr
+
+# Do not conflict with linux_base's libgcc: install in /lib/libgcc
+# (note that we do not set INSTALLS_LINUX_SHLIB because we must
+# prepend /lib/libgcc to /etc/ld.so.conf before running ldconfig,
+# which we do in pkg-install).
+
+post-extract:
+ @${MKDIR} ${WRKSRC}/lib/libgcc
+ @${MV} -f ${WRKSRC}/lib/libgcc_s* ${WRKSRC}/lib/libgcc
+
+post-install:
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include "${.CURDIR}/../../audio/linux-openal/bsd.linux.mk"
diff --git a/lang/linux-libgcc/distinfo.amd64 b/lang/linux-libgcc/distinfo.amd64
new file mode 100644
index 000000000000..37b589df7b2d
--- /dev/null
+++ b/lang/linux-libgcc/distinfo.amd64
@@ -0,0 +1,3 @@
+MD5 (libgcc-3.4.4-2.fc3.x86_64.rpm) = a6a09c9f901a0b69bcce9430e0b5c561
+SHA256 (libgcc-3.4.4-2.fc3.x86_64.rpm) = 144497c7c1198797660bb95085a29698b89b44e1cb8ea8025587beede6b28767
+SIZE (libgcc-3.4.4-2.fc3.x86_64.rpm) = 60899
diff --git a/lang/linux-libgcc/distinfo.i386 b/lang/linux-libgcc/distinfo.i386
new file mode 100644
index 000000000000..340ef3a8925e
--- /dev/null
+++ b/lang/linux-libgcc/distinfo.i386
@@ -0,0 +1,3 @@
+MD5 (libgcc-3.4.4-2.fc3.i386.rpm) = 0a617a9704b080fd4333d35f2c3da813
+SHA256 (libgcc-3.4.4-2.fc3.i386.rpm) = 9074ebfbd2672bf7f2e1568ec7dfd642db4fcf7007151fb8144da29b428bb22a
+SIZE (libgcc-3.4.4-2.fc3.i386.rpm) = 56146
diff --git a/lang/linux-libgcc/pkg-deinstall b/lang/linux-libgcc/pkg-deinstall
new file mode 100644
index 000000000000..248f3eea9127
--- /dev/null
+++ b/lang/linux-libgcc/pkg-deinstall
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ "$2" != "POST-DEINSTALL" ] && exit 0
+
+if grep -q '^/lib/libgcc$' $PKG_PREFIX/etc/ld.so.conf; then
+ grep -v '^/lib/libgcc$' $PKG_PREFIX/etc/ld.so.conf > $PKG_PREFIX/etc/ld.so.conf.tmp || exit 1
+ mv -f $PKG_PREFIX/etc/ld.so.conf.tmp $PKG_PREFIX/etc/ld.so.conf || exit 1
+fi
+
+$PKG_PREFIX/sbin/ldconfig || true
diff --git a/lang/linux-libgcc/pkg-descr b/lang/linux-libgcc/pkg-descr
new file mode 100644
index 000000000000..2e40f03dda97
--- /dev/null
+++ b/lang/linux-libgcc/pkg-descr
@@ -0,0 +1,4 @@
+This port contains a version of libgcc which is newer than the one shipped
+with the default linux_base port.
+
+WWW: http://gcc.gnu.org/
diff --git a/lang/linux-libgcc/pkg-install b/lang/linux-libgcc/pkg-install
new file mode 100644
index 000000000000..9800e91be886
--- /dev/null
+++ b/lang/linux-libgcc/pkg-install
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+[ "$2" != "POST-INSTALL" ] && exit 0
+
+if ! grep -q '^/lib/libgcc$' $PKG_PREFIX/etc/ld.so.conf; then
+ echo '/lib/libgcc' > $PKG_PREFIX/etc/ld.so.conf.tmp || exit 1
+ cat $PKG_PREFIX/etc/ld.so.conf >> $PKG_PREFIX/etc/ld.so.conf.tmp || exit 1
+ mv -f $PKG_PREFIX/etc/ld.so.conf.tmp $PKG_PREFIX/etc/ld.so.conf || exit 1
+fi
+
+$PKG_PREFIX/sbin/ldconfig || true