Date:2010-10-24 13:53:50 (9 years 8 months ago)
Author:David K├╝hling
Commit:89d817b09564e885fa39cf45e63bd56a49d550be
Message:package building fix: do not run postinst image update on host also some fixes towards supporting Gforth libffi C interface (incomplete)

Files: gforth/Makefile (3 diffs)

Change Details

gforth/Makefile
1818PKG_NAME:=gforth
1919PKG_SNAPSHOT_DATE=20100918
2020PKG_VERSION=0.7.0-$(PKG_SNAPSHOT_DATE)
21PKG_RELEASE:=1
21PKG_RELEASE:=3
2222
2323PKG_BUILD_DEPENDS:= gforth/host libltdl/host libtool/host libffi
2424PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
2525PKG_FIXUP:=libtool
2626
2727PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
28PKG_SOURCE_URL:=\
29    http://user.cs.tu-berlin.de/~dvdkhlng/ \
30    http://mosquito.dyndns.tv/~spock/
31#PKG_SOURCE_URL:= file://~/forth/gforth/
32PKG_MD5SUM:=5ada9cc3f72fea8ea002bbae4b39d118
28#PKG_SOURCE_URL:=\
29# http://user.cs.tu-berlin.de/~dvdkhlng/ \
30# http://mosquito.dyndns.tv/~spock/
31PKG_SOURCE_URL:= file://~/forth/gforth/
32#PKG_MD5SUM:=5ada9cc3f72fea8ea002bbae4b39d118
3333#f912b58c2434a9e1df7d4f8db75636da
3434
3535# Alternate download #1 via CVS: this doesn't work, as CVS is missing the
...... 
299299
300300        # install pre-generated C-interface wrappers (libcc)
301301    -for i in $(LIBCC_BUILD_SRC); do \
302      libtool --mode=install $(INSTALL_BIN) \
302          which libtool; \
303      ls -l $(PKG_BUILD_LIBCC_DIR)/.libs; \
304      libtool --mode=install $(INSTALL_DATA) \
303305        $(PKG_BUILD_LIBCC_DIR)/`basename $$$$i .fs`.la \
304306        $(1)/$(GFORTH_LIBCC_DIR)/; \
307        ls -l $(1)/$(GFORTH_LIBCC_DIR)/; \
305308    done
306309# -libtool --finish $(1)/$(GFORTH_LIBCC_DIR)
307310    -rm -f $(1)/$(GFORTH_LIBCC_DIR)/*.a
...... 
311314## installed source code.
312315define Package/gforth/postinst
313316#! /bin/sh
314$(GFORTH_BIN_DIR)/gforth-update-image
317if [ -z "$$IPKG_OFFLINE_ROOT" ]; then
318    # only attempt to update image on target, never on host
319    $(GFORTH_BIN_DIR)/gforth-update-image
320fi
315321endef
316322
317323define Package/gforth/prerm
318324#! /bin/sh
319rm -f $(GFORTH_LIB_DIR)/gforth.fi
325if [ -z "$$IPKG_OFFLINE_ROOT" ]; then
326    rm -f $(GFORTH_LIB_DIR)/gforth.fi
327fi
320328endef
321329
322330$(eval $(call HostBuild))

Archive Download the corresponding diff file



interactive