X-Git-Url: http://git.osdn.net/view?p=hengbandforosx%2Fweb.git;a=blobdiff_plain;f=HengbandSourceCode.html.en;h=5c0cb957efdcd75dac54666792e39b64b3a065c5;hp=7e37ec10c0e789536fbad979f9fc2e3803b1b0e5;hb=00077ceb19a560406b46c4b36ea4e9064d5f5b2e;hpb=81a8fc4a5b097764587a3ea397df530b511642f7 diff --git a/HengbandSourceCode.html.en b/HengbandSourceCode.html.en index 7e37ec1..5c0cb95 100644 --- a/HengbandSourceCode.html.en +++ b/HengbandSourceCode.html.en @@ -3,18 +3,24 @@ - Hengband Application for Mac OS X: Source Code + Hengband Application for macOS: Source Code -

Hengband Application for Mac OS X

-

Binaries | English screen shot | Japanese screen shot | Feedback | Source code | Changes +

Hengband Application for macOS

+

Binaries | English screen shot | Japanese screen shot | Feedback | Source code | 2.2.1.7 Changes | 1.6.2 Changes

Source Code

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, - hengband-2.2.1.7b.tar.gz is the latest, from + hengband-2.2.1.7f.tar.gz is the latest for the + version based on Hengband 2.2.1.7 and + hengband-1.6.2b.tar.gz is the latest for the + version based on Hengband 1.6.2, from https://osdn.net/projbects/hengbandforosx/releases/ - 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.

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 @@

  • ./bootstrap

    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:

    1. ./configure --disable-japanese --enable-cocoa @@ -40,8 +46,19 @@ information from the lib subdirectory there. To get the Japanese version, do not specify --disable-japanese 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 https://osdn.net/projects/nkf/. +

      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: +

        +
      1. 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 +
      2. make install +
      +

      For a Japanese version with a universal binary, the steps are much the + same. The only difference is to omit --disable-japanese + when running configure.

      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.