pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/falcons-eye Make falcons-eye build in Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e8591928182
branches:  trunk
changeset: 473057:1e8591928182
user:      ben <ben%pkgsrc.org@localhost>
date:      Thu Apr 15 19:43:12 2004 +0000

description:
Make falcons-eye build in Linux.

diffstat:

 games/falcons-eye/Makefile         |  29 ++++++++++++-----
 games/falcons-eye/distinfo         |   3 +-
 games/falcons-eye/patches/patch-af |  60 --------------------------------------
 3 files changed, 21 insertions(+), 71 deletions(-)

diffs (126 lines):

diff -r fdd75f008f43 -r 1e8591928182 games/falcons-eye/Makefile
--- a/games/falcons-eye/Makefile        Thu Apr 15 18:54:29 2004 +0000
+++ b/games/falcons-eye/Makefile        Thu Apr 15 19:43:12 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2004/03/07 17:13:49 snj Exp $
+# $NetBSD: Makefile,v 1.14 2004/04/15 19:43:12 ben Exp $
 #
 
 DISTNAME=              nethack_source_331_jtp_193
@@ -20,16 +20,27 @@
 USE_BUILDLINK3=                yes
 USE_X11=               yes
 
-post-patch:
-       @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/config.h-pre
-       @${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g'                         \
-               -e 's|@GZIP_PROGRAM@|'`${ECHO} ${GZIP_CMD} | ${AWK} '{ print $$1 }'`'|g' \
-               < ${WRKSRC}/config.h-pre > ${WRKSRC}/include/config.h
-       @${RM} -f ${WRKSRC}/config.h-pre
-       @${SED} 's@XXXPREFIXXXX@${PREFIX}@g' \
-               <${WRKSRC}/src/fe-config.in >${WRKSRC}/src/fe-config
+SUBST_CLASSES+=                paths
+SUBST_MESSAGE.paths=   "Configuring program paths."
+SUBST_STAGE.paths=     post-patch
+SUBST_FILES.paths=     include/config.h src/fe-config.in
+SUBST_SED.paths=       -e "s,XXXPREFIXXXX,${PREFIX},g" \
+                       -e "s,@GZIP_PROGRAM@,${GZIP_CMD:M*gzip},g"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+SUBST_CLASSES+=                unixconf
+SUBST_MESSAGE.unixconf=        "Configuring to use NetBSD pre-sets."
+SUBST_STAGE.unixconf=  post-patch
+SUBST_FILES.unixconf=  include/unixconf.h
+SUBST_SED.unixconf=    -e 's,^\/\* \#define BSD 1 \*\/,\#define BSD 1,' \
+                       -e 's,^\#define SYSV,\/\* \#define SYSV \*\/,' \
+                       -e 's,^\#define LINUX,\/\* \#define LINUX \*\/,'
+.endif
 
 pre-configure:
+       ${CP} ${WRKSRC}/src/fe-config.in ${WRKSRC}/src/fe-config
        @${CHMOD} 755 ${WRKSRC}/sys/unix/setup.sh
 
 pre-install:
diff -r fdd75f008f43 -r 1e8591928182 games/falcons-eye/distinfo
--- a/games/falcons-eye/distinfo        Thu Apr 15 18:54:29 2004 +0000
+++ b/games/falcons-eye/distinfo        Thu Apr 15 19:43:12 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2003/12/20 16:51:38 ben Exp $
+$NetBSD: distinfo,v 1.4 2004/04/15 19:43:12 ben Exp $
 
 SHA1 (nethack_source_331_jtp_193.zip) = 8e002c7f7ca039de875b3c797b2584a517aad6ce
 Size (nethack_source_331_jtp_193.zip) = 8405675 bytes
@@ -7,7 +7,6 @@
 SHA1 (patch-ac) = 3a88954c950854350938fbec1fef195baaacb2cf
 SHA1 (patch-ad) = dc8de40956abdea203814868c4344b7676dee82d
 SHA1 (patch-ae) = b6d0cca1e3d781a2a1f1d4b244e944eaedfec716
-SHA1 (patch-af) = 0f2fa223ee26c5c3c5e1ae92b65d86af636f5ec5
 SHA1 (patch-ag) = 6aeae6bde079b9c9081f6e32523687010c9bc674
 SHA1 (patch-ba) = 8fb7c3ad5fdc5f35e34b1ac87bc60e1a22a91c03
 SHA1 (patch-bb) = 899a966ec39b749618cad9c6e420cfd865eb7d5e
diff -r fdd75f008f43 -r 1e8591928182 games/falcons-eye/patches/patch-af
--- a/games/falcons-eye/patches/patch-af        Thu Apr 15 18:54:29 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-$NetBSD: patch-af,v 1.1.1.1 2002/01/21 11:56:17 pooka Exp $
-
---- include/unixconf.h.orig    Sun Jun 24 18:57:16 2001
-+++ include/unixconf.h
-@@ -19,25 +19,25 @@
-  */
- 
- /* define exactly one of the following four choices */
--/* #define BSD 1 */   /* define for 4.n BSD  */
-+#define BSD 1         /* define for 4.n BSD  */
-                       /* also for relatives like SunOS 4.x, DG/UX, and */
-                       /* older versions of Linux */
- /* #define ULTRIX */  /* define for Ultrix v3.0 or higher (but not lower) */
-                       /* Use BSD for < v3.0 */
-                       /* "ULTRIX" not to be confused with "ultrix" */
--#define SYSV          /* define for System V, Solaris 2.x, newer versions */
-+/* #define SYSV               /* define for System V, Solaris 2.x, newer versions */
-                       /* of Linux */
- /* #define HPUX */    /* Hewlett-Packard's Unix, version 6.5 or higher */
-                       /* use SYSV for < v6.5 */
- 
- 
- /* define any of the following that are appropriate */
--#define SVR4          /* use in addition to SYSV for System V Release 4 */
-+/* #define SVR4               /* use in addition to SYSV for System V Release 4 */
-                       /* including Solaris 2+ */
- #define NETWORK               /* if running on a networked system */
-                       /* e.g. Suns sharing a playground through NFS */
- /* #define SUNOS4 */  /* SunOS 4.x */
--#define LINUX /* Another Unix clone */
-+/* #define LINUX */   /* Another Unix clone */
- /* #define CYGWIN32 */        /* Unix on Win32 -- use with case sensitive defines */
- /* #define GENIX */   /* Yet Another Unix Clone */
- /* #define HISX */    /* Bull Unix for XPS Machines */
-@@ -47,7 +47,7 @@
-                        * job control (note that AIX is SYSV otherwise)
-                        * Also define this for AIX 3.2 */
- 
--#define TERMINFO      /* uses terminfo rather than termcap */
-+/* #define TERMINFO   /* uses terminfo rather than termcap */
-                       /* Should be defined for most SYSV, SVR4 (including
-                        * Solaris 2+), HPUX, and Linux systems.  In
-                        * particular, it should NOT be defined for the UNIXPC
-@@ -168,11 +168,15 @@
- 
- #ifdef        MAIL
- # if defined(BSD) || defined(ULTRIX)
-+# ifdef __NetBSD__
-+#define DEF_MAILREADER "/usr/bin/mail"
-+# else
- #  ifdef AMS
- #define AMS_MAILBOX   "/Mailbox"
- #  else
- #define DEF_MAILREADER        "/usr/ucb/Mail"
--#  endif
-+# endif
-+# endif
- #else
- # if defined(SYSV) || defined(DGUX) || defined(HPUX)
- #  if defined(M_XENIX) || defined(__FreeBSD__)



Home | Main Index | Thread Index | Old Index