Seiji Zenitani
zenit****@users*****
2006年 1月 22日 (日) 07:20:42 JST
Index: CarbonEmacsPackage/Makefile diff -u CarbonEmacsPackage/Makefile:1.24 CarbonEmacsPackage/Makefile:1.25 --- CarbonEmacsPackage/Makefile:1.24 Thu Jan 12 20:36:05 2006 +++ CarbonEmacsPackage/Makefile Sun Jan 22 07:20:41 2006 @@ -8,10 +8,14 @@ # ネットワークインストール対応ライブラリも # ほぼ同じ書式で記述しています。 # -# $Id: Makefile,v 1.24 2006/01/12 11:36:05 zenitani Exp $ +# $Id: Makefile,v 1.25 2006/01/21 22:20:41 zenitani Exp $ # ############################################################### +# 作成手順は下記の Wiki ページを参照して下さい。 +# +# http://macwiki.sourceforge.jp/cgi-bin/wiki.cgi?MakingOfCarbonEmacsPackage + # パッケージ制作者が手動で書き換える部分 # # VERSION : 短いバージョン名(Emacs 的なバージョン番号) @@ -19,9 +23,9 @@ # OS_VERSION : OS 毎にビルド方法を分ける(by 本庄さん) VERSION = 22.0.50 -LONG_VERSION = February, 2006; Carbon Emacs Package (Test Build) +#LONG_VERSION = February, 2006; Carbon Emacs Package (Test Build) #LONG_VERSION = February, 2006; Carbon Emacs Package (Compatible) -#LONG_VERSION = February, 2006; Carbon Emacs Package by S. Zenitani et al. +LONG_VERSION = February, 2006; Carbon Emacs Package by S. Zenitani et al. OS_VERSION ?= Tiger #OS_VERSION = Panther #OS_VERSION = Leopard @@ -37,8 +41,9 @@ PACKAGE_SITEDIR = ${PACKAGE_PREFIX}/site-lisp PACKAGE_INFODIR = ${PACKAGE_PREFIX}/info PACKAGE_DMG = EmacsCVS-${OS_VERSION}-`date +%Y%m%d`.dmg +SDK = /Developer/SDKs/MacOSX10.4u.sdk -ELISP_CONFIGURE = ./configure --with-emacs=${PACKAGE_EMACS} --prefix=${PACKAGE_PREFIX} --bindir=${PACKAGE_BIN} +ELISP_CONFIGURE = ./configure --with-emacs=${PACKAGE_EMACS} --prefix=${PACKAGE_PREFIX} --bindir=${PACKAGE_BIN} ELISP_MAKE = make EMACS=${PACKAGE_EMACS} prefix=${PACKAGE_PREFIX} ############################################################### @@ -88,36 +93,34 @@ lisp/carbon-emacs-package.el ; \ cp -p ../GPL/lisp/site-*.el lisp/ -# Panther / Tiger 共通 -compile: _preflight +# OS_VERSION に従ってビルド方法を変更する(by 本庄さん) +compile: compile-${OS_VERSION} + +# Tiger 用 (G4に最適化) +compile-Tiger: _preflight cd emacs ; \ - CFLAGS=-DUSE_ATSUI \ + env \ + CFLAGS="-arch i386 -arch ppc -isysroot ${SDK} -DUSE_ATSUI" \ ./configure \ --prefix=/Applications/Emacs.app/Contents/Resources \ - --with-carbon --without-x + --with-carbon --without-x \ --libexecdir=${PACKAGE_APP}/Contents/MacOS/libexec ; \ + env PER_ARCH_CFLAGS_ppc="-fast -mcpu=7450" \ make bootstrap +# STARTFLAGS="-Wl,-syslibroot,${SDK} -arch i386 -arch ppc" \ +# ref. http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_compiling/chapter_2_section_7.html#//apple_ref/doc/uid/TP40002217-CH206-BAJJFEAC -# Tiger 用、G4 最適化 -compile-G4: _preflight +# Panther 用 +compile-Panther: _preflight cd emacs ; \ - CFLAGS="-DUSE_ATSUI -fast -mcpu=7450" \ - ./configure --enable-carbon-app=/Applications \ + CFLAGS=-DUSE_ATSUI \ + ./configure \ --prefix=/Applications/Emacs.app/Contents/Resources \ - --with-carbon --without-x + --with-carbon --without-x \ --libexecdir=${PACKAGE_APP}/Contents/MacOS/libexec ; \ make bootstrap -# Tiger 用、G5 最適化 -# 理由はよくわかりませんが、失敗することが多いです。 -compile-G5: _preflight - cd emacs ; \ - CFLAGS="-DUSE_ATSUI -fast" \ - ./configure --enable-carbon-app=/Applications \ - --prefix=/Applications/Emacs.app/Contents/Resources \ - --with-carbon --without-x - --libexecdir=${PACKAGE_APP}/Contents/MacOS/libexec ; \ - make bootstrap + ############################################################### @@ -372,28 +375,32 @@ ${ELISP_CONFIGURE} --datadir=${PACKAGE_PREFIX}/etc ; \ ${ELISP_MAKE} all install - +# mew(Universal Binary 対応) _mew: ${PACKAGE_SITEDIR}/mew ${PACKAGE_SITEDIR}/mew: tar zxvf non-GPL/mew-*.tar.gz cd mew-* ; \ + env \ + CFLAGS="-arch i386 -arch ppc -isysroot ${SDK}" \ ${ELISP_CONFIGURE} ; \ ${ELISP_MAKE} all info jinfo install install-jinfo \ + LDFLAGS="-arch i386 -arch ppc -isysroot ${SDK}" \ elispdir=${PACKAGE_SITEDIR}/mew \ etcdir=${PACKAGE_SITEDIR}/mew/etc + ############################ # aspell _aspell: ${PACKAGE_BIN}/aspell ${PACKAGE_BIN}/aspell: +aspell: tar zxvf GPL/aspell-*.tar.gz cd aspell-* ; \ - ${ELISP_CONFIGURE} ; \ + ${ELISP_CONFIGURE} --disable-dependency-tracking ; \ ${ELISP_MAKE} all install -# --enable-static --disable-shared _aspell-en: ${PACKAGE_BIN}/aspell tar jxvf non-GPL/aspell6-en-*.tar.bz2