Root/makfa/Makefile

1#
2# Copyright (C) 2010 Alan Post <alanpost@sunflowerriver.org>
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16#
17
18include $(TOPDIR)/rules.mk
19
20PKG_NAME:=makfa
21PKG_VERSION:=20091212
22PKG_REV:=e6c80dc33aa94358e767d34cbb5c1e003485db62
23PKG_RELEASE:=1
24
25PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
26PKG_SOURCE_URL:=git://github.com/lojban/makfa-cli
27PKG_SOURCE_PROTO:=git
28PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
29PKG_SOURCE_VERSION:=$(PKG_REV)
30
31include $(INCLUDE_DIR)/package.mk
32
33define Package/makfa
34  TITLE:=Lojban Dictionary
35  URL:=http://gittub.com/lojban/makfa-cli
36  MAINTAINER:=".alyn.post" <alyn.post@lodockikumazvati.org>
37  CATEGORY:=Languages
38  SUBMENU:=Lojban
39  SECTION:=lang
40  DEPENDS:=+python
41endef
42
43define Package/jbofihe/description
44  A Lojban dictionary.
45endef
46
47define Build/Configure
48endef
49
50# Since the Ben NanoNote does not have internet access, build the dictionary
51# on the host machine and copy it into the package.
52#
53
54# python $(PKG_BUILD_DIR)/makfa update en $(PKG_BUILD_DIR)/makfa.dump
55# if there is update. please use this command update files/makfa.dump
56# sometimes this needs hours in buildhost.
57define Build/Compile
58endef
59
60define Package/makfa/install
61    $(INSTALL_DIR) \
62        $(1)/usr/share/$(PKG_NAME) \
63        $(1)/usr/bin
64
65    $(INSTALL_BIN) \
66        $(PKG_BUILD_DIR)/makfa \
67        $(1)/usr/bin/
68
69    $(INSTALL_DATA) \
70        $(FILES_DIR)/makfa.dump \
71        $(1)/usr/share/$(PKG_NAME)/
72endef
73
74$(eval $(call RequireCommand,python, \
75    Please install Python 2.x \
76))
77
78$(eval $(call BuildPackage,makfa))
79

Archive Download this file



interactive