/[gentoo-x86]/sys-freebsd/freebsd-lib/freebsd-lib-9.1-r3.ebuild
Gentoo

Contents of /sys-freebsd/freebsd-lib/freebsd-lib-9.1-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 31 18:56:50 2013 UTC (6 years, 11 months ago) by aballier
Branch: MAIN
Always build crt{begin,end} files: gcc will use its own and clang the ones from freebsd-lib which should fix static linking with clang.

(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.1-r2.ebuild,v 1.1 2013/05/24 21:25:54 aballier Exp $
4
5 EAPI=2
6
7 inherit bsdmk freebsd flag-o-matic multilib toolchain-funcs eutils
8
9 DESCRIPTION="FreeBSD's base system libraries"
10 SLOT="0"
11 KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
12
13 # Crypto is needed to have an internal OpenSSL header
14 # sys is needed for libalias, probably we can just extract that instead of
15 # extracting the whole tarball
16 SRC_URI="mirror://gentoo/${LIB}.tar.bz2
17 mirror://gentoo/${CONTRIB}.tar.bz2
18 mirror://gentoo/${CRYPTO}.tar.bz2
19 mirror://gentoo/${LIBEXEC}.tar.bz2
20 mirror://gentoo/${ETC}.tar.bz2
21 mirror://gentoo/${INCLUDE}.tar.bz2
22 mirror://gentoo/${USBIN}.tar.bz2
23 mirror://gentoo/${GNU}.tar.bz2
24 build? (
25 mirror://gentoo/${SYS}.tar.bz2 )
26 zfs? (
27 mirror://gentoo/${CDDL}.tar.bz2 )"
28
29 if [ "${CATEGORY#*cross-}" = "${CATEGORY}" ]; then
30 RDEPEND="ssl? ( dev-libs/openssl )
31 hesiod? ( net-dns/hesiod )
32 kerberos? ( virtual/krb5 )
33 usb? ( !dev-libs/libusb !dev-libs/libusbx )
34 zfs? ( =sys-freebsd/freebsd-cddl-${RV}* )
35 >=dev-libs/expat-2.0.1
36 !sys-libs/libutempter
37 !sys-freebsd/freebsd-headers"
38 DEPEND="${RDEPEND}
39 >=sys-devel/flex-2.5.31-r2
40 =sys-freebsd/freebsd-sources-${RV}*
41 !bootstrap? ( app-arch/bzip2 )"
42 else
43 SRC_URI="${SRC_URI}
44 mirror://gentoo/${SYS}.tar.bz2"
45 fi
46
47 DEPEND="${DEPEND}
48 userland_GNU? ( sys-apps/mtree )
49 =sys-freebsd/freebsd-mk-defs-${RV}*"
50
51 S="${WORKDIR}/lib"
52
53 export CTARGET=${CTARGET:-${CHOST}}
54 if [ "${CTARGET}" = "${CHOST}" -a "${CATEGORY#*cross-}" != "${CATEGORY}" ]; then
55 export CTARGET=${CATEGORY/cross-}
56 fi
57
58 IUSE="atm bluetooth ssl hesiod ipv6 kerberos usb netware
59 build bootstrap crosscompile_opts_headers-only zfs
60 userland_GNU userland_BSD multilib"
61
62 pkg_setup() {
63 [ -c /dev/zero ] || \
64 die "You forgot to mount /dev; the compiled libc would break."
65
66 if ! use ssl && use kerberos; then
67 eerror "If you want kerberos support you need to enable ssl support, too."
68 fi
69
70 use atm || mymakeopts="${mymakeopts} WITHOUT_ATM= "
71 use bluetooth || mymakeopts="${mymakeopts} WITHOUT_BLUETOOTH= "
72 use hesiod || mymakeopts="${mymakeopts} WITHOUT_HESIOD= "
73 use ipv6 || mymakeopts="${mymakeopts} WITHOUT_INET6_SUPPORT= "
74 use kerberos || mymakeopts="${mymakeopts} WITHOUT_KERBEROS_SUPPORT= "
75 use netware || mymakeopts="${mymakeopts} WITHOUT_IPX= WITHOUT_IPX_SUPPORT= WITHOUT_NCP= "
76 use ssl || mymakeopts="${mymakeopts} WITHOUT_OPENSSL= "
77 use usb || mymakeopts="${mymakeopts} WITHOUT_USB= "
78 use zfs || mymakeopts="${mymakeopts} WITHOUT_CDDL= "
79
80 mymakeopts="${mymakeopts} WITHOUT_BIND= WITHOUT_BIND_LIBS= WITHOUT_SENDMAIL= WITHOUT_CLANG= "
81
82 if [ "${CTARGET}" != "${CHOST}" ]; then
83 mymakeopts="${mymakeopts} MACHINE=$(tc-arch-kernel ${CTARGET})"
84 mymakeopts="${mymakeopts} MACHINE_ARCH=$(tc-arch-kernel ${CTARGET})"
85 fi
86 }
87
88 PATCHES=(
89 "${FILESDIR}/${PN}-6.0-pmc.patch"
90 "${FILESDIR}/${PN}-6.0-gccfloat.patch"
91 "${FILESDIR}/${PN}-6.0-flex-2.5.31.patch"
92 "${FILESDIR}/${PN}-6.1-csu.patch"
93 "${FILESDIR}/${PN}-8.0-rpcsec_gss.patch"
94 "${FILESDIR}/${PN}-9.0-liblink.patch"
95 "${FILESDIR}/${PN}-bsdxml2expat.patch"
96 "${FILESDIR}/${PN}-9.0-netware.patch"
97 "${FILESDIR}/${PN}-9.0-cve-2010-2632.patch"
98 "${FILESDIR}/${PN}-9.0-bluetooth.patch"
99 "${FILESDIR}/${PN}-9.1-.eh_frame_hdr-fix.patch"
100 )
101
102 # Here we disable and remove source which we don't need or want
103 # In order:
104 # - ncurses stuff
105 # - libexpat creates a bsdxml library which is the same as expat
106 # - archiving libraries (have their own ebuild)
107 # - sendmail libraries (they are installed by sendmail)
108 # - SNMP library and dependency (have their own ebuilds)
109 # - Clang (compiler_rt and blocksruntime)
110 #
111 # The rest are libraries we already have somewhere else because
112 # they are contribution.
113 # Note: libtelnet is an internal lib used by telnet and telnetd programs
114 # as it's not used in freebsd-lib package itself, it's pointless building
115 # it here.
116 REMOVE_SUBDIRS="ncurses \
117 libexpat \
118 libz libbz2 libarchive liblzma \
119 libsm libsmdb libsmutil \
120 libbegemot libbsnmp \
121 libcompiler_rt libblocksruntime \
122 libpam libpcap bind libwrap libmagic \
123 libcom_err libtelnet
124 libelf libedit"
125
126 # Are we building a cross-compiler?
127 is_crosscompile() {
128 [ "${CATEGORY#*cross-}" != "${CATEGORY}" ]
129 }
130
131 src_prepare() {
132 sed -i.bak -e 's:-o/dev/stdout:-t:' "${S}/libc/net/Makefile.inc"
133
134 # Upstream Display Managers default to using VT7
135 # We should make FreeBSD allow this by default
136 local x=
137 for x in "${WORKDIR}"/etc/etc.*/ttys ; do
138 sed -i.bak \
139 -e '/ttyv5[[:space:]]/ a\
140 # Display Managers default to VT7.\
141 # If you use the xdm init script, keep ttyv6 commented out\
142 # unless you force a different VT for the DM being used.' \
143 -e '/^ttyv[678][[:space:]]/ s/^/# /' "${x}" \
144 || die "Failed to sed ${x}"
145 rm "${x}".bak
146 done
147
148 # This one is here because it also
149 # patches "${WORKDIR}/include"
150 cd "${WORKDIR}"
151 epatch "${FILESDIR}/${PN}-includes.patch"
152 epatch "${FILESDIR}/${PN}-8.0-gcc45.patch"
153 epatch "${FILESDIR}/${PN}-9.0-opieincludes.patch"
154 epatch "${FILESDIR}/${PN}-9.1-aligned_alloc.patch"
155
156 # Don't install the hesiod man page or header
157 rm "${WORKDIR}"/include/hesiod.h || die
158 sed -i.bak -e 's:hesiod.h::' "${WORKDIR}"/include/Makefile || die
159 sed -i.bak -e 's:hesiod.c::' -e 's:hesiod.3::' \
160 "${WORKDIR}"/lib/libc/net/Makefile.inc || die
161
162 # Fix the Makefiles of these few libraries that will overwrite our LDADD.
163 cd "${S}"
164 for dir in libradius libtacplus libcam libdevstat libfetch libgeom libmemstat libopie \
165 libsmb libprocstat libulog; do sed -i.bak -e 's:LDADD=:LDADD+=:g' "${dir}/Makefile" || \
166 die "Problem fixing \"${dir}/Makefile"
167 done
168 # Call LD with LDFLAGS, rename them to RAW_LDFLAGS
169 sed -e 's/LDFLAGS/RAW_LDFLAGS/g' \
170 -i "${S}/csu/i386-elf/Makefile" \
171 -i "${S}/csu/ia64/Makefile" || die
172 if use build; then
173 cd "${WORKDIR}"
174 # This patch has to be applied on ${WORKDIR}/sys, so we do it here since it
175 # shouldn't be a symlink to /usr/src/sys (which should be already patched)
176 epatch "${FILESDIR}"/${PN}-7.1-types.h-fix.patch
177 epatch "${FILESDIR}"/freebsd-sources-9.0-sysctluint.patch
178 return 0
179 fi
180
181 if ! is_crosscompile ; then
182 ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" || die "Couldn't make sys symlink!"
183 else
184 sed -i.bak -e "s:/usr/include:/usr/${CTARGET}/usr/include:g" \
185 "${S}/libc/rpc/Makefile.inc" \
186 "${S}/libc/yp/Makefile.inc"
187 fi
188
189 if install --version 2> /dev/null | grep -q GNU; then
190 sed -i.bak -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile"
191 fi
192
193 # Let arch-specific includes to be found
194 local machine
195 machine=$(tc-arch-kernel ${CTARGET})
196 ln -s "${WORKDIR}/sys/${machine}/include" "${WORKDIR}/include/machine" || \
197 die "Couldn't make ${machine}/include symlink."
198
199 cd "${S}"
200 use bootstrap && dummy_mk libstand
201 # Try to fix sed calls for GNU sed. Do it only with GNU userland and force
202 # BSD's sed on BSD.
203 if use userland_GNU; then
204 find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \;
205 fi
206 }
207
208 get_csudir() {
209 if [ -d "${WORKDIR}/lib/csu/$1-elf" ]; then
210 echo "lib/csu/$1-elf"
211 else
212 echo "lib/csu/$1"
213 fi
214 }
215
216 bootstrap_csu() {
217 local csudir="$(get_csudir $(tc-arch-kernel ${CTARGET}))"
218 export RAW_LDFLAGS=$(raw-ldflags)
219 cd "${WORKDIR}/${csudir}" || die "Missing ${csudir}."
220 freebsd_src_compile
221
222 CFLAGS="${CFLAGS} -B ${MAKEOBJDIRPREFIX}/${WORKDIR}/${csudir}"
223 append-ldflags "-B ${MAKEOBJDIRPREFIX}/${WORKDIR}/${csudir}"
224 }
225
226 # Compile libssp_nonshared.a and add it's path to LDFLAGS.
227 bootstrap_libssp_nonshared() {
228 cd "${WORKDIR}/gnu/lib/libssp/libssp_nonshared/" || die "missing libssp."
229 freebsd_src_compile
230 append-ldflags "-L${MAKEOBJDIRPREFIX}/${WORKDIR}/gnu/lib/libssp/libssp_nonshared/"
231 export LDADD="-lssp_nonshared"
232 }
233
234 # What to build for a non-native build: cross-compiler, non-native abi in
235 # multilib. We also need the csu but this has to be handled separately.
236 NON_NATIVE_SUBDIRS="lib/libc lib/msun gnu/lib/libssp/libssp_nonshared lib/libthr lib/libutil"
237
238 # Subdirs for a native build:
239 NATIVE_SUBDIRS="lib gnu/lib/libssp/libssp_nonshared gnu/lib/libregex gnu/lib/csu"
240
241 # Is my $ABI native ?
242 is_native_abi() {
243 is_crosscompile && return 1
244 use multilib || return 0
245 [ "${ABI}" = "${DEFAULT_ABI}" ]
246 }
247
248 # Do we need to bootstrap the csu and libssp_nonshared?
249 need_bootstrap() {
250 is_crosscompile || use build || ! is_native_abi || has_version "<${CATEGORY}/${P}"
251 }
252
253 # Get the subdirs we are building.
254 get_subdirs() {
255 local ret=""
256 if is_native_abi ; then
257 # If we are building for the native ABI, build everything
258 ret="${NATIVE_SUBDIRS}"
259 elif is_crosscompile ; then
260 # With a cross-compiler we only build the very core parts.
261 ret="${NON_NATIVE_SUBDIRS}"
262 if [ "${EBUILD_PHASE}" = "install" ]; then
263 # Add the csu dir first when installing. We treat it separately for
264 # compiling.
265 ret="$(get_csudir $(tc-arch-kernel ${CTARGET})) ${ret}"
266 fi
267 elif use build ; then
268 # For the non-native ABIs we only build the csu parts and very core
269 # libraries for now.
270 ret="gnu/lib/libssp/libssp_nonshared gnu/lib/csu"
271 if [ "${EBUILD_PHASE}" = "install" ]; then
272 ret="$(get_csudir $(tc-arch-kernel ${CHOST})) ${ret}"
273 fi
274 else
275 # Only build the csu parts and core libraries for now.
276 ret="gnu/lib/libssp/libssp_nonshared gnu/lib/csu"
277 if [ "${EBUILD_PHASE}" = "install" ]; then
278 ret="$(get_csudir $(tc-arch-kernel ${CHOST})) ${ret}"
279 fi
280 # Finally, with a non-native ABI without USE=build, we build everything
281 # too.
282 #ret="${NATIVE_SUBDIRS}"
283 fi
284 echo "${ret}"
285 }
286
287 # Bootstrap the core libraries and setup the flags so that the other parts can
288 # build against it.
289 do_bootstrap() {
290 einfo "Bootstrapping on ${CHOST} for ${CTARGET}"
291 if ! is_crosscompile ; then
292 # Pre-install headers, but not when building a cross-compiler since we
293 # assume they have been installed in the previous pass.
294 einfo "Pre-installing includes in include_proper_${ABI}"
295 mkdir "${WORKDIR}/include_proper_${ABI}" || die
296 CTARGET="${CHOST}" install_includes "/include_proper_${ABI}"
297 CFLAGS="${CFLAGS} -isystem ${WORKDIR}/include_proper_${ABI}"
298 fi
299 bootstrap_csu
300 bootstrap_libssp_nonshared
301 }
302
303 # Compile it. Assume we have the toolchain setup correctly.
304 do_compile() {
305 export MAKEOBJDIRPREFIX="${WORKDIR}/${CHOST}"
306 mkdir "${MAKEOBJDIRPREFIX}" || die "Could not create ${MAKEOBJDIRPREFIX}."
307 # Bootstrap if needed, otherwise assume the system headers are in
308 # /usr/include.
309 if need_bootstrap ; then
310 do_bootstrap
311 else
312 CFLAGS="${CFLAGS} -isystem /usr/include"
313 fi
314
315 export RAW_LDFLAGS=$(raw-ldflags)
316
317 # Everything is now setup, build it!
318 for i in $(get_subdirs) ; do
319 einfo "Building in ${i}... with CC=${CC} and CFLAGS=${CFLAGS}"
320 cd "${WORKDIR}/${i}/" || die "missing ${i}."
321 freebsd_src_compile || die "make ${i} failed"
322 done
323 }
324
325 src_compile() {
326 # Does not work with GNU sed
327 # Force BSD's sed on BSD.
328 if use userland_BSD ; then
329 export ESED=/usr/bin/sed
330 unalias sed
331 fi
332
333 cd "${WORKDIR}/include"
334 $(freebsd_get_bmake) CC="$(tc-getCC)" || die "make include failed"
335
336 use crosscompile_opts_headers-only && return 0
337
338 # Bug #270098
339 append-flags $(test-flags -fno-strict-aliasing)
340
341 # Bug #324445
342 append-flags $(test-flags -fno-strict-overflow)
343
344 # strip flags and do not do it later, we only add safe, and in fact
345 # needed flags after all
346 strip-flags
347 export NOFLAGSTRIP=yes
348 if is_crosscompile ; then
349 export YACC='yacc -by'
350 CHOST=${CTARGET} tc-export CC LD CXX RANLIB
351 mymakeopts="${mymakeopts} NLS="
352 CFLAGS="${CFLAGS} -isystem /usr/${CTARGET}/usr/include"
353 append-ldflags "-L${WORKDIR}/${CHOST}/${WORKDIR}/lib/libc"
354 fi
355
356 if is_crosscompile ; then
357 do_compile
358 else
359 for ABI in $(get_all_abis) ; do
360 # First, save the variables: CFLAGS, CXXFLAGS, LDFLAGS and mymakeopts.
361 for i in CFLAGS CXXFLAGS LDFLAGS mymakeopts ; do
362 export ${i}_SAVE="${!i}"
363 done
364
365 multilib_toolchain_setup ${ABI}
366
367 local target="$(tc-arch-kernel ${CHOST})"
368 mymakeopts="${mymakeopts} TARGET=${target} MACHINE=${target} MACHINE_ARCH=${target}"
369 CFLAGADD=""
370 if ! is_native_abi ; then
371 mymakeopts="${mymakeopts} COMPAT_32BIT="
372 fi
373
374 einfo "Building for ABI ${ABI} and TARGET=$(tc-arch-kernel ${CHOST})"
375
376 CTARGET="${CHOST}" do_compile
377
378 # Restore the variables now.
379 for i in CFLAGS CXXFLAGS LDFLAGS mymakeopts ; do
380 ii="${i}_SAVE"
381 export ${i}="${!ii}"
382 done
383 done
384 fi
385 }
386
387 gen_libc_ldscript() {
388 # Parameters:
389 # $1 = target libdir
390 # $2 = source libc dir
391 # $3 = source libssp_nonshared dir
392
393 # Clear the symlink.
394 rm -f "${D}/$2/libc.so" || die
395
396 # Move the library if needed
397 if [ "$1" != "$2" ] ; then
398 mv "${D}/$2/libc.so.7" "${D}/$1/" || die
399 fi
400
401 # Generate libc.so ldscript for inclusion of libssp_nonshared.a when linking
402 # this is done to avoid having to touch gcc spec file as it is currently
403 # done on FreeBSD upstream, mostly because their binutils aren't able to
404 # cope with linker scripts yet.
405 # Taken from toolchain-funcs.eclass:
406 local output_format
407 output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')
408 [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )"
409
410 cat > "${D}/$2/libc.so" <<-END_LDSCRIPT
411 /* GNU ld script
412 SSP (-fstack-protector) requires __stack_chk_fail_local to be local.
413 GCC invokes this symbol in a non-PIC way, which results in TEXTRELs if
414 this symbol was provided by a shared libc. So we link in
415 libssp_nonshared.a from here.
416 */
417 ${output_format}
418 GROUP ( /$1/libc.so.7 /$3/libssp_nonshared.a )
419 END_LDSCRIPT
420 }
421
422 do_install() {
423 export MAKEOBJDIRPREFIX="${WORKDIR}/${CHOST}"
424 for i in $(get_subdirs) ; do
425 einfo "Installing in ${i}..."
426 cd "${WORKDIR}/${i}/" || die "missing ${i}."
427 freebsd_src_install || die "Install ${i} failed"
428 done
429 }
430
431 src_install() {
432 [ "${CTARGET}" = "${CHOST}" ] \
433 && INCLUDEDIR="/usr/include" \
434 || INCLUDEDIR="/usr/${CTARGET}/usr/include"
435 dodir ${INCLUDEDIR}
436 einfo "Installing for ${CTARGET} in ${CHOST}.."
437 install_includes ${INCLUDEDIR}
438
439 use crosscompile_opts_headers-only && return 0
440 local mylibdir=$(get_libdir)
441
442 if is_crosscompile ; then
443 mymakeopts="${mymakeopts} NO_MAN= \
444 INCLUDEDIR=/usr/${CTARGET}/usr/include \
445 SHLIBDIR=/usr/${CTARGET}/usr/lib \
446 LIBDIR=/usr/${CTARGET}/usr/lib"
447
448 dosym "usr/include" "/usr/${CTARGET}/sys-include"
449 do_install
450 else
451 if ! use multilib ; then
452 # Set SHLIBDIR and LIBDIR for multilib
453 mymakeopts="${mymakeopts} SHLIBDIR=/usr/${mylibdir} LIBDIR=/usr/${mylibdir}"
454 do_install
455 else
456 for ABI in $(get_all_abis) ; do
457 mymakeopts_SAVE="${mymakeopts}"
458 multilib_toolchain_setup ${ABI}
459 mymakeopts="${mymakeopts} SHLIBDIR=/usr/$(get_libdir) LIBDIR=/usr/$(get_libdir)"
460 do_install
461 mymakeopts="${mymakeopts_SAVE}"
462 done
463 fi
464 fi
465
466 # Don't install the rest of the configuration files if crosscompiling
467 if is_crosscompile ; then
468 # This is to get it stripped with the correct tools, otherwise it gets
469 # stripped with the host strip.
470 # And also get the correct OUTPUT_FORMAT in the libc ldscript.
471 export CHOST=${CTARGET}
472 gen_libc_ldscript "usr/${CTARGET}/usr/lib" "usr/${CTARGET}/usr/lib" "usr/${CTARGET}/usr/lib"
473 return 0
474 fi
475
476 cd "${WORKDIR}/etc/"
477 insinto /etc
478 doins nls.alias mac.conf netconfig
479
480 # Install ttys file
481 local MACHINE="$(tc-arch-kernel)"
482 doins "etc.${MACHINE}"/*
483
484 # Generate ldscripts for core libraries that will go in /
485 gen_usr_ldscript -a alias cam geom ipsec jail kiconv \
486 kvm m md procstat sbuf thr ufs util
487
488 gen_libc_ldscript "${mylibdir}" "usr/${mylibdir}" "usr/${mylibdir}"
489
490 # Install a libusb.pc for better compat with Linux's libusb
491 if use usb ; then
492 dodir /usr/$(get_libdir)/pkgconfig
493 sed -e "s:@LIBDIR@:/usr/$(get_libdir):" "${FILESDIR}/libusb.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/libusb.pc" || die
494 sed -e "s:@LIBDIR@:/usr/$(get_libdir):" "${FILESDIR}/libusb-1.0.pc.in" > "${D}/usr/$(get_libdir)/pkgconfig/libusb1.0.pc" || die
495 fi
496 }
497
498 install_includes()
499 {
500 local INCLUDEDIR="$1"
501
502 # The idea is to be called from either install or unpack.
503 # During unpack it's required to install them as portage's user.
504 if [[ "${EBUILD_PHASE}" == "install" ]]; then
505 local DESTDIR="${D}"
506 BINOWN="root"
507 BINGRP="wheel"
508 else
509 local DESTDIR="${WORKDIR}"
510 [[ -z "${USER}" ]] && USER="portage"
511 BINOWN="${USER}"
512 [[ -z "${GROUPS}" ]] && GROUPS="portage"
513 BINGRP="${GROUPS}"
514 fi
515
516 # Must exist before we use it.
517 [[ -d "${DESTDIR}${INCLUDEDIR}" ]] || die "dodir or mkdir ${INCLUDEDIR} before using install_includes."
518 cd "${WORKDIR}/include"
519
520 local MACHINE="$(tc-arch-kernel)"
521
522 einfo "Installing includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
523 $(freebsd_get_bmake) installincludes \
524 MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE} \
525 DESTDIR="${DESTDIR}" \
526 INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
527 BINGRP="${BINGRP}" || die "install_includes() failed"
528 einfo "includes installed ok."
529 EXTRA_INCLUDES="lib/librtld_db lib/libutil lib/msun gnu/lib/libregex"
530 for i in $EXTRA_INCLUDES; do
531 einfo "Installing $i includes into ${INCLUDEDIR} as ${BINOWN}:${BINGRP}..."
532 cd "${WORKDIR}/$i" || die
533 $(freebsd_get_bmake) installincludes DESTDIR="${DESTDIR}" \
534 MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE} \
535 INCLUDEDIR="${INCLUDEDIR}" BINOWN="${BINOWN}" \
536 BINGRP="${BINGRP}" || die "problem installing $i includes."
537 einfo "$i includes installed ok."
538 done
539 }

  ViewVC Help
Powered by ViewVC 1.1.20