| … | |
… | |
| 9 | GNU="freebsd-gnu-${PV}" |
9 | GNU="freebsd-gnu-${PV}" |
| 10 | GCC="freebsd-gcc-3.4.2" |
10 | GCC="freebsd-gcc-3.4.2" |
| 11 | BINUTILS="freebsd-binutils-2.15" |
11 | BINUTILS="freebsd-binutils-2.15" |
| 12 | |
12 | |
| 13 | DESCRIPTION="Contributed sources for FreeBSD. Includes programs and libraries" |
13 | DESCRIPTION="Contributed sources for FreeBSD. Includes programs and libraries" |
| 14 | SRC_URI="${BASE_SRC_URI}${P}.tar.bz2 |
14 | SRC_URI="mirror://gentoo/${GNU}.tar.bz2 |
| 15 | ${BASE_SRC_URI}${GNU}.tar.bz2 |
15 | mirror://gentoo/${GCC}.tar.bz2 |
| 16 | ${BASE_SRC_URI}${GCC}.tar.bz2 |
16 | mirror://gentoo/${BINUTILS}.tar.bz2 |
| 17 | ${BASE_SRC_URI}${BINUTILS}.tar.bz2" |
17 | mirror://gentoo/${P}.tar.bz2" |
| 18 | |
18 | |
| 19 | # Must be checked |
19 | # Must be checked |
| 20 | LICENSE="BSD GPL-2 AS-IS" |
20 | LICENSE="BSD GPL-2 AS-IS" |
| 21 | KEYWORDS="~x86-fbsd" |
21 | KEYWORDS="~x86-fbsd" |
| 22 | |
22 | |
| … | |
… | |
| 51 | use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " |
51 | use kerberos || mymakeopts="${mymakeopts} NO_KERBEROS= " |
| 52 | } |
52 | } |
| 53 | |
53 | |
| 54 | |
54 | |
| 55 | |
55 | |
| 56 | src_unpack() { |
56 | src_unpack() { |
| 57 | unpack ${P}.tar.bz2 |
57 | unpack ${P}.tar.bz2 |
| 58 | unpack ${GNU}.tar.bz2 |
58 | unpack ${GNU}.tar.bz2 |
| 59 | unpack ${GCC}.tar.bz2 |
59 | unpack ${GCC}.tar.bz2 |
| 60 | unpack ${BINUTILS}.tar.bz2 |
60 | unpack ${BINUTILS}.tar.bz2 |
| 61 | |
61 | |
| 62 | # Patch to avoid compilation of gcc, binutils and gdb |
62 | # Patch to avoid compilation of gcc, binutils and gdb |
| 63 | cd ${S}/usr.bin |
63 | cd ${S}/usr.bin |
| 64 | epatch ${FILESDIR}/${MY_PATCH}-ubin-makefile_new.patch |
64 | epatch ${FILESDIR}/${MY_PATCH}-ubin-makefile_new.patch |
| 65 | |
65 | |
| 66 | |
66 | |
| 67 | # Compilation related patches |
67 | # Compilation related patches |
| 68 | cd ${S}/usr.bin/groff/contrib/mm |
68 | cd ${S}/usr.bin/groff/contrib/mm |
| 69 | epatch ${FILESDIR}/${MY_PATCH}-ubin-groff_mm-makefile.patch |
69 | epatch ${FILESDIR}/${MY_PATCH}-ubin-groff_mm-makefile.patch |
| 70 | |
70 | |
| 71 | cd ${S}/usr.bin/groff/tmac |
71 | cd ${S}/usr.bin/groff/tmac |
| … | |
… | |
| 94 | |
94 | |
| 95 | # It does not build without this |
95 | # It does not build without this |
| 96 | unset CFLAGS |
96 | unset CFLAGS |
| 97 | unset CXXFLAGS |
97 | unset CXXFLAGS |
| 98 | |
98 | |
| 99 | make ojb objlink |
99 | bsdmake ojb objlink |
| 100 | |
100 | |
| 101 | einfo "Building object/headers dependencies for this package" |
101 | einfo "Building object/headers dependencies for this package" |
| 102 | cd ${S}/usr.bin/cc/cc_tools |
102 | cd ${S}/usr.bin/cc/cc_tools |
| 103 | emake || die "make cc_tools failed" |
103 | bsdmake || die "make cc_tools failed" |
| 104 | einfo "Building binutils static libraries for this package" |
104 | einfo "Building binutils static libraries for this package" |
| 105 | cd ${S}/usr.bin/binutils |
105 | cd ${S}/usr.bin/binutils |
| 106 | fmake || die "make binutils failed" |
106 | fmake || die "make binutils failed" |
| 107 | |
107 | |
| 108 | cd ${S} |
108 | cd ${S} |
| … | |
… | |
| 120 | |
120 | |
| 121 | sleep 5 |
121 | sleep 5 |
| 122 | |
122 | |
| 123 | } |
123 | } |
| 124 | |
124 | |
| 125 | # This function removes the files installed inside directories in |
125 | # This function removes the files installed inside directories in |
| 126 | # /usr/include/c++/3.4 and install them as files inside the same dir (like |
126 | # /usr/include/c++/3.4 and install them as files inside the same dir (like |
| 127 | # FreeBSD does) |
127 | # FreeBSD does) |
| 128 | move_headers() { |
128 | move_headers() { |
| 129 | if [ $# -lt 2 ] ; then |
129 | if [ $# -lt 2 ] ; then |
| 130 | HEADERPATH=${D}/usr/include/c++/3.4/ |
130 | HEADERPATH=${D}/usr/include/c++/3.4/ |
| 131 | HEADERTMP=${D}/tmp/include |
131 | HEADERTMP=${D}/tmp/include |
| 132 | else |
132 | else |
| 133 | HEADERPATH=$1 |
133 | HEADERPATH=$1 |
| … | |
… | |
| 148 | einfo "Moving $i to $HEADERTMP/$FILE" |
148 | einfo "Moving $i to $HEADERTMP/$FILE" |
| 149 | mv $i $HEADERTMP/$FILE |
149 | mv $i $HEADERTMP/$FILE |
| 150 | done |
150 | done |
| 151 | cd .. |
151 | cd .. |
| 152 | rm -rf $FILE |
152 | rm -rf $FILE |
| 153 | fi |
153 | fi |
| 154 | fi |
154 | fi |
| 155 | done |
155 | done |
| 156 | |
156 | |
| 157 | cd $HEADERTMP |
157 | cd $HEADERTMP |
| 158 | ls |
158 | ls |
| 159 | mv * $HEADERPATH |
159 | mv * $HEADERPATH |
| 160 | rm -rf $HEADERTMP |
160 | rm -rf $HEADERTMP |
| 161 | sleep 5 |
161 | sleep 5 |
| 162 | } |
162 | } |