diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2008-11-27 15:56:19 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2008-11-27 15:56:19 +0000 |
commit | 3eface707f5c42d95e578eae8639377f12e74eab (patch) | |
tree | 257b01bfce2f3a443e7b58b5443b8d33ea30b23f | |
parent | 1ef51299b7af3fb2f096d87197de453eac97bff9 (diff) | |
download | ptxdist-3eface707f5c42d95e578eae8639377f12e74eab.tar.gz ptxdist-3eface707f5c42d95e578eae8639377f12e74eab.tar.xz |
* cbmbasic: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9167 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | rules/cbmbasic.in | 9 | ||||
-rw-r--r-- | rules/cbmbasic.make | 109 |
2 files changed, 118 insertions, 0 deletions
diff --git a/rules/cbmbasic.in b/rules/cbmbasic.in new file mode 100644 index 000000000..3714afed0 --- /dev/null +++ b/rules/cbmbasic.in @@ -0,0 +1,9 @@ +## SECTION=scripting_languages + +config CBMBASIC + tristate + prompt "cbmbasic" + help + This application is a recompiled version of the original + Commodore 64 binary. + diff --git a/rules/cbmbasic.make b/rules/cbmbasic.make new file mode 100644 index 000000000..d8a912962 --- /dev/null +++ b/rules/cbmbasic.make @@ -0,0 +1,109 @@ +# -*-makefile-*- +# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $ +# +# Copyright (C) 2008 by Robert Schwebel <r.schwebel@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_CBMBASIC) += cbmbasic + +# +# Paths and names +# +CBMBASIC_VERSION := 1.0 +CBMBASIC := cbmbasic +CBMBASIC_SUFFIX := zip +CBMBASIC_URL := http://www.weihenstephan.org/~michaste/pagetable/recompiler/$(CBMBASIC).$(CBMBASIC_SUFFIX) +CBMBASIC_SOURCE := $(SRCDIR)/$(CBMBASIC).$(CBMBASIC_SUFFIX) +CBMBASIC_DIR := $(BUILDDIR)/$(CBMBASIC) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(CBMBASIC_SOURCE): + @$(call targetinfo) + @$(call get, CBMBASIC) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/cbmbasic.extract: + @$(call targetinfo) + @$(call clean, $(CBMBASIC_DIR)) + mkdir -p $(CBMBASIC_DIR) + @$(call extract, CBMBASIC, $(CBMBASIC_DIR)) + @$(call patchin, CBMBASIC) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +CBMBASIC_PATH := PATH=$(CROSS_PATH) +CBMBASIC_ENV := $(CROSS_ENV) + +$(STATEDIR)/cbmbasic.prepare: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/cbmbasic.compile: + @$(call targetinfo) + cd $(CBMBASIC_DIR) && $(CBMBASIC_PATH) $(MAKE) $(PARALLELMFLAGS) CC=$(CROSS_CC) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/cbmbasic.install: + @$(call targetinfo) + # @$(call install, CBMBASIC) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/cbmbasic.targetinstall: + @$(call targetinfo) + + @$(call install_init, cbmbasic) + @$(call install_fixup, cbmbasic,PACKAGE,cbmbasic) + @$(call install_fixup, cbmbasic,PRIORITY,optional) + @$(call install_fixup, cbmbasic,VERSION,$(CBMBASIC_VERSION)) + @$(call install_fixup, cbmbasic,SECTION,base) + @$(call install_fixup, cbmbasic,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") + @$(call install_fixup, cbmbasic,DEPENDS,) + @$(call install_fixup, cbmbasic,DESCRIPTION,missing) + + @$(call install_copy, cbmbasic, 0, 0, 0755, \ + $(CBMBASIC_DIR)/cbmbasic, \ + /usr/bin/cbmbasic) + + @$(call install_finish, cbmbasic) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +cbmbasic_clean: + rm -rf $(STATEDIR)/cbmbasic.* + rm -rf $(PKGDIR)/cbmbasic_* + rm -rf $(CBMBASIC_DIR) + +# vim: syntax=make |