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#
53define Build/Compile
54    python $(PKG_BUILD_DIR)/makfa update en $(PKG_BUILD_DIR)/makfa.dump
55endef
56
57define Package/makfa/install
58    $(INSTALL_DIR) \
59        $(1)/usr/share/$(PKG_NAME) \
60        $(1)/usr/bin
61
62    $(INSTALL_BIN) \
63        $(PKG_BUILD_DIR)/makfa \
64        $(1)/usr/bin/
65
66    $(INSTALL_DATA) \
67        $(PKG_BUILD_DIR)/makfa.dump \
68        $(1)/usr/share/$(PKG_NAME)/
69endef
70
71$(eval $(call RequireCommand,python, \
72    Please install Python 2.x \
73))
74
75$(eval $(call BuildPackage,makfa))
76

Archive Download this file



interactive