Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3969 - New ebuild for the FOX toolkit
Summary: New ebuild for the FOX toolkit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 4043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-21 00:53 UTC by Brian Olsen
Modified: 2003-04-17 19:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild (fox-1.0.26-r1.ebuild,1.27 KB, text/plain)
2002-11-13 01:39 UTC, Brian Olsen
Details
duhh...typos,i should have checked these (fox-1.0.26-r1.ebuild,1.28 KB, text/plain)
2002-11-13 01:43 UTC, Brian Olsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Olsen 2002-06-21 00:53:44 UTC
Here's the ebuild I made for fox.
You may want to double check what I did, the doc/Makefile seemed hell bent on
putting the html documentation in $(prefix)/html (or /usr/fox/html) regardless
of configure options.  I stuck all the html user docs in
/usr/share/doc/fox-${VER}/html.


The ebuild:

----cut here----
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Brian Olsen <bnolsen@attbi.com>
# /space/gentoo/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.0.11-r2.ebuild,v 1.2 200
2/04/27 23:34:20 bangert Exp

S=${WORKDIR}/${P}

DESCRIPTION="C++ based Toolkit for developing Graphical User Interfaces easily a
nd effectively"

SRC_URI="http://www.fox-toolkit.org/ftp/${P}.tar.gz"

HOMEPAGE="http://www.fox-toolkit.org"

DEPEND="virtual/glibc
        virtual/x11
        opengl? ( virtual/opengl )"


src_compile() {

        local myconf

        use opengl || myconf="$myconf --with-opengl=no" #default enabled
        use cups && myconf="$myconf --enable-cups"      #default disabled
       
#Learned '${prefix}' trick from studying python ebuild
#There are no info files
    ./configure \
                --prefix=/usr \
                --mandir='${prefix}'/share/man \
                --host=${CHOST} \
                ${myconf} || die "Configuration Failed"
       
    emake || die "Parallel Make Failed"

}

src_install () {

    make prefix=${D}/usr/ \
                install || die "Installation Failed"
       
    dodoc README INSTALL LICENSE ADDITIONS AUTHORS TRACING

    dodir /usr/share/doc/${PF}/html
    mv ${D}/usr/fox/html/* ${D}/usr/share/doc/${PF}/html/
    rmdir ${D}/usr/fox/html
    rmdir ${D}/usr/fox

}
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-23 02:07:45 UTC
*** Bug 4043 has been marked as a duplicate of this bug. ***
Comment 2 Gabriele Giorgetti 2002-07-29 15:34:57 UTC
fox version 1.0.17 has been added to the portage tree, thank you.
Comment 3 Brian Olsen 2002-11-13 01:39:50 UTC
Created attachment 5630 [details]
new ebuild

Added in some packages into DEPEND and added RDEPEND declaration
Comment 4 Brian Olsen 2002-11-13 01:40:24 UTC
added DEPEND and RDEPEND
Comment 5 Brian Olsen 2002-11-13 01:43:52 UTC
Created attachment 5631 [details]
duhh...typos,i should have checked these

oof mistypes, remind me not to do this past midnight during a work week
Comment 6 foser (RETIRED) gentoo-dev 2002-11-29 10:22:07 UTC
should these fixes still go in ? and you should also really do both
disable/enable stuff (like the opengl line, there needs to be an enable part).
Comment 7 Felix Kurth 2003-01-13 06:41:09 UTC
This happems to me
my USE-Flags:

USE="mmx 3dnow apm cdr scanner gpg gpgme cups X -opengl dga xv fbcon kde qt arts
gtk -gnome -alsa -bonobo -evo gtkhtml sdl svga gif jpeg png tiff avi mpeg
-esd -mikmod oss -nas dvd xmms oggvorbis encode -flash ipv6 -snmp pam
ssl crypt imap -ldap maildir -mbox tcpd mozilla -mozctl spell truetype
pdflib tetex mysql samba -gpm mule zlib hbci"

g++ -DPACKAGE=\"fox\" -DVERSION=\"1.0.17\" -DHAVE_DLFCN_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_VSSCANF=1  -I. -I.  -I../include
-I../include    -DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes
-Woverloaded-virtual -Wformat  -I/usr/X11R6/include -c datatarget.cpp
g++ -DPACKAGE=\"fox\" -DVERSION=\"1.0.17\" -DHAVE_DLFCN_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_VSSCANF=1  -I. -I.  -I../include
-I../include    -DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes
-Woverloaded-virtual -Wformat  -I/usr/X11R6/include -c dctest.cpp
g++ -DPACKAGE=\"fox\" -DVERSION=\"1.0.17\" -DHAVE_DLFCN_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_VSSCANF=1  -I. -I.  -I../include
-I../include    -DHAVE_XSHM -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_CUPS_H=1 -Wall -W -Wmissing-prototypes
-Woverloaded-virtual -Wformat  -I/usr/X11R6/include -c dialog.cpp
dctest.cpp: In member function `DCTestWindow::DCTestWindow(FXApp*)':
dctest.cpp:364: warning: unused variable `FXuint opts'
dctest.cpp:372: warning: unused variable `FXTooltip*tooltip'
dctest.cpp:528: warning: unused variable `FXTabItem*linesTab'
dctest.cpp:536: warning: unused variable `FXTabItem*shapesTab'
dctest.cpp:542: warning: unused variable `FXTabItem*imagesTab'
dctest.cpp: In member function `long int DCTestWindow::onCmdRedraw(FXObject*,
   unsigned int, void*)':
dctest.cpp:778: warning: unused parameter `FXSelector sel'
dctest.cpp: In member function `long int DCTestWindow::onCmdPrint(FXObject*,
   unsigned int, void*)':
dctest.cpp:920: cannot pass objects of non-POD type `class FXString' through
   `...'
make[1]: *** [dctest.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
make[1]: Leaving directory `/var/tmp/portage/fox-1.0.17/work/fox-1.0.17/tests'
make: *** [all-recursive] Fehler 1

!!! ERROR: x11-libs/fox-1.0.17 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! Parallel Make Failed
Comment 8 robert jorgenson 2003-01-15 07:44:26 UTC
Same happens to me as felix kurth. 
USE="-3dfx 3dnow alsa -arts avi -cdr -crypt -cups dga -dvd encode -esd -evo gif
-gnome -gp
hoto2 -gpm gtk -gtk2 java jpeg -kde mmx mozilla mpeg mysql oggvorbis opengl -oss
-pcmcia p
dflib perl png pop3 -qt quicktime -rpm samba sdl -spell truetype X xface xmms xv"

CFLAGS="-march=athlon -mcpu=athlon -O3 -pipe"
CXXFLAGS="${CFLAGS}"

I think ill try with -02
Comment 9 robert jorgenson 2003-01-15 08:03:05 UTC
same result with -02
Comment 10 robert jorgenson 2003-01-15 10:25:57 UTC
cp /usr/portage/x11-libs/fox/fox-1.0.17.ebuild
/usr/local/portage/x11-libs/fox/fox-1.0.30.ebuild
ebuild /usr/local/portage/x11-libs/fox/fox-1.0.30.ebuild digest
emerge fox

It works :) you need to make sure PORTDIR_OVERLAY is set correctly in make.conf
or you can just keep it in main portage tree and redo everytime you rsync and it
wants to downgrade it :)
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-04-17 19:58:28 UTC
in cvs