[macemacsjp-cvs 265] CVS update: CarbonEmacsPackage

Back to archive index

Seiji Zenitani zenit****@users*****
2006年 3月 9日 (木) 00:09:05 JST


Index: CarbonEmacsPackage/Makefile
diff -u CarbonEmacsPackage/Makefile:1.31 CarbonEmacsPackage/Makefile:1.32
--- CarbonEmacsPackage/Makefile:1.31	Tue Feb 28 01:18:28 2006
+++ CarbonEmacsPackage/Makefile	Thu Mar  9 00:09:05 2006
@@ -8,7 +8,7 @@
 #  ネットワークインストール対応ライブラリも
 #  ほぼ同じ書式で記述しています。
 #
-#  $Id: Makefile,v 1.31 2006/02/27 16:18:28 zenitani Exp $
+#  $Id: Makefile,v 1.32 2006/03/08 15:09:05 zenitani Exp $
 #
 ###############################################################
 
@@ -29,6 +29,7 @@
 OS_VERSION   ?= Tiger
 #OS_VERSION   = Panther
 #OS_VERSION   = Leopard
+UNAME         = $(shell uname -p)
 
 ###############################################################
 
@@ -75,7 +76,6 @@
 ###############################################################
 
 # コンパイル手順
-# 4種類のコンパイル手順があります
 # Fink の /sw ディレクトリがあると、システムのライブラリの代わりに
 # Fink のライブラリとリンクしてしまうことがありますので注意して下さい。
 
@@ -97,7 +97,7 @@
 # OS_VERSION に従ってビルド方法を変更する(by 本庄さん)
 compile: compile-${OS_VERSION}
 
-# Tiger 用 (G4に最適化)
+# Tiger 用 (G4に最適化は効いていない)
 compile-Tiger: _preflight
 	cd emacs ; \
 	env \
@@ -206,13 +206,13 @@
 		'(progn (add-to-list (quote load-path) ".") (byte-recompile-directory "." 0))'
 
 
-# Mule UCS (unused)
-_mule-ucs: ${PACKAGE_SITEDIR}/mule-ucs
-
-${PACKAGE_SITEDIR}/mule-ucs: 
-	cd mule-ucs ;\
-	${PACKAGE_EMACS} -q --no-site-file -batch -l mucs-comp.el
-	cp -pR mule-ucs/lisp  ${PACKAGE_SITEDIR}/mule-ucs
+# # Mule UCS (unused)
+# _mule-ucs: ${PACKAGE_SITEDIR}/mule-ucs
+# 
+# ${PACKAGE_SITEDIR}/mule-ucs: 
+# 	cd mule-ucs ;\
+# 	${PACKAGE_EMACS} -q --no-site-file -batch -l mucs-comp.el
+# 	cp -pR mule-ucs/lisp  ${PACKAGE_SITEDIR}/mule-ucs
 
 
 _apel: ${PACKAGE_SITEDIR}/apel
@@ -279,19 +279,19 @@
 	make; make install; make install-icons
 
 
-# SKK。行儀が悪い(インストールするだけで一部のキーを上書きする)ようなので
-# ネットインストールパッケージとして分離しています。
-_skk: ${PACKAGE_SITEDIR}/skk
-
-${PACKAGE_SITEDIR}/skk: 
-	tar zxvf GPL/ddskk-*.tar.gz
-	cd ddskk-* ; \
-	cp -p ../GPL/SKK-JISYO.L dic/SKK-JISYO.L ; \
-	export  SKK_LISPDIR=${PACKAGE_SITEDIR}/skk \
-		SKK_INFODIR=${PACKAGE_INFODIR} \
-		SKK_DATADIR=${PACKAGE_PREFIX}/share/skk ; \
-	${ELISP_MAKE} install
-#what-where
+# # SKK。行儀が悪い(インストールするだけで一部のキーを上書きする)ようなので
+# # ネットインストールパッケージとして分離しています。
+# _skk: ${PACKAGE_SITEDIR}/skk
+# 
+# ${PACKAGE_SITEDIR}/skk: 
+# 	tar zxvf GPL/ddskk-*.tar.gz
+# 	cd ddskk-* ; \
+# 	cp -p ../GPL/SKK-JISYO.L dic/SKK-JISYO.L ; \
+# 	export  SKK_LISPDIR=${PACKAGE_SITEDIR}/skk \
+# 		SKK_INFODIR=${PACKAGE_INFODIR} \
+# 		SKK_DATADIR=${PACKAGE_PREFIX}/share/skk ; \
+# 	${ELISP_MAKE} install
+# #what-where
 
 
 _haskell: ${PACKAGE_SITEDIR}/haskell
@@ -305,28 +305,28 @@
 	mkdir ${PACKAGE_SITEDIR}/haskell-mode
 	cp -p haskell-mode-*/* ${PACKAGE_SITEDIR}/haskell-mode/
 
-_yc:
-	tar zxvf GPL/yc-*.tar.gz
-	cd yc-* ; \
-	${ELISP_MAKE} all install elispdir=${PACKAGE_SITEDIR} INSTALL_PATH=${PACKAGE_BIN}
-
-# modified BSD
-_libeb: ${PACKAGE_PREFIX}/lib/libeb.dylib
-
-${PACKAGE_PREFIX}/lib/libeb.dylib: 
-	tar jxvf non-GPL/eb-*.tar.bz2
-	cd eb-* ; \
-	${ELISP_CONFIGURE} --with-iconv-includes=/usr/include \
-		--with-iconv-libraries=/usr/lib ; \
-	${ELISP_MAKE} all install
-
-_eblook: ${PACKAGE_BIN}/eblook
-
-${PACKAGE_BIN}/eblook: ${PACKAGE_PREFIX}/lib/libeb.dylib
-	tar zxvf GPL/eblook-*.tar.gz
-	cd eblook-* ; \
-	${ELISP_CONFIGURE} ; \
-	${ELISP_MAKE} all install
+# _yc:
+# 	tar zxvf GPL/yc-*.tar.gz
+# 	cd yc-* ; \
+# 	${ELISP_MAKE} all install elispdir=${PACKAGE_SITEDIR} INSTALL_PATH=${PACKAGE_BIN}
+
+# # modified BSD
+# _libeb: ${PACKAGE_PREFIX}/lib/libeb.dylib
+# 
+# ${PACKAGE_PREFIX}/lib/libeb.dylib: 
+# 	tar jxvf non-GPL/eb-*.tar.bz2
+# 	cd eb-* ; \
+# 	${ELISP_CONFIGURE} --with-iconv-includes=/usr/include \
+# 		--with-iconv-libraries=/usr/lib ; \
+# 	${ELISP_MAKE} all install
+
+# _eblook: ${PACKAGE_BIN}/eblook
+# 
+# ${PACKAGE_BIN}/eblook: ${PACKAGE_PREFIX}/lib/libeb.dylib
+# 	tar zxvf GPL/eblook-*.tar.gz
+# 	cd eblook-* ; \
+# 	${ELISP_CONFIGURE} ; \
+# 	${ELISP_MAKE} all install
 
 _lookup: ${PACKAGE_SITEDIR}/lookup
 
@@ -379,47 +379,52 @@
 
 ############################
 #  aspell
-#  /usr/local の中の libintl, libiconv ライブラリとリンクされるのを
-#  避けるため、一時的にディレクトリ名を変更する
-#  非常に危険な処理なので、say コマンドで注意を促すようにした
+#  小林さんの GETTEXT 対策を追加
+#  ref. [Macemacsjp-users 956]
 
 _aspell: ${PACKAGE_BIN}/aspell
 
 ${PACKAGE_BIN}/aspell:
-	if [ -e /usr/local/lib ] ; then \
-		say "Attention, please." ; \
-		sudo mv /usr/local/lib /usr/local/lib.tmp ; \
-	fi
+#	if [ -e /usr/local/lib ] ; then \
+#		say "Attention, please." ; \
+#		sudo mv /usr/local/lib /usr/local/lib.tmp ; \
+#	fi
 	tar zxvf GPL/aspell-*.tar.gz
 	cd aspell-* ; \
+	perl -pi -e 's@^AM_GNU_GETTEXT@#AM_GNU_GETTEXT @ g;s @ po\/Makefile\.in@@g' configure.ac ; \
+	perl -pi -e 's@\ po\ @\ @g' Makefile.in ; \
+	autoconf ; \
 	${ELISP_CONFIGURE} --disable-shared --enable-static ; \
 	perl -i -p -e 's@/usr/local/.*$$@@g;' Makefile ; \
 	${ELISP_MAKE} all install
-	if [ -e /usr/local/lib.tmp ] ; then \
-		say "Attention, please." ; \
-		sudo mv /usr/local/lib.tmp /usr/local/lib ; \
-	fi
+#	if [ -e /usr/local/lib.tmp ] ; then \
+#		say "Attention, please." ; \
+#		sudo mv /usr/local/lib.tmp /usr/local/lib ; \
+#	fi
+	mv ${PACKAGE_PREFIX}/lib/aspell-0.60 ${PACKAGE_PREFIX}/lib/aspell-${UNAME}
+	rm ${PACKAGE_PREFIX}/lib/libaspell.*
+	rm ${PACKAGE_PREFIX}/lib/libpspell.*
 
 _aspell-en: ${PACKAGE_BIN}/aspell
 	tar jxvf non-GPL/aspell6-en-*.tar.bz2
 	cd aspell6-en-* ; \
 	PATH="$$PATH:${PACKAGE_BIN}" ./configure ; \
-	make install datadir=${PACKAGE_PREFIX}/lib/aspell-0.60 \
-		dictdir=${PACKAGE_PREFIX}/lib/aspell-0.60
+	make install datadir=${PACKAGE_PREFIX}/lib/aspell-${UNAME} \
+		dictdir=${PACKAGE_PREFIX}/lib/aspell-${UNAME}
 
 _aspell-de: ${PACKAGE_BIN}/aspell
 	tar jxvf GPL/aspell6-de-*.tar.bz2
 	cd aspell6-de-* ; \
 	PATH="$$PATH:${PACKAGE_BIN}" ./configure ; \
-	make install datadir=${PACKAGE_PREFIX}/lib/aspell-0.60 \
-		dictdir=${PACKAGE_PREFIX}/lib/aspell-0.60
+	make install datadir=${PACKAGE_PREFIX}/lib/aspell-${UNAME} \
+		dictdir=${PACKAGE_PREFIX}/lib/aspell-${UNAME}
 
 _aspell-it: ${PACKAGE_BIN}/aspell
 	tar jxvf GPL/aspell6-it-*.tar.bz2
 	cd aspell6-it-* ; \
 	PATH="$$PATH:${PACKAGE_BIN}" ./configure ; \
-	make install datadir=${PACKAGE_PREFIX}/lib/aspell-0.60 \
-		dictdir=${PACKAGE_PREFIX}/lib/aspell-0.60
+	make install datadir=${PACKAGE_PREFIX}/lib/aspell-${UNAME} \
+		dictdir=${PACKAGE_PREFIX}/lib/aspell-${UNAME}
 
 # French aspell dictionary
 # Instruction is provided by P. J. Heslin
@@ -430,8 +435,8 @@
 	cd aspell-fr-* ; \
 	PATH="$$PATH:${PACKAGE_BIN}" ./configure ; \
 	PATH="$$PATH:${PACKAGE_BIN}" make all ; \
-	make install datadir=${PACKAGE_PREFIX}/lib/aspell-0.60 \
-		dictdir=${PACKAGE_PREFIX}/lib/aspell-0.60
+	make install datadir=${PACKAGE_PREFIX}/lib/aspell-${UNAME} \
+		dictdir=${PACKAGE_PREFIX}/lib/aspell-${UNAME}
 
 #  aspell
 ####################
@@ -568,11 +573,21 @@
 	open ${PACKAGE_DIR}
 	@echo "make icon"
 
+# Intel パート用の簡易版(Universal 化には、バイナリ本体と aspell のみ必要)
+pkg-intel: elisps mac-elisps _aspell-en _aspell-de _activate _coral site-start.d
+	open ${PACKAGE_DIR}
+
 icon:
+	if [ -e ${PACKAGE_DIR}/.Background.png ] ; then \
+		mv ${PACKAGE_DIR}/.Background.png ${PACKAGE_DIR}/Background.png ; \
+	fi
 	open ${PACKAGE_DIR}
 	osascript Resources/Rakuchin.applescript
 	osascript Resources/Rakuchin.applescript
 	osascript Resources/Rakuchin.applescript
+	if [ -e ${PACKAGE_DIR}/Background.png ] ; then \
+		mv ${PACKAGE_DIR}/Background.png ${PACKAGE_DIR}/.Background.png ; \
+	fi
 
 ###############################################################
 #
@@ -586,21 +601,46 @@
 
 done-Tiger: 
 #	ditto -rsrcFork /Applications/Emacs.app /Volumes/Emacs/Emacs.app
-	mv ${PACKAGE_DIR}/Background.png ${PACKAGE_DIR}/.Background.png
+	if [ -e ${PACKAGE_DIR}/Background.png ] ; then \
+		mv ${PACKAGE_DIR}/Background.png ${PACKAGE_DIR}/.Background.png ; \
+	fi
 	hdiutil eject `df | grep ${PACKAGE_DIR} | cut -f1 -d\ `
 	hdiutil convert -format UDBZ -o ${PACKAGE_DMG} test.dmg
-	rm test.dmg
 	/usr/bin/openssl sha1 ${PACKAGE_DMG}
 	open .
 
 done-Panther: 
 #	ditto -rsrcFork /Applications/Emacs.app /Volumes/Emacs/Emacs.app
-	mv ${PACKAGE_DIR}/Background.png ${PACKAGE_DIR}/.Background.png
+	if [ -e ${PACKAGE_DIR}/Background.png ] ; then \
+		mv ${PACKAGE_DIR}/Background.png ${PACKAGE_DIR}/.Background.png ; \
+	fi
 	hdiutil eject `df | grep ${PACKAGE_DIR} | cut -f1 -d\ `
 	hdiutil convert -format UDZO -imagekey zlib-level=9 \
 		-o ${PACKAGE_DMG} test.dmg
-	rm test.dmg
 	/usr/bin/openssl sha1 ${PACKAGE_DMG}
 	open .
 
+# Universal Binary 作成用
+universal:
+	@echo "Emacs (Universal) - Emacs 1 (ppc) - Emacs 2 (i386)"
+	for d in \
+		Emacs.app/Contents/MacOS/bin/emacs \
+		Emacs.app/Contents/MacOS/bin/aspell \
+		Emacs.app/Contents/MacOS/bin/prezip \
+		Emacs.app/Contents/MacOS/bin/word-list-compress \
+		; do \
+		lipo -arch ppc /Volumes/Emacs\ 1/$$d -arch i386 /Volumes/Emacs\ 2/$$d \
+			-create -output /Volumes/Emacs/$$d ;\
+	done
+	cp -pR /Volumes/Emacs\ 2/Emacs.app/Contents/Resources/lib/aspell-* \
+		/Volumes/Emacs/Emacs.app/Contents/Resources/lib/aspell-i386
+
+universal-done:
+	if [ -e ${PACKAGE_DIR}/Background.png ] ; then \
+		mv ${PACKAGE_DIR}/Background.png ${PACKAGE_DIR}/.Background.png ; \
+	fi
+	hdiutil eject `df | grep ${PACKAGE_DIR} | cut -f1 -d\ `
+	hdiutil convert -format UDBZ -o Universal.dmg test.dmg
+	open .
+
 # end


macemacsjp-cvs メーリングリストの案内
Back to archive index