Switch to cygport conf file for CygWin distribution

Projects were migrated to VS2013
This commit is contained in:
Serge Lamikhov-Center 2013-07-21 11:16:17 +03:00 committed by Serge Lamikhov-Center
parent e8afffece9
commit 59bde6aafd
8 changed files with 40 additions and 628 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@ ELFIO.opensdf
ELFIOTest/Debug
examples/ELFDump/Debug
/ELFIO.v12.suo

View File

@ -1,62 +0,0 @@
ELFIO-1.0.0
------------------------------------------
ELFIO is a C++ library for reading and generating files in the
ELF (Executable and Linkable Format) 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.
More examples for using this library located at Examples directory
of the source package distribution.
Runtime requirements:
cygwin-1.3.10 or newer
Build requirements:
cygwin-1.3.10 or newer
Canonical homepage:
http://sourceforge.net/projects/elfio
Canonical download:
http://sourceforge.net/project/showfiles.php?group_id=19959
------------------------------------
Build instructions:
unpack ELFIO-1.0.0-1-src.tar.bz2
cd /usr/src
./ELFIO-1.0.0-1.sh all
This will create:
/usr/src/ELFIO-1.0.0-1.tar.bz2
/usr/src/ELFIO-1.0.0-1-src.tar.bz2
-------------------------------------------
Files included in the binary distro
/lib/libELFIO.a
/usr/bin/ELFDump
/usr/include/ELFIO.h
/usr/include/ELFI.h
/usr/include/ELFO.h
/usr/include/ELFTypes.h
/usr/doc/ELFIO-1.0.0/AUTHORS
/usr/doc/ELFIO-1.0.0/COPYING
/usr/doc/ELFIO-1.0.0/README
/usr/doc/ELFIO-1.0.0/tutorial.pdf
/usr/doc/ELFIO-1.0.0/tutorial.cpp
/usr/doc/Cygwin/ELFIO-1.0.0.README
------------------
Port Notes:
----- version 1.0.0 -----
Initial release
Cygwin port maintained by: Serge Lamikhov-Center to_serge@sourceforge.net

View File

@ -1,9 +0,0 @@
# ELFIO library
category: Devel Libs
requires: cygwin
sdesc: "ELF file reader and producer implemented as a C++ library"
ldesc: "ELFIO is a C++ library for reading and generating files in the
ELF (Executable and Linkable Format) 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."

View File

@ -1,179 +0,0 @@
#!/bin/sh
# find out where the build script is located
tdir=`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
test "x$tdir" = "x$0" && tdir=.
scriptdir=`cd $tdir; pwd`
# find src directory.
# If scriptdir ends in SPECS, then topdir is $scriptdir/..
# If scriptdir ends in CYGWIN-PATCHES, then topdir is $scriptdir/../..
# Otherwise, we assume that topdir = scriptdir
topdir1=`echo ${scriptdir} | sed 's%/SPECS$%%'`
topdir2=`echo ${scriptdir} | sed 's%/CYGWIN-PATCHES$%%'`
if [ "x$topdir1" != "x$scriptdir" ] ; then # SPECS
topdir=`cd ${scriptdir}/..; pwd`
else
if [ "x$topdir2" != "x$scriptdir" ] ; then # CYGWIN-PATCHES
topdir=`cd ${scriptdir}/../..; pwd`
else
topdir=`cd ${scriptdir}; pwd`
fi
fi
tscriptname=`basename $0 .sh`
export PKG=`echo $tscriptname | sed -e 's/\-[^\-]*\-[^\-]*$//'`
export VER=`echo $tscriptname | sed -e 's/^[^\-]*\-//' -e 's/\-[^\-]*$//'`
export REL=`echo $tscriptname | sed -e 's/^[^\-]*\-[^\-]*\-//'`
export FULLPKG=${PKG}-${VER}-${REL}
# if the orig src package is bzip2'ed, remember to
# change 'z' to 'j' in the 'tar xvzf' commands in the
# prep) and mkpatch) sections
export src_orig_pkg_name=${PKG}-${VER}.tar.gz
export src_pkg_name=${FULLPKG}-src.tar.bz2
export src_patch_name=${FULLPKG}.patch
export bin_pkg_name=${FULLPKG}.tar.bz2
export src_orig_pkg=${topdir}/${src_orig_pkg_name}
export src_pkg=${topdir}/${src_pkg_name}
export src_patch=${topdir}/${src_patch_name}
export bin_pkg=${topdir}/${bin_pkg_name}
export srcdir=${topdir}/${PKG}-${VER}
export objdir=${srcdir}/.build
export instdir=${srcdir}/.inst
export srcinstdir=${srcdir}/.sinst
export checkfile=${topdir}/${FULLPKG}.check
# run on
host=i686-pc-cygwin
# if this package creates binaries, they run on
target=i686-pc-cygwin
prefix=/usr
sysconfdir=/etc
MY_CFLAGS="-O2"
MY_CXXFLAGS="-O2"
MY_LDFLAGS=
mkdirs() {
(cd ${topdir} && \
mkdir -p ${objdir} && \
mkdir -p ${instdir} && \
mkdir -p ${srcinstdir} )
}
prep() {
(cd ${topdir} && \
tar xvzf ${src_orig_pkg} ; \
cd ${topdir} && \
patch -p0 < ${src_patch}
&& mkdirs )
}
conf() {
(cd ${objdir} && \
CFLAGS="${MY_CFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
CXXFLAGS="${MY_CXXFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
${srcdir}/configure --host=${host} --target=${target} \
--srcdir=${srcdir} --prefix=${prefix} \
--exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
--libdir=/lib --includedir=${prefix}/include \
--libexecdir='${sbindir}' --localstatedir=/var \
--datadir='${prefix}/share'
)
}
build() {
(cd ${objdir} && \
CFLAGS="${MY_CFLAGS}" make )
}
check() {
(cd ${objdir} && \
make test | tee ${checkfile} 2>&1 )
}
clean() {
(cd ${objdir} && \
make clean )
}
install() {
(cd ${objdir} && \
make install DESTDIR=${instdir}
if [ -f ${instdir}${prefix}/info/dir ] ; then \
rm ${instdir}${prefix}/info/dir ; \
fi && \
if [ ! -d ${instdir}${prefix}/doc/${PKG}-${VER} ]; then \
mkdir -p ${instdir}${prefix}/doc/${PKG}-${VER} ; \
fi && \
if [ ! -d ${instdir}${prefix}/doc/Cygwin ]; then \
mkdir -p ${instdir}${prefix}/doc/Cygwin ; \
fi && \
templist=""; \
for f in ${srcdir}/ANNOUNCE ${srcdir}/CHANGES ${srcdir}/INSTALL \
${srcdir}/KNOWNBUG ${srcdir}/LICENSE ${srcdir}/README \
${srcdir}/AUTHORS ${srcdir}/KNOWNBUG ${srcdir}/COPYING \
${srcdir}/doc/tutorial.pdf \
${srcdir}/Examples/tutorial/tutorial.cpp \
${srcdir}/TODO ; do \
if [ -f $f ] ; then \
templist="$templist $f"; \
fi ; \
done && \
if [ ! "x$templist" = "x" ]; then \
/usr/bin/install -m 644 $templist \
${instdir}${prefix}/doc/${PKG}-${VER} ;
fi && \
if [ -f ${srcdir}/CYGWIN-PATCHES/${PKG}-${VER}.README ]; then \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/${PKG}-${VER}.README \
${instdir}${prefix}/doc/Cygwin/${PKG}-${VER}.README ; \
else \
if [ -f ${srcdir}/CYGWIN-PATCHES/README ]; then \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/README \
${instdir}${prefix}/doc/Cygwin/${PKG}-${VER}.README ; \
fi ;\
fi ; )
}
strip() {
(cd ${instdir} && \
find . -name "*.dll" | xargs strip > /dev/null 2>&1
find . -name "*.exe" | xargs strip > /dev/null 2>&1 )
}
pkg() {
(cd ${instdir} && \
tar cvjf ${bin_pkg} * )
}
mkpatch() {
(cd ${srcdir} && \
tar xvzf ${src_orig_pkg} ;\
mv ${PKG}-${VER} ../${PKG}-${VER}-orig && \
cd ${topdir} && \
diff -urN -x '.build' -x '.inst' -x '.sinst' \
${PKG}-${VER}-orig ${PKG}-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf ${PKG}-${VER}-orig )
}
spkg() {
(mkpatch && \
cp ${src_orig_pkg} ${srcinstdir}/${src_orig_pkg_name} && \
cp $0 ${srcinstdir}/`basename $0` && \
cd ${srcinstdir} && \
tar cvjf ${src_pkg} * )
}
finish() {
rm -rf ${srcdir}
}
case $1 in
prep) prep ; STATUS=$? ;;
mkdirs) mkdirs; STATUS=$? ;;
conf) conf ; STATUS=$? ;;
build) build ; STATUS=$? ;;
check) check ; STATUS=$? ;;
clean) clean ; STATUS=$? ;;
install) install ; STATUS=$? ;;
strip) strip ; STATUS=$? ;;
package) pkg ; STATUS=$? ;;
pkg) pkg ; STATUS=$? ;;
mkpatch) mkpatch ; STATUS=$? ;;
src-package) spkg ; STATUS=$? ;;
spkg) spkg ; STATUS=$? ;;
finish) finish ; STATUS=$? ;;
all) prep && conf && build && install && \
strip && pkg && spkg && finish ; \
STATUS=$? ;;
*) echo "Error: bad arguments" ; exit 1 ;;
esac
exit ${STATUS}

View File

@ -1,179 +0,0 @@
#!/bin/sh
# find out where the build script is located
tdir=`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
test "x$tdir" = "x$0" && tdir=.
scriptdir=`cd $tdir; pwd`
# find src directory.
# If scriptdir ends in SPECS, then topdir is $scriptdir/..
# If scriptdir ends in CYGWIN-PATCHES, then topdir is $scriptdir/../..
# Otherwise, we assume that topdir = scriptdir
topdir1=`echo ${scriptdir} | sed 's%/SPECS$%%'`
topdir2=`echo ${scriptdir} | sed 's%/CYGWIN-PATCHES$%%'`
if [ "x$topdir1" != "x$scriptdir" ] ; then # SPECS
topdir=`cd ${scriptdir}/..; pwd`
else
if [ "x$topdir2" != "x$scriptdir" ] ; then # CYGWIN-PATCHES
topdir=`cd ${scriptdir}/../..; pwd`
else
topdir=`cd ${scriptdir}; pwd`
fi
fi
tscriptname=`basename $0 .sh`
export PKG=`echo $tscriptname | sed -e 's/\-[^\-]*\-[^\-]*$//'`
export VER=`echo $tscriptname | sed -e 's/^[^\-]*\-//' -e 's/\-[^\-]*$//'`
export REL=`echo $tscriptname | sed -e 's/^[^\-]*\-[^\-]*\-//'`
export FULLPKG=${PKG}-${VER}-${REL}
# if the orig src package is bzip2'ed, remember to
# change 'z' to 'j' in the 'tar xvzf' commands in the
# prep) and mkpatch) sections
export src_orig_pkg_name=${PKG}-${VER}.tar.gz
export src_pkg_name=${FULLPKG}-src.tar.bz2
export src_patch_name=${FULLPKG}.patch
export bin_pkg_name=${FULLPKG}.tar.bz2
export src_orig_pkg=${topdir}/${src_orig_pkg_name}
export src_pkg=${topdir}/${src_pkg_name}
export src_patch=${topdir}/${src_patch_name}
export bin_pkg=${topdir}/${bin_pkg_name}
export srcdir=${topdir}/${PKG}-${VER}
export objdir=${srcdir}/.build
export instdir=${srcdir}/.inst
export srcinstdir=${srcdir}/.sinst
export checkfile=${topdir}/${FULLPKG}.check
# run on
host=i686-pc-cygwin
# if this package creates binaries, they run on
target=i686-pc-cygwin
prefix=/usr
sysconfdir=/etc
MY_CFLAGS="-O2"
MY_CXXFLAGS="-O2"
MY_LDFLAGS=
mkdirs() {
(cd ${topdir} && \
mkdir -p ${objdir} && \
mkdir -p ${instdir} && \
mkdir -p ${srcinstdir} )
}
prep() {
(cd ${topdir} && \
tar xvzf ${src_orig_pkg} ; \
cd ${topdir} && \
patch -p0 < ${src_patch}
&& mkdirs )
}
conf() {
(cd ${objdir} && \
CFLAGS="${MY_CFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
CXXFLAGS="${MY_CXXFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
${srcdir}/configure --host=${host} --target=${target} \
--srcdir=${srcdir} --prefix=${prefix} \
--exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
--libdir=/lib --includedir=${prefix}/include \
--libexecdir='${sbindir}' --localstatedir=/var \
--datadir='${prefix}/share'
)
}
build() {
(cd ${objdir} && \
CFLAGS="${MY_CFLAGS}" make )
}
check() {
(cd ${objdir} && \
make test | tee ${checkfile} 2>&1 )
}
clean() {
(cd ${objdir} && \
make clean )
}
install() {
(cd ${objdir} && \
make install DESTDIR=${instdir}
if [ -f ${instdir}${prefix}/info/dir ] ; then \
rm ${instdir}${prefix}/info/dir ; \
fi && \
if [ ! -d ${instdir}${prefix}/doc/${PKG}-${VER} ]; then \
mkdir -p ${instdir}${prefix}/doc/${PKG}-${VER} ; \
fi && \
if [ ! -d ${instdir}${prefix}/doc/Cygwin ]; then \
mkdir -p ${instdir}${prefix}/doc/Cygwin ; \
fi && \
templist=""; \
for f in ${srcdir}/ANNOUNCE ${srcdir}/CHANGES ${srcdir}/INSTALL \
${srcdir}/KNOWNBUG ${srcdir}/LICENSE ${srcdir}/README \
${srcdir}/AUTHORS ${srcdir}/KNOWNBUG ${srcdir}/COPYING \
${srcdir}/doc/tutorial.pdf \
${srcdir}/Examples/tutorial/tutorial.cpp \
${srcdir}/TODO ; do \
if [ -f $f ] ; then \
templist="$templist $f"; \
fi ; \
done && \
if [ ! "x$templist" = "x" ]; then \
/usr/bin/install -m 644 $templist \
${instdir}${prefix}/doc/${PKG}-${VER} ;
fi && \
if [ -f ${srcdir}/CYGWIN-PATCHES/${PKG}-${VER}.README ]; then \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/${PKG}-${VER}.README \
${instdir}${prefix}/doc/Cygwin/${PKG}-${VER}.README ; \
else \
if [ -f ${srcdir}/CYGWIN-PATCHES/README ]; then \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/README \
${instdir}${prefix}/doc/Cygwin/${PKG}-${VER}.README ; \
fi ;\
fi ; )
}
strip() {
(cd ${instdir} && \
find . -name "*.dll" | xargs strip > /dev/null 2>&1
find . -name "*.exe" | xargs strip > /dev/null 2>&1 )
}
pkg() {
(cd ${instdir} && \
tar cvjf ${bin_pkg} * )
}
mkpatch() {
(cd ${srcdir} && \
tar xvzf ${src_orig_pkg} ;\
mv ${PKG}-${VER} ../${PKG}-${VER}-orig && \
cd ${topdir} && \
diff -urN -x '.build' -x '.inst' -x '.sinst' \
${PKG}-${VER}-orig ${PKG}-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf ${PKG}-${VER}-orig )
}
spkg() {
(mkpatch && \
cp ${src_orig_pkg} ${srcinstdir}/${src_orig_pkg_name} && \
cp $0 ${srcinstdir}/`basename $0` && \
cd ${srcinstdir} && \
tar cvjf ${src_pkg} * )
}
finish() {
rm -rf ${srcdir}
}
case $1 in
prep) prep ; STATUS=$? ;;
mkdirs) mkdirs; STATUS=$? ;;
conf) conf ; STATUS=$? ;;
build) build ; STATUS=$? ;;
check) check ; STATUS=$? ;;
clean) clean ; STATUS=$? ;;
install) install ; STATUS=$? ;;
strip) strip ; STATUS=$? ;;
package) pkg ; STATUS=$? ;;
pkg) pkg ; STATUS=$? ;;
mkpatch) mkpatch ; STATUS=$? ;;
src-package) spkg ; STATUS=$? ;;
spkg) spkg ; STATUS=$? ;;
finish) finish ; STATUS=$? ;;
all) prep && conf && build && install && \
strip && pkg && spkg && finish ; \
STATUS=$? ;;
*) echo "Error: bad arguments" ; exit 1 ;;
esac
exit ${STATUS}

View File

@ -1,179 +0,0 @@
#!/bin/sh
# find out where the build script is located
tdir=`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
test "x$tdir" = "x$0" && tdir=.
scriptdir=`cd $tdir; pwd`
# find src directory.
# If scriptdir ends in SPECS, then topdir is $scriptdir/..
# If scriptdir ends in CYGWIN-PATCHES, then topdir is $scriptdir/../..
# Otherwise, we assume that topdir = scriptdir
topdir1=`echo ${scriptdir} | sed 's%/SPECS$%%'`
topdir2=`echo ${scriptdir} | sed 's%/CYGWIN-PATCHES$%%'`
if [ "x$topdir1" != "x$scriptdir" ] ; then # SPECS
topdir=`cd ${scriptdir}/..; pwd`
else
if [ "x$topdir2" != "x$scriptdir" ] ; then # CYGWIN-PATCHES
topdir=`cd ${scriptdir}/../..; pwd`
else
topdir=`cd ${scriptdir}; pwd`
fi
fi
tscriptname=`basename $0 .sh`
export PKG=`echo $tscriptname | sed -e 's/\-[^\-]*\-[^\-]*$//'`
export VER=`echo $tscriptname | sed -e 's/^[^\-]*\-//' -e 's/\-[^\-]*$//'`
export REL=`echo $tscriptname | sed -e 's/^[^\-]*\-[^\-]*\-//'`
export FULLPKG=${PKG}-${VER}-${REL}
# if the orig src package is bzip2'ed, remember to
# change 'z' to 'j' in the 'tar xvzf' commands in the
# prep) and mkpatch) sections
export src_orig_pkg_name=${PKG}-${VER}.tar.gz
export src_pkg_name=${FULLPKG}-src.tar.bz2
export src_patch_name=${FULLPKG}.patch
export bin_pkg_name=${FULLPKG}.tar.bz2
export src_orig_pkg=${topdir}/${src_orig_pkg_name}
export src_pkg=${topdir}/${src_pkg_name}
export src_patch=${topdir}/${src_patch_name}
export bin_pkg=${topdir}/${bin_pkg_name}
export srcdir=${topdir}/${PKG}-${VER}
export objdir=${srcdir}/.build
export instdir=${srcdir}/.inst
export srcinstdir=${srcdir}/.sinst
export checkfile=${topdir}/${FULLPKG}.check
# run on
host=i686-pc-cygwin
# if this package creates binaries, they run on
target=i686-pc-cygwin
prefix=/usr
sysconfdir=/etc
MY_CFLAGS="-O2"
MY_CXXFLAGS="-O2"
MY_LDFLAGS=
mkdirs() {
(cd ${topdir} && \
mkdir -p ${objdir} && \
mkdir -p ${instdir} && \
mkdir -p ${srcinstdir} )
}
prep() {
(cd ${topdir} && \
tar xvzf ${src_orig_pkg} ; \
cd ${topdir} && \
patch -p0 < ${src_patch} \
&& mkdirs )
}
conf() {
(cd ${objdir} && \
CFLAGS="${MY_CFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
CXXFLAGS="${MY_CXXFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
${srcdir}/configure --host=${host} --target=${target} \
--srcdir=${srcdir} --prefix=${prefix} \
--exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
--libdir=/lib --includedir=${prefix}/include \
--libexecdir='${sbindir}' --localstatedir=/var \
--datadir='${prefix}/share'
)
}
build() {
(cd ${objdir} && \
CFLAGS="${MY_CFLAGS}" make )
}
check() {
(cd ${objdir} && \
make test | tee ${checkfile} 2>&1 )
}
clean() {
(cd ${objdir} && \
make clean )
}
install() {
(cd ${objdir} && \
make install DESTDIR=${instdir}
if [ -f ${instdir}${prefix}/info/dir ] ; then \
rm ${instdir}${prefix}/info/dir ; \
fi && \
if [ ! -d ${instdir}${prefix}/doc/${PKG}-${VER} ]; then \
mkdir -p ${instdir}${prefix}/doc/${PKG}-${VER} ; \
fi && \
if [ ! -d ${instdir}${prefix}/doc/Cygwin ]; then \
mkdir -p ${instdir}${prefix}/doc/Cygwin ; \
fi && \
templist=""; \
for f in ${srcdir}/ANNOUNCE ${srcdir}/CHANGES ${srcdir}/INSTALL \
${srcdir}/KNOWNBUG ${srcdir}/LICENSE ${srcdir}/README \
${srcdir}/AUTHORS ${srcdir}/KNOWNBUG ${srcdir}/COPYING \
${srcdir}/doc/tutorial.pdf \
${srcdir}/Examples/tutorial/tutorial.cpp \
${srcdir}/TODO ; do \
if [ -f $f ] ; then \
templist="$templist $f"; \
fi ; \
done && \
if [ ! "x$templist" = "x" ]; then \
/usr/bin/install -m 644 $templist \
${instdir}${prefix}/doc/${PKG}-${VER} ;
fi && \
if [ -f ${srcdir}/CYGWIN-PATCHES/${PKG}-${VER}.README ]; then \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/${PKG}-${VER}.README \
${instdir}${prefix}/doc/Cygwin/${PKG}-${VER}.README ; \
else \
if [ -f ${srcdir}/CYGWIN-PATCHES/README ]; then \
/usr/bin/install -m 644 ${srcdir}/CYGWIN-PATCHES/README \
${instdir}${prefix}/doc/Cygwin/${PKG}-${VER}.README ; \
fi ;\
fi ; )
}
strip() {
(cd ${instdir} && \
find . -name "*.dll" | xargs strip > /dev/null 2>&1
find . -name "*.exe" | xargs strip > /dev/null 2>&1 )
}
pkg() {
(cd ${instdir} && \
tar cvjf ${bin_pkg} * )
}
mkpatch() {
(cd ${srcdir} && \
tar xvzf ${src_orig_pkg} ;\
mv ${PKG}-${VER} ../${PKG}-${VER}-orig && \
cd ${topdir} && \
diff -urN -x '.build' -x '.inst' -x '.sinst' \
${PKG}-${VER}-orig ${PKG}-${VER} > \
${srcinstdir}/${src_patch_name} ; \
rm -rf ${PKG}-${VER}-orig )
}
spkg() {
(mkpatch && \
cp ${src_orig_pkg} ${srcinstdir}/${src_orig_pkg_name} && \
cp $0 ${srcinstdir}/`basename $0` && \
cd ${srcinstdir} && \
tar cvjf ${src_pkg} * )
}
finish() {
rm -rf ${srcdir}
}
case $1 in
prep) prep ; STATUS=$? ;;
mkdirs) mkdirs; STATUS=$? ;;
conf) conf ; STATUS=$? ;;
build) build ; STATUS=$? ;;
check) check ; STATUS=$? ;;
clean) clean ; STATUS=$? ;;
install) install ; STATUS=$? ;;
strip) strip ; STATUS=$? ;;
package) pkg ; STATUS=$? ;;
pkg) pkg ; STATUS=$? ;;
mkpatch) mkpatch ; STATUS=$? ;;
src-package) spkg ; STATUS=$? ;;
spkg) spkg ; STATUS=$? ;;
finish) finish ; STATUS=$? ;;
all) prep && conf && build && install && \
strip && pkg && spkg && finish ; \
STATUS=$? ;;
*) echo "Error: bad arguments" ; exit 1 ;;
esac
exit ${STATUS}

38
cygwin/elfio.cygport Normal file
View File

@ -0,0 +1,38 @@
inherit python python3
NAME="ELFIO"
VERSION=2.2
RELEASE=1
CATEGORY="Devel System Libs"
SUMMARY="ELFIO is a header-only C++ library intended for reading and generating
files in the ELF binary format"
DESCRIPTION="ELFIO is a small, header-only C++ library that provides a simple
interface for reading and generating files in ELF binary format. It is used
as a standalone library - it is not dependant on any other product or project.
Adhering to ISO C++, it compiles on a wide variety of architectures
and compilers."
HOMEPAGE="http://elfio.sourceforge.net/"
SRC_URI="https://sourceforge.net/projects/elfio/files/ELFIO-sources/${PN}-${PV}/elfio-${PV}.tar.gz"
SRC_DIR="${PN}-${PV}"
PKG_NAMES="ELFIO"
ELFIO_REQUIRES="cygwin"
ELFIO_CONTENTS="usr/include/ usr/share/${PN}"
ELFIO_DOCS='AUTHORS COPYING README doc/elfio.pdf'
src_compile() {
cd ${B}
}
src_install() {
cd ${B}
dodir /usr/include
cp -r ${S}/elfio ${D}/usr/include/
dodir /usr/share/${PN}
cp -r ${S}/configure ${S}/depcomp ${S}/install-sh ${S}/missing \
${S}/configure.ac ${S}/Makefile.am ${S}/Makefile.in ${S}/aclocal.m4 \
${S}/examples \
${D}/usr/share/${PN}
}

View File

@ -1,20 +0,0 @@
ELFIOVER='ELFIO-1.0.3'
BUILDVER='1'
FULLVER=${ELFIOVER}-${BUILDVER}
mkdir $1
cp ${ELFIOVER}.tar.gz $1
cd $1
tar -xzf ${ELFIOVER}.tar.gz
cp ../cygwin/${FULLVER}.sh .
mkdir ${ELFIOVER}/CYGWIN-PATCHES
cp ../cygwin/CYGWIN-PATCHES/* ${ELFIOVER}/CYGWIN-PATCHES
./${FULLVER}.sh mkdirs
./${FULLVER}.sh spkg
cd ..
mkdir $2
cp $1/${FULLVER}-src.tar.bz2 $2
cd $2
tar -xjf ${FULLVER}-src.tar.bz2
./${FULLVER}.sh all