diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-09-10 14:31:51 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-09-10 14:31:51 +0800 |
commit | 8c4ff83ca0ef35d4c232e0da9293b301a2087853 (patch) | |
tree | 0704f1cb2349c3a74093f99c20a8458fea79426d | |
parent | 66651affedb9beff39b3d9ced552ce9e4e4799ec (diff) | |
download | freebsd-ports-gnome-8c4ff83ca0ef35d4c232e0da9293b301a2087853.tar.gz freebsd-ports-gnome-8c4ff83ca0ef35d4c232e0da9293b301a2087853.tar.zst freebsd-ports-gnome-8c4ff83ca0ef35d4c232e0da9293b301a2087853.zip |
undo delete port
-rw-r--r-- | devel/objprelink/Makefile | 60 | ||||
-rw-r--r-- | devel/objprelink/distinfo | 2 | ||||
-rw-r--r-- | devel/objprelink/files/patch-binutils::libiberty::Makefile.in | 7 | ||||
-rw-r--r-- | devel/objprelink/files/patch-configure | 11 | ||||
-rw-r--r-- | devel/objprelink/files/patch-objprelink.c | 19 | ||||
-rw-r--r-- | devel/objprelink/pkg-comment | 1 | ||||
-rw-r--r-- | devel/objprelink/pkg-descr | 8 | ||||
-rw-r--r-- | devel/objprelink/pkg-plist | 1 |
8 files changed, 109 insertions, 0 deletions
diff --git a/devel/objprelink/Makefile b/devel/objprelink/Makefile new file mode 100644 index 000000000000..804ecd928280 --- /dev/null +++ b/devel/objprelink/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: objprelink +# Date Created: 18th November 2001 +# Whom: Dominic Marks <dominic_marks@btinternet.com> +# +# $FreeBSD$ +# + +PORTNAME= objprelink +PORTVERSION= 1.0 +PORTREVISION= 2 +CATEGORIES= devel kde +MASTER_SITES= http://leon.bottou.com/objprelink/ \ + ${MASTER_SITE_SOURCEWARE} +MASTER_SITE_SUBDIR= binutils/releases +DISTFILES= objprelink.c.gz binutils-${BINUTILS_VER}.tar.bz2 + +MAINTAINER= dominic_marks@btinternet.com + +LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext + +ONLY_FOR_ARCHS= i386 +BINUTILS_VER= 2.11.2 +USE_BZIP2= yes +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/objprelink + +do-extract: + @${MKDIR} ${WRKSRC} + @cd ${WRKSRC} && ${TAR} xfy ${DISTDIR}/binutils-${BINUTILS_VER}.tar.bz2 + @${MV} ${WRKSRC}/binutils-${BINUTILS_VER} ${WRKSRC}/binutils + @cd ${WRKSRC} && ${GZIP_CMD} -dc ${DISTDIR}/objprelink.c.gz \ + > ${WRKSRC}/objprelink.c + +do-configure: + @cd ${WRKSRC}/binutils/bfd/ && \ + ${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \ + CFLAGS="$$CFLAGS -I${LOCALBASE}/include" \ + CPPFLAGS="$$CPPFLAGS -I${LOCALBASE}/include" ./configure \ + --disable-shared --enable-static + @cd ${WRKSRC}/binutils/libiberty/ && \ + ${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \ + CFLAGS="$$CFLAGS -I./../include" \ + CPPFLAGS="$$CPPFLAGS -I./../include" ./configure \ + --disable-shared --enable-static + +do-build: +.for DIR in bfd libiberty + @cd ${WRKSRC}/binutils/${DIR}/ && ${GMAKE} +.endfor + @${CC} ${CFLAGS} -static -o ${WRKSRC}/objprelink ${WRKSRC}/objprelink.c \ + ${WRKSRC}/binutils/bfd/libbfd.a \ + ${WRKSRC}/binutils/libiberty/libiberty.a \ + -I${WRKSRC}/binutils/include -I${WRKSRC}/binutils/bfd \ + -I${WRKSRC}/binutils/libiberty \ + -L${LOCALBASE}/lib -lintl -liconv + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/devel/objprelink/distinfo b/devel/objprelink/distinfo new file mode 100644 index 000000000000..fcc86a9cec4a --- /dev/null +++ b/devel/objprelink/distinfo @@ -0,0 +1,2 @@ +MD5 (objprelink.c.gz) = 53c4c235ec3da92e4a9fb50ffa54beeb +MD5 (binutils-2.11.2.tar.bz2) = cf268611a9d8c0924d514ccaf0360caa diff --git a/devel/objprelink/files/patch-binutils::libiberty::Makefile.in b/devel/objprelink/files/patch-binutils::libiberty::Makefile.in new file mode 100644 index 000000000000..09c73e1b13d7 --- /dev/null +++ b/devel/objprelink/files/patch-binutils::libiberty::Makefile.in @@ -0,0 +1,7 @@ +--- binutils/libiberty/Makefile.in.orig Sat Dec 9 10:10:41 2000 ++++ binutils/libiberty/Makefile.in Wed Apr 3 19:01:38 2002 +@@ -95,3 +95,3 @@ + # Subdirectories to recurse into. We need to override this during cleaning +-SUBDIRS = testsuite ++SUBDIRS = # testsuite + diff --git a/devel/objprelink/files/patch-configure b/devel/objprelink/files/patch-configure new file mode 100644 index 000000000000..cb8170ab1566 --- /dev/null +++ b/devel/objprelink/files/patch-configure @@ -0,0 +1,11 @@ +--- binutils/bfd/configure Tue Jun 19 14:58:08 2001 ++++ binutils/bfd/configure.new Wed Nov 28 16:29:21 2001 +@@ -5016,7 +5016,7 @@ + TRAD_HEADER='"hosts/symmetry.h"' + ;; + i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) +- COREFILE=trad-core.lo ++ COREFILE='' + TRAD_HEADER='"hosts/i386bsd.h"' + ;; + i[3456]86-*-freebsd*) diff --git a/devel/objprelink/files/patch-objprelink.c b/devel/objprelink/files/patch-objprelink.c new file mode 100644 index 000000000000..d5c84d6c5876 --- /dev/null +++ b/devel/objprelink/files/patch-objprelink.c @@ -0,0 +1,19 @@ +$FreeBSD$ + +--- objprelink.c.orig Tue Dec 4 14:01:10 2001 ++++ objprelink.c Tue Dec 4 14:01:49 2001 +@@ -239,12 +239,12 @@ + is_vt_section(bfd *abfd, asection *p) + { + const char *name = bfd_section_name(abfd, p); +- static const char prefix[] = ".gnu.linkonce.d.__vt_"; ++ static const char prefix[] = ".gnu.linkonce.d._vt"; + static flagword w = (SEC_ALLOC|SEC_LOAD|SEC_RELOC|SEC_DATA|SEC_LINK_ONCE); + flagword f = bfd_get_section_flags (abfd, p); + if (f & w == w) + if (!strncmp(name, prefix, sizeof(prefix)-1)) +- return name + sizeof(prefix)-6; ++ return name + sizeof(prefix)-4; + return false; + } + diff --git a/devel/objprelink/pkg-comment b/devel/objprelink/pkg-comment new file mode 100644 index 000000000000..b75e07f98bee --- /dev/null +++ b/devel/objprelink/pkg-comment @@ -0,0 +1 @@ +An object file processor which improves dynamic linking performance diff --git a/devel/objprelink/pkg-descr b/devel/objprelink/pkg-descr new file mode 100644 index 000000000000..3a6f9d755bc7 --- /dev/null +++ b/devel/objprelink/pkg-descr @@ -0,0 +1,8 @@ +This is a port of objprelink. This application is used on object files +before the linking stage to improve performance in applications which +rely heavily upon dynamic linking performance such as a Qt and KDE. + +WWW: http://leon.bottou.com/objprelink/ + +- Dominic +dominic_marks@btinternet.com diff --git a/devel/objprelink/pkg-plist b/devel/objprelink/pkg-plist new file mode 100644 index 000000000000..c95bf5ed9e0b --- /dev/null +++ b/devel/objprelink/pkg-plist @@ -0,0 +1 @@ +bin/objprelink |