# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= libelf VERSION= 0.8.13 REVISION= 2 KEYWORDS= devel VARIANTS= standard SDESC[standard]= Public ELF file access library similar to Solaris HOMEPAGE= https://github.com/Distrotech/libelf CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= GITHUB/Distrotech:libelf:7e0b504 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[standard]= complete primary dev OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none LICENSE= LGPL20+:primary LICENSE_TERMS= primary:{{WRKDIR}}/TERMS LICENSE_FILE= LGPL20+:{{WRKSRC}}/COPYING.LIB LICENSE_AWK= TERMS:"^$$" LICENSE_SOURCE= TERMS:{{WRKSRC}}/lib/libelf.h LICENSE_SCHEME= solo FPC_EQUIVALENT= devel/libelf MUST_CONFIGURE= gnu CONFIGURE_ARGS= --enable-shared --enable-extended-format --enable-sanity-checks --disable-compat --disable-nls post-install: # install our PIC library ${INSTALL_DATA} ${WRKSRC}/lib/libelf_pic.a \ ${STAGEDIR}${PREFIX}/lib/ post-build: # assemble PIC library (cd ${WRKSRC}/lib &&\ ${AR} -crv libelf_pic.a *.os &&\ ranlib libelf_pic.a) [FILE:244:descriptions/desc.primary] This is the public release of libelf, a free ELF object file access library. If you have problems with applications that use libelf and work with the commercial (SVR4, Solaris) version but not with this one, please contact [the libelf author]. [FILE:111:distinfo] 9204f12735e66fc7d037936f2dae146d00172c567d591ab27ca4cce22781dcd9 144324 Distrotech-libelf-7e0b504.tar.gz [FILE:16:manifests/plist.primary] lib/libelf.so.0 [FILE:130:manifests/plist.dev] include/libelf/ elf_repl.h gelf.h libelf.h nlist.h sys_elf.h lib/ libelf.a libelf.so libelf_pic.a lib/pkgconfig/libelf.pc [FILE:1484:patches/patch-configure] Description: Adapt the configure script to FreeBSD. - use the elf.h header; - shorten the library .so file name; - honor LDFLAGS when linking; - do not link against or depend on libc. Forwarded: not-needed Author: Kevin Van Maren , Maxim Sobolev , Peter Pentchev Ying-Chieh Liao Last-Update: 2009-11-20 --- configure.orig 2014-01-26 00:46:23 UTC +++ configure @@ -1146,7 +1146,7 @@ EOF fi -for ac_hdr in unistd.h stdint.h fcntl.h +for ac_hdr in unistd.h stdint.h fcntl.h elf.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 @@ -3281,7 +3281,7 @@ else fi case "$host" in - *-linux*|*-gnu*) + *-linux*|*-gnu*|*-dragonfly*|*-freebsd*|*-netbsd*|*-solaris*|*-midnight*) if test "$GCC" = yes; then @@ -3336,13 +3336,12 @@ echo "$ac_t""$mr_cv_target_elf" 1>&6 PICFLAGS='-fPIC -DPIC' if test "$mr_enable_gnu_names" = yes then SHLIB_SFX='-$(VERSION).so' - else SHLIB_SFX='.so.$(VERSION)' + else SHLIB_SFX='.so.$(MAJOR)' fi SHLINK_SFX='.so' SONAME_SFX='.so.$(MAJOR)' - LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)' + LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME) $(LDFLAGS)' INSTALL_SHLIB='$(INSTALL_PROGRAM)' - DEPSHLIBS='-lc' else echo "configure: warning: shared libraries not supported for $host" 1>&2 mr_enable_shared=no [FILE:519:patches/patch-lib__sys_elf.h.in] Description: Provide the missing definitions for the ELF magic bytes. Forwarded: no Author: Vasil Dimov Last-Update: 2009-11-20 --- lib/sys_elf.h.in.orig 2014-01-26 00:46:23 UTC +++ lib/sys_elf.h.in @@ -80,6 +80,13 @@ Foundation, Inc., 51 Franklin Street, Fi */ #ifdef __LIBELF_HEADER_ELF_H +#ifndef ELFMAG +#define ELFMAG "\177ELF" +#endif /* ELFMAG */ +#ifndef SELFMAG +#define SELFMAG 4 +#endif /* SELFMAG */ + # ifndef ELF32_FSZ_ADDR # define ELF32_FSZ_ADDR 4 # define ELF32_FSZ_HALF 2