sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile
}
src_compile() {
emake CURSES="$( $( tc-getPKG_CONFIG ) --libs ncurses )"
src_install() {
default
# useless -${PV} copies ?
atop: atop.o $(ALLMODS) Makefile
- $(CC) atop.o $(ALLMODS) -o atop -lncurses -lm -lz -lrt
+ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop -lncurses -lm -lz -lrt
+ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(CURSES) -lm -lz -lrt
atopsar: atop
ln -sf atop atopsar