--- Makefile.noimake.orig 2006-12-04 23:28:33.000000000 +0100 +++ Makefile.noimake 2006-12-04 23:29:35.000000000 +0100 @@ -18,7 +18,7 @@ # @(#)$Header: /var/cvsroot/gentoo-x86/media-gfx/tgif/files/tgif-4.1.45-gentoo.patch,v 1.1 2006/12/04 22:25:20 dev-zero Exp $ # -INSTALLPATH = /usr/local +INSTALLPATH = $(DESTDIR)/usr MANSECTION = n O = .o @@ -27,7 +27,7 @@ CC = cc BINDIR = $(INSTALLPATH)/bin TGIFDIR = $(INSTALLPATH)/lib/tgif -MANPATH = $(INSTALLPATH)/man +MANPATH = $(INSTALLPATH)/share/man MANDIR = $(MANPATH)/man$(MANSECTION) XDIR = /usr/openwin @@ -43,7 +43,7 @@ # directory right after the -c option. So, if you are running # Solaris, please install the files manually. # -INSTALL = install +INSTALL = install -D CFLAGS = -O $(DEFINES) -I$(INCROOT) LDFLAGS = -L$(USRLIBDIR) -lc -lX11 -ldl -lm @@ -82,6 +82,7 @@ INSTMANFLAGS = -m 0444 DEFINES = -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \ -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" \ + -D_HAS_STREAMS_SUPPORT -D_DONT_USE_MKTEMP \ -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" \ -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" \ -DTEXT_FILE_EXT=\"txt\" -DPIN_FILE_EXT=\"pin\" \