OSDN Git Service

Changed to reflect the naming of the branches with the macOS changes: version-1...
[hengbandforosx/web.git] / HengbandSourceCode.html.en
index cd24358..5c0cb95 100644 (file)
@@ -3,18 +3,24 @@
 <HTML>
   <HEAD lang="en">
     <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <TITLE>Hengband Application for Mac OS X: Source Code</TITLE>
+    <TITLE>Hengband Application for macOS: Source Code</TITLE>
   </HEAD>
 
   <BODY>
-    <H1>Hengband Application for Mac OS X</H1>
-    <P><A HREF="index.html.en">Binaries</A> | <A HREF="HengbandEnglishScreenshot.html.en">English screen shot</A> | <A HREF="HengbandJapaneseScreenshot.html.en">Japanese screen shot</A> | <A HREF="HengbandFeedback.html.en">Feedback</A> | Source code | <A HREF="HengbandChangeLog.html.en">Changes</A>
+    <H1>Hengband Application for macOS</H1>
+    <P><A HREF="index.html.en">Binaries</A> | <A HREF="HengbandEnglishScreenshot.html.en">English screen shot</A> | <A HREF="HengbandJapaneseScreenshot.html.en">Japanese screen shot</A> | <A HREF="HengbandFeedback.html.en">Feedback</A> | Source code | <A HREF="HengbandChangeLog.html.en">2.2.1.7 Changes</A> | <A HREF="HengbandChangeLog-1-6-2.html.en">1.6.2 Changes</A>
     <H1>Source Code</H1>
       <P>If you want to compile the code yourself or examine the changes I
         made, you can either get one of the packaged source code archives,
-        <A HREF="https://osdn.net/projects/hengbandforosx/downloads/72419/hengband-2.2.1.7c.tar.gz/">hengband-2.2.1.7c.tar.gz</A> is the latest, from
+        <A HREF="https://osdn.net/projects/hengbandforosx/downloads/74504/hengband-2.2.1.7f.tar.gz/">hengband-2.2.1.7f.tar.gz</A> is the latest for the
+        version based on Hengband 2.2.1.7 and
+        <A HREF="https://osdn.net/projects/hengbandforosx/downloads/74503/hengband-1.6.2b.tar.gz/">hengband-1.6.2b.tar.gz</A> is the latest for the
+        version based on Hengband 1.6.2, from
         <A HREF="https://osdn.net/projects/hengbandforosx/releases/">https://osdn.net/projbects/hengbandforosx/releases/</A>
-        or the clone the git repository, git://git.osdn.net/gitroot/hengbandforosx/hengbandosx.git .
+        or clone the git repository, git://git.osdn.net/gitroot/hengbandforosx/hengbandosx.git .
+        Within the git repository, the macos-2-2-1 branch corresponds to the
+        version based on 2.2.1.7 and the macos-1-6-2 branch corresponds to
+        the version based on 1.6.2.
       <P>If you cloned the git repository and want to compile the code, you'll
        first need to create the configure script and some of the files it uses.
        To do so, run this command in the top-level directory of the directory
@@ -24,7 +30,7 @@
          <LI><CODE>./bootstrap</CODE>
        </OL>
       <P>To compile the changed code and generate an English version of the game
-        which uses the Mac OS X Cocoa user interface, run these commands from
+        which uses the Cocoa user interface for macOS, run these commands from
         the top-level directory of the directory tree with the source code:
         <OL>
           <LI><CODE>./configure --disable-japanese --enable-cocoa</CODE>
         information from the lib subdirectory there.  To get the Japanese
         version, do not specify <CODE>--disable-japanese</CODE> when running
         configure.  Compilation of the Japanese version requires the utility,
-        nkf.  Source code for that utility is available from
+        nkf, unless you are building the code based on Hengband 1.6.2.
+        Source code for that utility is available from
         <A HREF="https://osdn.net/projects/nkf/">https://osdn.net/projects/nkf/</A>.
+      <P>To compile an English version that will run natively on either x86_64
+        or arm machines, you can use these commands from the top-level directory
+        of the directory tree with the source code:
+        <OL>
+          <LI><CODE>env CFLAGS="-arch x86_64 -arch arm64" OBJCFLAGS="-arch x86_64 -arch arm64" LDFLAGS="-arch x86_64 -arch arm64" ./configure --disable-dependency-tracking --enable-cocoa --disable-japanese</CODE>
+          <LI><CODE>make install</CODE>
+        </OL>
+      <P>For a Japanese version with a universal binary, the steps are much the
+        same.  The only difference is to omit <CODE>--disable-japanese</CODE>
+        when running configure.
       <P>Eventually, the hope is that the changes made here will be
         incorporated into the standard version of Hengband and you can get
         both the source code and binaries from them.