Root/4th/Makefile

1#
2# This is free software, licensed under the GNU General Public License v2.
3#
4
5include $(TOPDIR)/rules.mk
6## Nombre del paquete
7PKG_NAME:=4th
8## version del programa que vamos incluir en el paquete
9PKG_VERSION:=3.61.1
10## numero de version del paquete
11PKG_RELEASE:=4
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nano.tar.gz
13##Url donde se encuetra el el codigo fuente
14PKG_SOURCE_URL:=http://4th.googlecode.com/files/
15## programa con el que descomprimir el codigo fuente
16
17include $(INCLUDE_DIR)/package.mk
18#Definicion del paquet Titulo, seccion, categoria, la url del proyecto,
19#esto se usa para generar el ipkg y para incluirlo en el menuconfig
20define Package/4th
21    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
22    TITLE:=4th
23    SECTION:=Programming
24    CATEGORY:=prog
25    DEPENDS:=@BROKEN
26    URL:=http://www.xs4all.nl/~thebeez/4tH/
27endef
28#El directorio donde extraeremos los fuentes y realizaremos la compilacion
29#BUILD_DIR es una variable de etorno de OpenWrt es donde descomprimen/compilan los paquetes
30PKG_BUILD_DIR:=$(BUILD_DIR)/4th-$(PKG_VERSION)
31#Descripcion larga del programa
32define Package/4th/description
334th forth compiler
34endef
35
36MAKE_VARS+=LIBRARIES="${PKG_INSTALL_DIR}/usr/lib" BINARIES="${PKG_INSTALL_DIR}/usr/bin"
37MAKE_FLAGS+=-C $(PKG_BUILD_DIR)/sources
38
39#Definimos donde se copiaran los binarios y las librerias cuando queramos instalarlo,
40#emacs genera el binario en el directorio src
41define Package/4th/install
42    $(INSTALL_DIR) $(1)/usr/bin
43    $(INSTALL_DIR) $(1)/usr/lib
44    $(INSTALL_BIN) $(PKG_BUILD_DIR)/sources/4th $(1)/usr/bin/
45    $(INSTALL_BIN) $(PKG_BUILD_DIR)/sources/4tsh $(1)/usr/bin/
46    $(INSTALL_BIN) $(PKG_BUILD_DIR)/sources/pp4th $(1)/usr/bin/
47    $(CP) $(PKG_BUILD_DIR)/sources/lib4th.a $(1)/usr/lib/
48endef
49#Instrucion final para construir el paquete.
50$(eval $(call BuildPackage,4th))
51

Archive Download this file



interactive