* Update to 1.0.0.

* Install included sample program and documentation.
* Respect NOPORTDOCS.

PR:		42408
Submitted by:	Sergei Kolobov <sergei@kolobov.com>
This commit is contained in:
Christian Weisgerber 2003-01-01 22:09:42 +00:00
parent 52b4e59232
commit b0f78227fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72125
6 changed files with 38 additions and 37 deletions

View file

@ -6,23 +6,28 @@
# $FreeBSD$
#
PORTNAME= elfio
PORTVERSION= 0.2.7
PORTNAME= ELFIO
PORTVERSION= 1.0.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/ELFIO/ELFIO
MAKEFILE= makefile
USE_REINPLACE= yes
ALL_TARGET= # empty
GNU_CONFIGURE= yes
post-patch:
@${REINPLACE_CMD} -e "s,^CXXFLAGS,#CXXFLAGS,g" ${WRKSRC}/makefile
DOCS= AUTHORS COPYING ChangeLog README
DOCS2= elf11g.zip tutorial.docbook tutorial.pdf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libELFIO.a ${PREFIX}/lib
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.for file in ${DOCS2}
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View file

@ -1 +1 @@
MD5 (elfio-0.2.7.tar.gz) = 1ea90e74ef2d54cb83fa9fe9fbaf7455
MD5 (ELFIO-1.0.0.tar.gz) = e0711e99574e811d2e1c255e6eedb714

View file

@ -1,23 +0,0 @@
$FreeBSD$
--- ELFIImpl.cpp.orig Wed Dec 18 01:52:15 2002
+++ ELFIImpl.cpp Wed Dec 18 01:53:31 2002
@@ -100,7 +100,7 @@
#ifdef _MSC_VER
unsigned int buflen = std::_MIN( sizeof( Elf32_Shdr ), (unsigned int)nEntrySize );
#else
- unsigned int buflen = std::min( sizeof( Elf32_Shdr ), (unsigned int)nEntrySize );
+ unsigned int buflen = std::min( sizeof( Elf32_Shdr ), (size_t)nEntrySize );
#endif
for ( int i = 0; i < nNum; ++i ) {
@@ -127,7 +127,7 @@
#ifdef _MSC_VER
int buflen = std::_MIN( sizeof( Elf32_Phdr ), (unsigned int)nEntrySize );
#else
- int buflen = std::min( sizeof( Elf32_Phdr ), (unsigned int)nEntrySize );
+ int buflen = std::min( sizeof( Elf32_Phdr ), (size_t)nEntrySize );
#endif
for ( int i = 0; i < nNum; ++i ) {

View file

@ -1 +1 @@
ELF (Executable and Linkable Format) reader and producer
C++ library for reading and generating files in the ELF binary format

View file

@ -1 +1,6 @@
ELFIO - ELF (Executable and Linkable Format) reader and producer
ELFIO is a C++ library for reading and generating files in the ELF binary
format. This library is unique and not based on any other product. It is also
platform independent. The library uses standard ANSI C++ constructions and
runs on a wide variety of architectures.
WWW: http://sourceforge.net/projects/elfio/

View file

@ -1 +1,15 @@
@comment $FreeBSD$
bin/ELFDump
include/ELFI.h
include/ELFIO.h
include/ELFO.h
include/ELFTypes.h
lib/libELFIO.a
%%PORTDOCS%%share/doc/ELFIO/AUTHORS
%%PORTDOCS%%share/doc/ELFIO/COPYING
%%PORTDOCS%%share/doc/ELFIO/ChangeLog
%%PORTDOCS%%share/doc/ELFIO/README
%%PORTDOCS%%share/doc/ELFIO/elf11g.zip
%%PORTDOCS%%share/doc/ELFIO/tutorial.docbook
%%PORTDOCS%%share/doc/ELFIO/tutorial.pdf
%%PORTDOCS%%@dirrm share/doc/ELFIO