OSDN Git Service

Updated with provisional list of the changes for 1.6.2b and 2.2.1.7f.
[hengbandforosx/web.git] / HengbandSourceCode.html.en
index 8c59245..1330ba8 100644 (file)
@@ -3,11 +3,11 @@
 <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>
+    <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
@@ -18,7 +18,7 @@
         version based on Hengband 1.6.2, from
         <A HREF="https://osdn.net/projects/hengbandforosx/releases/">https://osdn.net/projbects/hengbandforosx/releases/</A>
         or clone the git repository, git://git.osdn.net/gitroot/hengbandforosx/hengbandosx.git .
-        Within the git repository, the master branch corresponds to the
+        Within the git repository, the version-2-2-1 branch corresponds to the
         version based on 2.2.1.7 and the version-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
@@ -30,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>
         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.