Changeset 98117
- Timestamp:
- Sep 25, 2012, 1:16:38 PM (12 years ago)
- Location:
- trunk/dports/devel/elftoolchain
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/devel/elftoolchain/Portfile
r96252 r98117 4 4 5 5 name elftoolchain 6 version 0. 5.16 version 0.6.1 7 7 categories devel 8 8 platforms darwin … … 19 19 use_bzip2 yes 20 20 21 checksums rmd160 4 be0adf8349c764474810e23cfb022c655002d77\22 sha256 b34351b26503ce7f106426d926a87e6c6adef81e324ec7052f3e09108ae7ab8121 checksums rmd160 4268371905cb6e1741371cfb957bf8a7cb04ce18 \ 22 sha256 a3e0c11ed9b0fe2f40b687b11849e7d52cb6675ebc60745c85d37a3ae4272cab 23 23 24 24 depends_build port:bsdmake \ … … 29 29 30 30 patchfiles patch-mk.diff \ 31 patch-disable-tests.diff \32 31 patch-libelf-config.diff \ 33 32 patch-common-elftc.diff \ … … 71 70 # Add elftc- prefix to all binaries to avoid conflicts 72 71 post-destroot { 73 foreach f [glob ${destroot}${prefix}/bin/*] {74 set nf [file dirname $f]/elftc-[file tail $f]75 move $ f$nf76 ln -s $ nf ${destroot}${prefix}/libexec/${name}/[file tail $f]72 foreach f [glob -tails -directory ${destroot}${prefix}/bin *] { 73 set nf elftc-$f 74 move ${destroot}${prefix}/bin/$f ${destroot}${prefix}/bin/$nf 75 ln -s ${prefix}/bin/$nf ${destroot}${prefix}/libexec/${name}/$f 77 76 } 78 77 foreach f [glob ${destroot}${prefix}/share/man/man{1,5}/*] { -
trunk/dports/devel/elftoolchain/files/patch-byteorder-macros.diff
r96252 r98117 1 --- ar/write.c 2012-02-25 00:59:04.000000000 +0100 2 +++ ar/write.c 2012-02-25 00:59:16.000000000 +0100 1 --- ar/write.c 2012-04-24 04:33:40.000000000 +0200 2 +++ ar/write.c 2012-09-25 11:27:38.000000000 +0200 3 @@ -43,6 +43,11 @@ 4 5 ELFTC_VCSID("$Id: write.c 2496 2012-04-24 02:33:40Z jkoshy $"); 6 7 +#ifdef __APPLE__ 8 +#include <libkern/OSByteOrder.h> 9 +#define htobe32(x) OSSwapHostToBigInt32(x) 10 +#endif 11 + 12 #define _ARMAG_LEN 8 /* length of the magic string */ 13 #define _ARHDR_LEN 60 /* length of the archive header */ 14 #define _INIT_AS_CAP 128 /* initial archive string table size */ 15 --- elfcopy/archive.c 2012-02-25 01:00:13.000000000 +0100 16 +++ elfcopy/archive.c 2012-02-25 01:00:27.000000000 +0100 3 17 @@ -42,6 +42,11 @@ 4 18 5 ELFTC_VCSID("$Id: write.c 2130 2011-11-10 06:56:46Z jkoshy $");19 ELFTC_VCSID("$Id: archive.c 2370 2011-12-29 12:48:12Z jkoshy $"); 6 20 7 21 +#ifdef __APPLE__ … … 13 27 #define _ARHDR_LEN 60 /* length of ar header */ 14 28 #define _INIT_AS_CAP 128 /* initial archive string table size */ 15 --- elfcopy/archive.c 2012-02-25 01:00:13.000000000 +010016 +++ elfcopy/archive.c 2012-02-25 01:00:27.000000000 +010017 @@ -43,6 +43,11 @@18 19 ELFTC_VCSID("$Id: archive.c 2126 2011-11-10 05:07:18Z jkoshy $");20 21 +#ifdef __APPLE__22 +#include <libkern/OSByteOrder.h>23 +#define htobe32(x) OSSwapHostToBigInt32(x)24 +#endif25 +26 #define _ARMAG_LEN 8 /* length of ar magic string */27 #define _ARHDR_LEN 60 /* length of ar header */28 #define _INIT_AS_CAP 128 /* initial archive string table size */ -
trunk/dports/devel/elftoolchain/files/patch-common-elftc.diff
r96252 r98117 1 --- common/_elftc.h 2012-0 2-25 00:00:07.000000000 +01002 +++ common/_elftc.h 2012-0 2-25 00:11:26.000000000 +01003 @@ - 89,6 +89,10 @@4 # define ELFTC_VCSID(ID) __RCSID(ID)1 --- common/_elftc.h 2012-04-23 07:31:56.000000000 +0200 2 +++ common/_elftc.h 2012-09-25 11:17:20.000000000 +0200 3 @@ -244,6 +244,10 @@ 4 #endif /* __GNUC__ */ 5 5 #endif 6 6 … … 12 12 13 13 /* 14 @@ - 97,7 +101,7@@14 @@ -252,8 +256,8 @@ 15 15 16 16 #ifndef ELFTC_GETPROGNAME 17 17 18 -#if defined(__FreeBSD__) || defined(__NetBSD__) 19 +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) 18 -#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__minix) || \ 19 - defined(__NetBSD__) 20 +#if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__) || \ 21 + defined(__minix) || defined(__NetBSD__) 20 22 21 23 #include <stdlib.h> 22 24 23 @@ - 173,4 +177,20 @@24 #define ELFTC_BROKEN_YY_NO_INPUT 125 #endif /* __ NetBSD__ */25 @@ -384,4 +388,20 @@ 26 27 #endif /* __OpenBSD__ */ 26 28 27 29 + -
trunk/dports/devel/elftoolchain/files/patch-libelf-config.diff
r96252 r98117 1 --- libelf/_libelf_config.h 2011-1 0-23 11:07:00.000000000 +02002 +++ libelf/_libelf_config.h 2012-0 2-24 23:54:10.000000000 +01003 @@ -1 49,3 +149,26 @@4 # define roundup2 roundup1 --- libelf/_libelf_config.h 2011-12-04 07:45:47.000000000 +0100 2 +++ libelf/_libelf_config.h 2012-09-25 11:01:26.000000000 +0200 3 @@ -175,3 +175,26 @@ 4 #endif 5 5 6 6 #endif /* defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) */ -
trunk/dports/devel/elftoolchain/files/patch-mk.diff
r96252 r98117 1 --- mk/elftoolchain.inc.mk 2012-02-24 23:30:51.000000000 +01002 +++ mk/elftoolchain.inc.mk 2012-0 2-24 23:32:03.000000000 +01003 @@ -11, 7 +11,7@@1 --- mk/elftoolchain.inc.mk.orig 2012-09-25 14:56:23.000000000 +0200 2 +++ mk/elftoolchain.inc.mk 2012-09-25 14:57:39.000000000 +0200 3 @@ -11,8 +11,8 @@ 4 4 5 5 .include <bsd.own.mk> 6 6 7 -.if ${OS_HOST} == "FreeBSD" 8 +.if ${OS_HOST} == Darwin || ${OS_HOST} == FreeBSD 7 -.if ${OS_HOST} == "DragonFly" || ${OS_HOST} == "FreeBSD" || \ 8 - ${OS_HOST} == "OpenBSD" 9 +.if ${OS_HOST} == "Darwin" || ${OS_HOST} == "DragonFly" || \ 10 + ${OS_HOST} == "FreeBSD" || ${OS_HOST} == "OpenBSD" 9 11 # Simulate <bsd.inc.mk>. 10 12 .PHONY: incinstall 11 13 includes: ${INCS} incinstall 12 --- mk/elftoolchain.subdir.mk 2012-02-25 01:46:53.000000000 +0100 13 +++ mk/elftoolchain.subdir.mk 2012-02-25 01:47:40.000000000 +0100 14 @@ -6,7 +6,7 @@ 14 @@ -23,6 +23,11 @@ 15 cmp -s $> $@ > /dev/null 2>&1 || \ 16 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} $> $@ 17 .endfor 18 +# Add rule for target install which is missing for common/Makefile 19 +.if ${OS_HOST} == "Darwin" 20 +.PHONY: install 21 +install: incinstall 22 +.endif 23 .else 24 # Use the standard <bsd.inc.mk>. 25 .include <bsd.inc.mk> 26 --- mk/elftoolchain.subdir.mk 2011-12-04 09:09:17.000000000 +0100 27 +++ mk/elftoolchain.subdir.mk 2012-09-25 10:57:24.000000000 +0200 28 @@ -8,7 +8,7 @@ 15 29 16 .i nclude "$(TOP)/mk/elftoolchain.os.mk"17 18 -. if ${OS_HOST} == FreeBSD19 +. if ${OS_HOST} == Darwin || ${OS_HOST} == FreeBSD30 .if ${OS_HOST} == DragonFly 31 clobber test:: _SUBDIR 32 -.elif ${OS_HOST} == FreeBSD 33 +.elif ${OS_HOST} == FreeBSD || ${OS_HOST} == Darwin 20 34 SUBDIR_TARGETS+= clobber test 21 .else 22 TARGETS+= clobber test 23 --- common/Makefile 2012-02-25 02:09:41.000000000 +0100 24 +++ common/Makefile 2012-02-25 02:09:58.000000000 +0100 25 @@ -5,9 +5,9 @@ 26 INCS= elfdefinitions.h 27 INCSDIR?= /usr/include 28 29 -.PHONY: all clean clobber depend obj 30 +.PHONY: all clean install clobber depend obj 31 32 -all depend obj: 33 +all install depend obj: 34 35 clean clobber: 36 rm -f ${CLEANFILES} 35 .elif ${OS_HOST} == OpenBSD 36 clobber test:: _SUBDIRUSE 37 37 --- mk/elftoolchain.prog.mk 2012-03-10 13:03:40.000000000 +0100 38 38 +++ mk/elftoolchain.prog.mk 2012-03-10 13:04:46.000000000 +0100
Note: See TracChangeset
for help on using the changeset viewer.