/[gentoo-alt]/trunk/sys-apps/freebsd-contrib/freebsd-contrib-5.3-r1.ebuild
Gentoo

Diff of /trunk/sys-apps/freebsd-contrib/freebsd-contrib-5.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 440 Revision 441
7GNU="freebsd-gnu-${PV}" 7GNU="freebsd-gnu-${PV}"
8GCC="freebsd-gcc-3.4.2" 8GCC="freebsd-gcc-3.4.2"
9BINUTILS="freebsd-binutils-2.15" 9BINUTILS="freebsd-binutils-2.15"
10 10
11DESCRIPTION="Contributed sources for FreeBSD. Includes programs and libraries" 11DESCRIPTION="Contributed sources for FreeBSD. Includes programs and libraries"
12SRC_URI="${BASE_SRC_URI}${P}.tar.bz2 12SRC_URI="mirror://gentoo/${GNU}.tar.bz2
13 ${BASE_SRC_URI}${GNU}.tar.bz2 13 mirror://gentoo/${GCC}.tar.bz2
14 ${BASE_SRC_URI}${GCC}.tar.bz2 14 mirror://gentoo/${BINUTILS}.tar.bz2
15 ${BASE_SRC_URI}${BINUTILS}.tar.bz2" 15 mirror://gentoo/${P}.tar.bz2"
16 16
17# Must be checked 17# Must be checked
18LICENSE="BSD GPL-2 AS-IS" 18LICENSE="BSD GPL-2 AS-IS"
19KEYWORDS="~x86-fbsd" 19KEYWORDS="~x86-fbsd"
20DEPEND="" 20DEPEND=""
21PROVIDE="virtual/gzip" 21PROVIDE="virtual/gzip"
22 22
23S=${WORKDIR}/gnu 23S=${WORKDIR}/gnu
24 24
25src_unpack() { 25src_unpack() {
26 unpack ${P}.tar.bz2 26 unpack ${P}.tar.bz2
27 unpack ${GNU}.tar.bz2 27 unpack ${GNU}.tar.bz2
28 unpack ${GCC}.tar.bz2 28 unpack ${GCC}.tar.bz2
29 unpack ${BINUTILS}.tar.bz2 29 unpack ${BINUTILS}.tar.bz2
30 30
31 # Patch to avoid compilation of gcc, binutils and gdb 31 # Patch to avoid compilation of gcc, binutils and gdb
32 cd ${S}/usr.bin 32 cd ${S}/usr.bin
33 epatch ${FILESDIR}/${P}-ubin-makefile_new.patch 33 epatch ${FILESDIR}/${P}-ubin-makefile_new.patch
34 34
35 35
36 # Compilation related patches 36 # Compilation related patches
37 cd ${S}/usr.bin/groff/contrib/mm 37 cd ${S}/usr.bin/groff/contrib/mm
38 epatch ${FILESDIR}/freebsd-contrib-5.3-ubin-groff_mm-makefile.patch 38 epatch ${FILESDIR}/freebsd-contrib-5.3-ubin-groff_mm-makefile.patch
39 39
40 cd ${S}/usr.bin/groff/tmac 40 cd ${S}/usr.bin/groff/tmac
63 63
64 # It does not build without this 64 # It does not build without this
65 unset CFLAGS 65 unset CFLAGS
66 unset CXXFLAGS 66 unset CXXFLAGS
67 67
68 make ojb objlink 68 bsdmake ojb objlink
69 69
70 einfo "Building object/headers dependencies for this package" 70 einfo "Building object/headers dependencies for this package"
71 cd ${S}/usr.bin/cc/cc_tools 71 cd ${S}/usr.bin/cc/cc_tools
72 emake || die "make cc_tools failed" 72 bsdmake || die "make cc_tools failed"
73 einfo "Building binutils static libraries for this package" 73 einfo "Building binutils static libraries for this package"
74 cd ${S}/usr.bin/binutils 74 cd ${S}/usr.bin/binutils
75 emake || die "make binutils failed" 75 bsdmake || die "make binutils failed"
76 76
77 cd ${S} 77 cd ${S}
78 78
79 #CXX=c++ gmake -j1 || die "emake failed" 79 #CXX=c++ gmake -j1 || die "emake failed"
80 einfo "Buiding package now" 80 einfo "Buiding package now"
81 emake || die "emake failed" 81 bsdmake || die "emake failed"
82} 82}
83 83
84src_install() { 84src_install() {
85 make DESTDIR=${D} install || die "Install failed" 85 bsdmake DESTDIR=${D} install || die "Install failed"
86 einfo "Moving headers to standard format" 86 einfo "Moving headers to standard format"
87 move_headers 87 move_headers
88 move_headers ${D}/usr/include/c++/3.4/bits ${D}/tmp/include/bits/ 88 move_headers ${D}/usr/include/c++/3.4/bits ${D}/tmp/include/bits/
89 89
90 sleep 5 90 sleep 5
91 91
92} 92}
93 93
94# This function removes the files installed inside directories in 94# This function removes the files installed inside directories in
95# /usr/include/c++/3.4 and install them as files inside the same dir (like 95# /usr/include/c++/3.4 and install them as files inside the same dir (like
96# FreeBSD does) 96# FreeBSD does)
97move_headers() { 97move_headers() {
98 if [ $# -lt 2 ] ; then 98 if [ $# -lt 2 ] ; then
99 HEADERPATH=${D}/usr/include/c++/3.4/ 99 HEADERPATH=${D}/usr/include/c++/3.4/
100 HEADERTMP=${D}/tmp/include 100 HEADERTMP=${D}/tmp/include
101 else 101 else
102 HEADERPATH=$1 102 HEADERPATH=$1
117 einfo "Moving $i to $HEADERTMP/$FILE" 117 einfo "Moving $i to $HEADERTMP/$FILE"
118 mv $i $HEADERTMP/$FILE 118 mv $i $HEADERTMP/$FILE
119 done 119 done
120 cd .. 120 cd ..
121 rm -rf $FILE 121 rm -rf $FILE
122 fi 122 fi
123 fi 123 fi
124 done 124 done
125 125
126 cd $HEADERTMP 126 cd $HEADERTMP
127 ls 127 ls
128 mv * $HEADERPATH 128 mv * $HEADERPATH
129 rm -rf $HEADERTMP 129 rm -rf $HEADERTMP
130 sleep 5 130 sleep 5
131} 131}

Legend:
Removed from v.440  
changed lines
  Added in v.441

  ViewVC Help
Powered by ViewVC 1.1.20