# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Rob McMullen # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin Exp S=${WORKDIR}/${P} DESCRIPTION="BDF font editor for X" SRC_URI="http://clr.nmsu.edu/~mleisher/${P}.tar.gz" HOMEPAGE="http://clr.nmsu.edu/~mleisher/xmbdfed.html" DEPEND="virtual/x11 >=x11-libs/openmotif-2.1.30 >=media-libs/freetype-2.0.5" # The xmbdfed-4.5-gentoo.diff includes patch 1 for version 4.5. The # author hasn't distributed a new numbered release yet, so I've # blended the patch in with a small include file fix needed for the # Gentoo install of freetype. src_unpack() { unpack ${A} cd ${WORKDIR} patch -p0 < ${FILESDIR}/${PF}-gentoo.diff || die } # There's no ./configure in xmbdfed, so perform the make by manually # specifying the correct options for Gentoo. src_compile() { make CFLAGS="${CFLAGS}" FTYPE_DEFS="-DHAVE_FREETYPE" \ INCS="-I/usr/X11R6/include -I/usr/include/freetype" \ LIBS="-L/usr/X11R6/lib -lXm -lXpm -lXmu -lXt -lXext -lX11 \ -lSM -lICE -lttf" } # The makefile doesn't supply an install routine, so we have to do it # ourselves. src_install () { into /usr dodir /usr/bin /usr/share/man/man1 dobin xmbdfed cp ${S}/xmbdfed.man ${S}/xmbdfed.1 doman xmbdfed.1 dodoc CHANGES COPYRIGHTS INSTALL README xmbdfedrc }