home *** CD-ROM | disk | FTP | other *** search
/ ftp.fox-toolkit.org / 2014.05.ftp.fox-toolkit.org.tar / ftp.fox-toolkit.org / pub / gentoo_ebuild < prev    next >
Text File  |  2002-06-20  |  2KB  |  62 lines

  1.  
  2.  
  3. #Here's the ebuild I made for fox.
  4. #You may want to double check what I did, the doc/Makefile seemed hell bent on
  5. #putting the html documentation in $(prefix)/html (or /usr/fox/html) regardless
  6. #of configure options.  I stuck all the html user docs in
  7. #/usr/share/doc/fox-${VER}/html.
  8.  
  9.  
  10. #The ebuild:
  11.  
  12. #----cut here----
  13. # Copyright 1999-2000 Gentoo Technologies, Inc.
  14. # Distributed under the terms of the GNU General Public License, v2 or later
  15. # Author Brian Olsen <bnolsen@attbi.com>
  16. # /space/gentoo/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.0.11-r2.ebuild,v 1.2 2002/04/27 23:34:20 bangert Exp
  17.  
  18. S=${WORKDIR}/${P}
  19.  
  20. DESCRIPTION="C++ based Toolkit for developing Graphical User Interfaces easily and effectively"
  21.  
  22. SRC_URI="http://www.fox-toolkit.org/ftp/${P}.tar.gz"
  23.  
  24. HOMEPAGE="http://www.fox-toolkit.org"
  25.  
  26. DEPEND="virtual/glibc
  27.         virtual/x11
  28.         opengl? ( virtual/opengl )"
  29.  
  30.  
  31. src_compile() {
  32.  
  33.         local myconf
  34.  
  35.         use opengl || myconf="$myconf --with-opengl=no" #default enabled
  36.         use cups && myconf="$myconf --enable-cups"      #default disabled
  37.        
  38. #Learned '${prefix}' trick from studying python ebuild
  39. #There are no info files
  40.     ./configure \
  41.                 --prefix=/usr \
  42.                 --mandir='${prefix}'/share/man \
  43.                 --host=${CHOST} \
  44.                 ${myconf} || die "Configuration Failed"
  45.        
  46.     emake || die "Parallel Make Failed"
  47.  
  48. }
  49.  
  50. src_install () {
  51.  
  52.     make prefix=${D}/usr/ \
  53.                 install || die "Installation Failed"
  54.        
  55.     dodoc README INSTALL LICENSE ADDITIONS AUTHORS TRACING
  56.  
  57.     dodir /usr/share/doc/${PF}/html
  58.     mv ${D}/usr/fox/html/* ${D}/usr/share/doc/${PF}/html/
  59.     rmdir ${D}/usr/fox/html
  60.     rmdir ${D}/usr/fox
  61.  
  62. }