Hi Robert,

I think it's better if you read an example of an ebuild. Because source are compiled when installing package it's easy to setup the cmakelist option when installing the package. In the ebuild example we could add option like gdal, osgal, and what you want.

But i think it's not a good idea to create a new package format that could be common with all system. In my opinion the best way to setup package should be to have some vserver that automatically make package. Like a compiling farm. It sound big but could be made step by step.

But in fact we just need more maintainer, having those build system limit the amount of work by a human. Just need to check when new version. If we got more maintainers on differents distribution the package problem would not really exist. Maybe we need to find a comunity manager :)


I am not sure to understand the big picture you have about packaging so maybe i am wrong

Cheers,
Cedric


Robert Osfield wrote:
Hi Cedric,

On Wed, Nov 26, 2008 at 10:00 PM, Cedric Pinson <[EMAIL PROTECTED]> wrote:
For gentoo package it's nice to be able to setup option in the
cmakelists.txt then i can add option on the package
to select module to compile and install. It's already the case so i dont
need more.

I'm not clear on what you mean here.

Do you already have gentoo packing files that you use?  Are these
compatible with CMake?  Do these already work with CMake?  If so how?

I would like packing to become more centralised and consistent,
understand what there is already out there is a good first step in
know what would be needed in bring this support into the core.

In my opinion the main issue is windows, I tried to build an openscenegraph
environment on windows, and it's not as
easy.

Yep, it's another big issue, in which I'll dive into in as reply to
JS's post, but here I'll note that windows problems doesn't preclude
the need for straightening out all the bits that are easier to
straighten out...   So your knowledge about Gentoo is something that
would be useful to leverage.

Robert.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[EMAIL PROTECTED] 
http://www.plopbyte.net


# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/cvs/underware/osg/OpenSceneGraph/gentoo/dev-cpp/openscenegraph/openscenegraph-1.0.0-r1.ebuild,v
 1.2 2006/07/31 13:04:33 cpinson Exp $

inherit eutils

DESCRIPTION="Cross platform, object orientated threading library maintained by 
the OpenSceneGraph team."
HOMEPAGE="http://www.openscenegraph.org";
MY_P="OpenSceneGraph-${PV}"
SRC_URI="http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.6/OpenSceneGraph-2.6.0.zip
        examples? ( 
http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.6/OpenSceneGraph-Data-2.6.0.zip
 )"
SLOT="0"
LICENSE="OSGPL-0.0"
KEYWORDS="x86 amd64"
IUSE="examples"

DEPEND="virtual/opengl 
    app-arch/unzip
        media-libs/jpeg 
        media-libs/tiff
    media-libs/giflib
        media-libs/freetype
        net-misc/curl
    dev-util/cmake
    sci-libs/gdal
    x11-libs/cairo
        >=media-libs/libpng-1.2 
        media-libs/lib3ds"

S="${WORKDIR}/${MY_P}"

src_unpack() {
        unpack ${MY_P}.zip
        if use examples
    then
            unpack OpenSceneGraph-Data-2.6.0.zip
    fi
    epatch "${FILESDIR}"/openscenegraph-2.6.0-gcc-4.3-compile-patch
}

src_compile() {

    CCACHE=$(echo $FEATURES | grep 'ccache' | sed 's/.*ccache.*/ccache/g')
    if  use examples
    then
        cmake ${S} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release 
-DBUILD_OSG_EXAMPLES=ON -DBUILD_OSG_WRAPPERS=ON
    else
        cmake ${S} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release 
-DBUILD_OSG_EXAMPLES=OFF -DBUILD_OSG_WRAPPERS=ON
    fi
    emake
}

src_install() {
        make DESTDIR=${D} install || die "einstall failed"
        insinto "/usr/lib/pkgconfig"
        doins ${S}/packaging/pkgconfig/openthreads.pc
        doins ${S}/packaging/pkgconfig/openscenegraph.pc
        if use examples
    then
        cp -r "${WORKDIR}"/OpenSceneGraph-Data-2.6.0 \
            "${D}"/usr/share/OpenSceneGraph-Data-2.6.0

        echo OSG_FILE_PATH=/usr/share/OpenSceneGraph-Data-2.6.0 \
            > "${T}"/99${PN}
        doenvd "${T}"/99${PN} || die "doenvd failed"
    fi
}

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to