diff --git a/games/xevil/Makefile b/games/xevil/Makefile index 179e40ae134..5ae112bffc5 100644 --- a/games/xevil/Makefile +++ b/games/xevil/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2000/10/22 15:42:06 espie Exp $ +# $OpenBSD: Makefile,v 1.10 2001/03/17 15:14:55 wilfried Exp $ # DISTNAME= xevil1.5 @@ -20,4 +20,16 @@ PERMIT_DISTFILES_FTP= Yes WRKDIST= ${WRKDIR} +ALL_TARGET= freebsd + +do-install: + ${INSTALL_PROGRAM} ${WRKBUILD}/xevil $(PREFIX)/bin + ${INSTALL_MAN} ${WRKSRC}/xevil.6 $(PREFIX)/man/man6 + cd ${WRKSRC} && ${INSTALL_DATA} \ + ${WRKSRC}/app-defaults/XEvil.iris \ + ${WRKSRC}/app-defaults/XEvil.mac \ + ${WRKSRC}/app-defaults/XEvil.sun3 \ + ${WRKSRC}/app-defaults/XEvil.sun4_sparc \ + $(PREFIX)/lib/X11/app-defaults/ + .include diff --git a/games/xevil/patches/patch-Makefile b/games/xevil/patches/patch-Makefile new file mode 100644 index 00000000000..a709be5ea94 --- /dev/null +++ b/games/xevil/patches/patch-Makefile @@ -0,0 +1,23 @@ +$OpenBSD: patch-Makefile,v 1.1 2001/03/17 15:14:55 wilfried Exp $ +--- Makefile.orig Mon Jun 3 22:47:02 1996 ++++ Makefile Sat Mar 17 16:11:56 2001 +@@ -8,8 +8,6 @@ + #### Defines that are applicable to makes on all architectures + SHELL = /bin/sh + TARGETS = xevil #xshow +-DEBUG_OPT = -O #-g# #-DPRINT_ERRORS +-LINK_OPT = -O + + #SRC_DIR and WORK_DIR are only used for `make workdir` + SRC_DIR = /mit/hardts/src/X/xevil1.4.9 +@@ -94,8 +92,8 @@ ds: + + + freebsd: +- @$(MAKE) CC="c++" CFLAGS="-DUSE_RANDOM -DPROTECTED_IS_PUBLIC" \ +-INCL_DIRS=-I/usr/X11R6/include LIBS_DIRS=-L/usr/X11R6/lib \ ++ @$(MAKE) CC="${CXX}" CFLAGS="${CFLAGS} -DUSE_RANDOM -DPROTECTED_IS_PUBLIC" \ ++INCL_DIRS=-I${X11BASE}/include LIBS_DIRS=-L${X11BASE}/lib \ + LIBS="-lX11 -lm" $(TARGETS) + + diff --git a/games/xevil/patches/patch-utils_h b/games/xevil/patches/patch-utils_h new file mode 100644 index 00000000000..61fe5029576 --- /dev/null +++ b/games/xevil/patches/patch-utils_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-utils_h,v 1.1 2001/03/17 15:14:55 wilfried Exp $ +--- utils.h.orig Mon Jun 3 22:06:44 1996 ++++ utils.h Fri Mar 16 19:39:08 2001 +@@ -54,7 +54,7 @@ extern "C" + + + // Defines +-#define MSEC_PER_CLOCK (1.0e3 / CLOCKS_PER_SEC) ++#define MSEC_PER_CLOCK 8 // (1.0e3 / CLOCKS_PER_SEC) + + #ifndef max + #define max(a,b) (a> Makefile << END - -all: freebsd - -install: - cp xevil \$(PREFIX)/bin - mkdir -p \$(PREFIX)/lib/app-defaults - for f in iris mac sun3 sun4_sparc; do \ - cp app-defaults/XEvil.\$\$f \$(PREFIX)/lib/X11/app-defaults/; done - install -c -m 444 -o bin -g bin xevil.6 \$(PREFIX)/man/man6/xevil.6 - -END - -exit 0