OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | |
| 18 | include $(TOPDIR)/rules.mk |
| 19 | |
| 20 | PKG_NAME:=makfa |
| 21 | PKG_VERSION:=20091212 |
| 22 | PKG_REV:=e6c80dc33aa94358e767d34cbb5c1e003485db62 |
| 23 | PKG_RELEASE:=1 |
| 24 | |
| 25 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 26 | PKG_SOURCE_URL:=git://github.com/lojban/makfa-cli |
| 27 | PKG_SOURCE_PROTO:=git |
| 28 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 29 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 30 | |
| 31 | include $(INCLUDE_DIR)/package.mk |
| 32 | |
| 33 | define 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 |
| 41 | endef |
| 42 | |
| 43 | define Package/jbofihe/description |
| 44 | A Lojban dictionary. |
| 45 | endef |
| 46 | |
| 47 | define Build/Configure |
| 48 | endef |
| 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 | define Build/Compile |
| 54 | python $(PKG_BUILD_DIR)/makfa update en $(PKG_BUILD_DIR)/makfa.dump |
| 55 | endef |
| 56 | |
| 57 | define 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)/ |
| 69 | endef |
| 70 | |
| 71 | $(eval $(call RequireCommand,python, \ |
| 72 | Please install Python 2.x \ |
| 73 | )) |
| 74 | |
| 75 | $(eval $(call BuildPackage,makfa)) |
| 76 |
