|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /home/cvsroot/gentoo-x86/app-editors/jed/jed-0.99.16.ebuild,v 1.2 2003/01/06 11:20:22 seemant Exp $ | # $Header: /home/cvsroot/gentoo-x86/app-editors/jed/jed-0.99.16.ebuild,v 1.2 2003/01/06 11:20:22 seemant Exp $ |
| |
IUSE="X gpm" |
IUSE="X gpm xft" |
| |
P0=${PN}-0.99-16 | P0=${PN}-0.99-16 |
S=${WORKDIR}/${P0} | S=${WORKDIR}/${P0} |
|
|
cd ${S} | cd ${S} |
fi | fi |
| |
|
if [ -n "`use xft`" ]; then |
|
cd src |
|
mv Makefile Makefile.orig |
|
sed -e 's/#XRENDERFONTLIBS/XRENDERFONTLIBS/' Makefile.orig > Makefile.new |
|
sed -e 's/^CONFIG_H = config.h/xterm_C_FLAGS = `freetype-config --cflags`\nCONFIG_H = config.h/' Makefile.new > Makefile |
|
mv jed-feat.h jed-feat.h.orig |
|
sed -e 's/#define XJED_HAS_XRENDERFONT 0/#define XJED_HAS_XRENDERFONT 1/' jed-feat.h.orig > jed-feat.h |
|
cd ${S} |
|
fi |
|
|
make clean || die | make clean || die |
| |
emake || die | emake || die |