| 1 |
The main Portfile to build with macports is included here. There has |
| 2 |
become a little post processing step and the make-package.sh simply |
| 3 |
uses the create-osx-app-bundle.sh script to create an app.zip file |
| 4 |
from the macports built sources. |
| 5 |
|
| 6 |
As of January 2015, the build is performed using the following script |
| 7 |
sequence. The create-osx-app-bundle.sh script will create |
| 8 |
~/FontForge.app.dmg which you can then archive and upload that |
| 9 |
file as desired. The script which does the upload is not in this |
| 10 |
repository as it includes some authentication credentials and is |
| 11 |
specific to the current distribution site. |
| 12 |
|
| 13 |
Before this starts, change to the directory |
| 14 |
/usr/local/src/github-fontforge |
| 15 |
and clone the fontforge sources into there: |
| 16 |
git clone [email protected]:fontforge/fontforge.git fontforge |
| 17 |
Add the aforementioned path to /opt/local/etc/macports/sources.conf as |
| 18 |
file:///usr/local/src/github-fontforge |
| 19 |
above the default MacPorts sources. |
| 20 |
|
| 21 |
cd /usr/local/src/github-fontforge |
| 22 |
sudo portindex |
| 23 |
cd fontforge/osx |
| 24 |
./force-rebuild.sh |
| 25 |
cd /opt/local/var/macports/build/_usr_local_src_github-fontforge_fontforge_osx/fontforge/work/fontforge-2.0.0_beta1 |
| 26 |
bash ./osx/create-osx-app-bundle.sh |
| 27 |
|
| 28 |
You will also want to configure your macports environment to include |
| 29 |
in binaries so that the link paths can be modified for packaged |
| 30 |
execution. |
| 31 |
|
| 32 |
For example, the file |
| 33 |
/opt/local/share/macports/Tcl/port1.0/portconfigure.tcl default |
| 34 |
configure.ldflags {"-L${prefix}/lib -Wl,-headerpad_max_install_names"} |
| 35 |
|