2010-06-07 07:42:15 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2011-04-22 07:54:44 +03:00
|
|
|
## Nombre del paquete
|
2010-06-07 07:42:15 +03:00
|
|
|
PKG_NAME:=4th
|
|
|
|
## version del programa que vamos incluir en el paquete
|
2011-12-12 06:17:12 +02:00
|
|
|
PKG_VERSION:=3.61.3
|
2010-06-07 07:42:15 +03:00
|
|
|
## numero de version del paquete
|
2011-04-22 07:54:44 +03:00
|
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nano.tar.gz
|
2010-06-07 07:42:15 +03:00
|
|
|
##Url donde se encuetra el el codigo fuente
|
2011-04-22 07:54:44 +03:00
|
|
|
PKG_SOURCE_URL:=http://4th.googlecode.com/files/
|
2010-06-07 07:42:15 +03:00
|
|
|
## programa con el que descomprimir el codigo fuente
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
#Definicion del paquet Titulo, seccion, categoria, la url del proyecto,
|
|
|
|
#esto se usa para generar el ipkg y para incluirlo en el menuconfig
|
|
|
|
define Package/4th
|
2011-04-22 07:54:44 +03:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
2010-06-07 07:42:15 +03:00
|
|
|
TITLE:=4th
|
|
|
|
SECTION:=Programming
|
|
|
|
CATEGORY:=prog
|
2011-08-22 10:23:53 +03:00
|
|
|
URL:=http://thebeez.home.xs4all.nl/4tH/
|
2010-06-07 07:42:15 +03:00
|
|
|
endef
|
|
|
|
#El directorio donde extraeremos los fuentes y realizaremos la compilacion
|
|
|
|
#BUILD_DIR es una variable de etorno de OpenWrt es donde descomprimen/compilan los paquetes
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/4th-$(PKG_VERSION)
|
|
|
|
#Descripcion larga del programa
|
|
|
|
define Package/4th/description
|
|
|
|
4th forth compiler
|
|
|
|
endef
|
|
|
|
|
2011-04-22 07:54:44 +03:00
|
|
|
MAKE_VARS+=LIBRARIES="${PKG_INSTALL_DIR}/usr/lib" BINARIES="${PKG_INSTALL_DIR}/usr/bin"
|
2011-08-22 10:23:53 +03:00
|
|
|
MAKE_FLAGS+=-C $(PKG_BUILD_DIR)/sources -f Makefile.NAN
|
2010-06-07 07:42:15 +03:00
|
|
|
|
|
|
|
#Definimos donde se copiaran los binarios y las librerias cuando queramos instalarlo,
|
|
|
|
#emacs genera el binario en el directorio src
|
|
|
|
define Package/4th/install
|
2011-04-22 07:54:44 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sources/4th $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sources/4tsh $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sources/pp4th $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/sources/lib4th.a $(1)/usr/lib/
|
2010-06-07 07:42:15 +03:00
|
|
|
endef
|
|
|
|
#Instrucion final para construir el paquete.
|
|
|
|
$(eval $(call BuildPackage,4th))
|