View | Details | Raw Unified | Return to bug 196911
Collapse All | Expand All

(-)Makefile (-42 / +6 lines)
Lines 1-54 Link Here
1
# Created by: Lev Serebryakov <lev@serebryakov.spb.ru>
1
# Created by: Lev Serebryakov <lev@serebryakov.spb.ru>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	binutils
5
PORTVERSION=	${BINUTILVERSION}
6
PORTREVISION=	1
7
PORTEPOCH=	1
4
PORTEPOCH=	1
8
CATEGORIES=	devel
9
MASTER_SITES=	${MASTER_SITE_SOURCEWARE}
10
MASTER_SITE_SUBDIR=	binutils/releases
11
PKGNAMEPREFIX=	mingw32-
5
PKGNAMEPREFIX=	mingw32-
12
6
13
MAINTAINER=	cyberbotx@cyberbotx.com
7
MAINTAINER=	cyberbotx@cyberbotx.com
14
COMMENT=	GNU Binutils for Windows cross-development
8
COMMENT=	GNU Binutils for Windows cross-development
15
9
16
BINUTILVERSION=	2.24
10
MASTERDIR=	${.CURDIR}/../binutils
11
PLIST=		${.CURDIR}/pkg-plist
17
12
18
USES=		gmake iconv tar:bzip2
13
BUTARGET=	${PKGNAMEPREFIX:S/-$//}
19
GNU_CONFIGURE=	yes
20
CONFIGURE_ARGS=	--target=${PKGNAMEPREFIX:S/-$//} \
21
		--with-gcc --with-gnu-ld --with-gnu-as \
22
		--disable-nls --disable-win32-registry \
23
		--disable-shared --disable-werror
24
INFO_PATH=	${PKGNAMEPREFIX:S/-$//}/info
25
14
26
INFO=		as bfd binutils ld configure gprof standards
15
INFO=		as bfd binutils gprof ld
27
INFO_PATH=	${PKGNAMEPREFIX:S/-$//}/info
16
INFO_PATH=	${BUTARGET}/info
28
17
29
PLIST_SUB+=	BINUTILS_TARG=${PKGNAMEPREFIX:S/-$//}
18
.include "${MASTERDIR}/Makefile"
30
31
BINARIES=	addr2line ar as c++filt gprof ld nm objcopy objdump ranlib \
32
		readelf size strings strip dlltool dllwrap windmc windres
33
34
post-install:
35
.for F in ${BINARIES}
36
	@${LN} -f ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}$F \
37
		${STAGEDIR}${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F
38
.endfor
39
40
#
41
# UGLY HACK
42
#
43
add-plist-post:
44
	@${ECHO_CMD} "@unexec ${RMDIR} -p %D/${PKGNAMEPREFIX:S/-$//}/info 2> /dev/null || true" >> ${TMPPLIST}
45
	@${ECHO_CMD} "@unexec ${RMDIR} -p %D/${PKGNAMEPREFIX:S/-$//} 2> /dev/null || true" >> ${TMPPLIST}
46
.if (defined(PREFIX) && defined(LOCALBASE) && defined(LINUXBASE) \
47
	&& ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} \
48
	&& ${PREFIX} != "/usr")
49
	@${ECHO_CMD} "@unexec ${RMDIR} %D 2> /dev/null || true" >> ${TMPPLIST}
50
.else
51
	@${DO_NADA}
52
.endif
53
54
.include <bsd.port.mk>
(-)distinfo (-2 lines)
Lines 1-2 Link Here
1
SHA256 (binutils-2.24.tar.bz2) = e5e8c5be9664e7f7f96e0d09919110ab5ad597794f5b1809871177a0f0f14137
2
SIZE (binutils-2.24.tar.bz2) = 22716802
(-)files/patch-Makefile.in (-21 lines)
Lines 1-21 Link Here
1
--- Makefile.in.orig	Mon Dec  4 14:32:56 2006
2
+++ Makefile.in	Mon Dec  4 14:33:11 2006
3
@@ -17927,12 +17927,12 @@
4
 maybe-install-libiberty: install-libiberty
5
 
6
 install-libiberty: installdirs
7
-	@: $(MAKE); $(unstage)
8
-	@r=`${PWD_COMMAND}`; export r; \
9
-	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10
-	$(HOST_EXPORTS) \
11
-	(cd $(HOST_SUBDIR)/libiberty && \
12
-	  $(MAKE) $(FLAGS_TO_PASS)  install)
13
+#	@: $(MAKE); $(unstage)
14
+#	@r=`${PWD_COMMAND}`; export r; \
15
+#	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16
+#	$(HOST_EXPORTS) \
17
+#	(cd $(HOST_SUBDIR)/libiberty && \
18
+#	  $(MAKE) $(FLAGS_TO_PASS)  install)
19
 
20
 @endif libiberty
21
 
(-)files/patch-configure (-11 lines)
Lines 1-11 Link Here
1
--- configure.orig	Tue Jan  4 01:27:41 2005
2
+++ configure	Sun Apr 10 13:54:26 2005
3
@@ -2801,7 +2801,7 @@
4
 done
5
 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
6
 
7
-for ac_prog in 'bison -y' byacc yacc
8
+for ac_prog in byacc yacc
9
 do
10
 # Extract the first word of "$ac_prog", so it can be a program name with args.
11
 set dummy $ac_prog; ac_word=$2
(-)pkg-descr (-5 lines)
Lines 1-5 Link Here
1
FSF binutils-2.13 for Windows cross-development.
2
3
This port is needed by devel/mingw32-gcc
4
5
WWW: http://www.mingw.org/
(-)pkg-plist (-45 / +37 lines)
Lines 17-64 Link Here
17
man/man1/mingw32-strip.1.gz
17
man/man1/mingw32-strip.1.gz
18
man/man1/mingw32-windmc.1.gz
18
man/man1/mingw32-windmc.1.gz
19
man/man1/mingw32-windres.1.gz
19
man/man1/mingw32-windres.1.gz
20
%%BINUTILS_TARG%%/bin/addr2line
20
mingw32/bin/ar
21
%%BINUTILS_TARG%%/bin/ar
21
mingw32/bin/as
22
%%BINUTILS_TARG%%/bin/as
22
mingw32/bin/dlltool
23
%%BINUTILS_TARG%%/bin/c++filt
23
mingw32/bin/ld
24
%%BINUTILS_TARG%%/bin/dlltool
24
mingw32/bin/ld.bfd
25
%%BINUTILS_TARG%%/bin/dllwrap
25
mingw32/bin/nm
26
%%BINUTILS_TARG%%/bin/gprof
26
mingw32/bin/objcopy
27
%%BINUTILS_TARG%%/bin/ld
27
mingw32/bin/objdump
28
%%BINUTILS_TARG%%/bin/ld.bfd
28
mingw32/bin/ranlib
29
%%BINUTILS_TARG%%/bin/nm
29
mingw32/bin/strip
30
%%BINUTILS_TARG%%/bin/objcopy
30
mingw32/bin/size
31
%%BINUTILS_TARG%%/bin/objdump
31
mingw32/lib/ldscripts/i386pe.x
32
%%BINUTILS_TARG%%/bin/ranlib
32
mingw32/lib/ldscripts/i386pe.xa
33
%%BINUTILS_TARG%%/bin/readelf
33
mingw32/lib/ldscripts/i386pe.xbn
34
%%BINUTILS_TARG%%/bin/strip
34
mingw32/lib/ldscripts/i386pe.xn
35
%%BINUTILS_TARG%%/bin/size
35
mingw32/lib/ldscripts/i386pe.xr
36
%%BINUTILS_TARG%%/bin/strings
36
mingw32/lib/ldscripts/i386pe.xu
37
%%BINUTILS_TARG%%/bin/windmc
37
bin/mingw32-addr2line
38
%%BINUTILS_TARG%%/bin/windres
38
bin/mingw32-ar
39
%%BINUTILS_TARG%%/lib/ldscripts/i386pe.x
39
bin/mingw32-as
40
%%BINUTILS_TARG%%/lib/ldscripts/i386pe.xa
40
bin/mingw32-c++filt
41
%%BINUTILS_TARG%%/lib/ldscripts/i386pe.xbn
41
bin/mingw32-dlltool
42
%%BINUTILS_TARG%%/lib/ldscripts/i386pe.xn
42
bin/mingw32-dllwrap
43
%%BINUTILS_TARG%%/lib/ldscripts/i386pe.xr
43
bin/mingw32-elfedit
44
%%BINUTILS_TARG%%/lib/ldscripts/i386pe.xu
44
bin/mingw32-gprof
45
bin/%%BINUTILS_TARG%%-addr2line
45
bin/mingw32-ld
46
bin/%%BINUTILS_TARG%%-ar
46
bin/mingw32-ld.bfd
47
bin/%%BINUTILS_TARG%%-as
47
bin/mingw32-nm
48
bin/%%BINUTILS_TARG%%-c++filt
48
bin/mingw32-objcopy
49
bin/%%BINUTILS_TARG%%-dlltool
49
bin/mingw32-objdump
50
bin/%%BINUTILS_TARG%%-dllwrap
50
bin/mingw32-ranlib
51
bin/%%BINUTILS_TARG%%-elfedit
51
bin/mingw32-readelf
52
bin/%%BINUTILS_TARG%%-gprof
52
bin/mingw32-strip
53
bin/%%BINUTILS_TARG%%-ld
53
bin/mingw32-size
54
bin/%%BINUTILS_TARG%%-ld.bfd
54
bin/mingw32-strings
55
bin/%%BINUTILS_TARG%%-nm
55
bin/mingw32-windmc
56
bin/%%BINUTILS_TARG%%-objcopy
56
bin/mingw32-windres
57
bin/%%BINUTILS_TARG%%-objdump
58
bin/%%BINUTILS_TARG%%-ranlib
59
bin/%%BINUTILS_TARG%%-readelf
60
bin/%%BINUTILS_TARG%%-strip
61
bin/%%BINUTILS_TARG%%-size
62
bin/%%BINUTILS_TARG%%-strings
63
bin/%%BINUTILS_TARG%%-windmc
64
bin/%%BINUTILS_TARG%%-windres

Return to bug 196911