Package-Name: gpm
Rebuild-For: emacs
Source: ftp://arcana.linux.it/pub/gpm/gpm-(\d+.\d+.\d+).tar.gz $1
Compile-Requires: bison
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
Compile:
	mv -f BUGS COPYING Change* doc/FAQ README TODO "$(PREFIX)/"
# Don't compile the shared library, and avoid getting caught by the wget check
	mv -f configure configure.old
	sed -e 's/SHLIB=.*/SHLIB=/' -e 's/wgetch/waddch/g' <configure.old >configure
	chmod +x configure
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--without-curses"
	$(MAKE)
	$(MAKE) install
	rm -f "$(PREFIX)"/bin/disable-paste
	rm -f "$(PREFIX)"/man/man1/mouse-test.1.gz
Install:
	$(MAKE) instbin BIN="gpm-root mev"
	$(MAKE) instsbin SBIN=gpm
	$(MAKE) instinfo INFO=gpm
	$(MAKE) instman SECTION=1 MAN="gpm-root mev"
	$(MAKE) instman SECTION=7 MAN=gpm-types
	$(MAKE) instman SECTION=8 MAN=gpm
Patch: <<EOT
--- doc/Makefile.in.old	2002-02-24 00:42:23 +0900
+++ doc/Makefile.in	2002-11-24 19:35:57 +0900
@@ -128,14 +128,6 @@
 		install-info --dir-file=$(infodir)/dir $(infodir)/gpm.info; \
 	  fi; \
 	fi
-	#itz Sat Dec 26 23:21:05 PST 1998
-	#i keep all my infopages compressed and i'm tired to do it by
-	#hand, so check if there are any compressed pages and do this
-	#one too
-	-ls $(infodir)/*[-.]info.gz >/dev/null 2>&1 \
-		&& gzip -f $(infodir)/gpm.info
-	# Hmm.... shouldn't man pages be compressed too?
-   # maybe they should, but at least at my system they are not.
 
 # This potentially leaves around cached manpages,
 # e.g. /var/cache/man/cat1/mev.1.gz.  Deleting these is not our job,
EOT

/pkg/gpm/
/usr/bin/gpm-root
/usr/bin/mev
/usr/sbin/gpm
/usr/info/gpm.info*
/usr/man/man1/gpm-root.1.gz
/usr/man/man1/mev.1.gz
/usr/man/man7/gpm-types.7.gz
/usr/man/man8/gpm.8.gz
