Date:2010-12-14 22:06:38 (13 years 3 months ago)
Author:David Kühling
Commit:4a332287956799832981df8bf63043cdf0a16a9d
Message:more complete _host_ installation of Emacs so we can run ja-dic-cnv etc., minor fixes

Files: emacs/Makefile (5 diffs)

Change Details

emacs/Makefile
33#
44# License GPLv2 or later.
55#
6# Package for the complete GNU Emacs editor
7
68include $(TOPDIR)/rules.mk
79
810PKG_NAME:=emacs
...... 
9799## bootstrapping
98100define Host/Compile
99101    export LD_LIBRARY_PATH=$(STAGING_DIR_HOST)/lib; \
100    $(call Host/Compile/Default, lib-src)
101    $(call Host/Compile/Default, -C src temacs emacs)
102    $(call Host/Compile/Default)
102103endef
103104
104105define Host/Install
105    export LD_LIBRARY_PATH=$(STAGING_DIR_HOST)/lib; \
106    $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
107    $(INSTALL_DIR) $(STAGING_DIR_HOST)/lib
108    $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/temacs $(STAGING_DIR_HOST)/bin/
109    $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/emacs $(STAGING_DIR_HOST)/bin/
106    $(call Host/Install/Default)
110107    $(INSTALL_BIN) $(HOST_BUILD_DIR)/lib-src/make-docfile $(STAGING_DIR_HOST)/bin/emacs-make-docfile
111108    $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/prefix-args $(STAGING_DIR_HOST)/bin/emacs-prefix-args
112# $(INSTALL_DATA) $(HOST_BUILD_DIR)/bla $(STAGING_DIR_HOST)/lib/
113109endef
114110
115111define Build/Configure
...... 
118114
119115define Build/Compile
120116    $(call Build/Compile/Default, -C lib-src -o test-distrib)
121# ln -sf $(STAGING_DIR_HOST)/bin/temacs $(PKG_BUILD_DIR)/src/
122117    ln -sf $(STAGING_DIR_HOST)/bin/emacs-make-docfile $(PKG_BUILD_DIR)/lib-src/make-docfile
123118    ln -sf $(STAGING_DIR_HOST)/bin/emacs-prefix-args $(PKG_BUILD_DIR)/src/prefix-args
124119    sed -ie 's; /usr/lib/crt; $(TOOLCHAIN_DIR)/usr/lib/crt;g' $(PKG_BUILD_DIR)/src/Makefile
...... 
161156
162157define Package/emacs-el/install
163158    $(INSTALL_DIR) $(1)/usr
164    (cd $(PKG_INSTALL_DIR)/usr && find share -name "*.el.gz" | tar -cf - -T -) \
165        | (cd $(1)/usr && tar -xvf -)
159    (cd $(PKG_INSTALL_DIR)/usr && find share -name "*.el.gz" \
160      | tar -cf - -T - --exclude "ja-dic" ) \
161     | (cd $(1)/usr && tar -xvf -)
166162endef
167163
168164
...... 
175171
176172# The following comments configure the Emacs editor. Just ignore them.
177173# Local Variables:
178# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/emacs/compile -j2 V=99"
174# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/emacs-ja-dic-m/compile -j2 V=99"
179175# End:

Archive Download the corresponding diff file



interactive