summaryrefslogtreecommitdiff
path: root/stardict
diff options
context:
space:
mode:
Diffstat (limited to 'stardict')
-rw-r--r--stardict/Makefile24
-rw-r--r--stardict/files/longman.idx.oftbin0 -> 5486 bytes
-rw-r--r--stardict/files/oxfordjm-ec.idx.oftbin0 -> 17906 bytes
-rw-r--r--stardict/files/stardict-oxfordjm-ec-2.4.2.tar.bz2bin0 -> 3774724 bytes
4 files changed, 23 insertions, 1 deletions
diff --git a/stardict/Makefile b/stardict/Makefile
index e7f8d99..2931065 100644
--- a/stardict/Makefile
+++ b/stardict/Makefile
@@ -28,7 +28,7 @@ endef
define Package/stardict
$(call Package/stardict/Default)
- DEPENDS:=+libintl +libiconv +libgconf2 +gtk2
+ DEPENDS:=+libintl +libiconv +libgconf2 +gtk2 +libstdcpp +libsigcxx
endef
define Package/stardict-dic-en-en
@@ -36,6 +36,11 @@ define Package/stardict-dic-en-en
TITLE+=(dictionary: English <-> English)
endef
+define Package/stardict-dic-en-cn
+ $(call Package/stardict/Default)
+ TITLE+=(dictionary: oxfordjm English <-> Chinses)
+endef
+
define Package/stardict/description
StarDict is a Cross-Platform and international dictionary Software.
endef
@@ -95,7 +100,24 @@ define Package/stardict-dic-en-en/install
-C $(1)/usr/share/stardict/dic/ \
-jxf \
./files/stardict-english-2.4.2.tar.bz2
+
+ $(CP) ./files/longman.idx.oft \
+ $(1)/usr/share/stardict/dic/stardict-english-2.4.2/
+endef
+
+define Package/stardict-dic-en-cn/install
+ $(INSTALL_DIR) \
+ $(1)/usr/share/stardict/dic
+
+ $(TAR) \
+ -C $(1)/usr/share/stardict/dic/ \
+ -jxf \
+ ./files/stardict-oxfordjm-ec-2.4.2.tar.bz2
+
+ $(CP) ./files/oxfordjm-ec.idx.oft \
+ $(1)/usr/share/stardict/dic/stardict-oxfordjm-ec-2.4.2/
endef
$(eval $(call BuildPackage,stardict))
$(eval $(call BuildPackage,stardict-dic-en-en))
+$(eval $(call BuildPackage,stardict-dic-en-cn))
diff --git a/stardict/files/longman.idx.oft b/stardict/files/longman.idx.oft
new file mode 100644
index 0000000..cdef4f9
--- /dev/null
+++ b/stardict/files/longman.idx.oft
Binary files differ
diff --git a/stardict/files/oxfordjm-ec.idx.oft b/stardict/files/oxfordjm-ec.idx.oft
new file mode 100644
index 0000000..5f4bfd2
--- /dev/null
+++ b/stardict/files/oxfordjm-ec.idx.oft
Binary files differ
diff --git a/stardict/files/stardict-oxfordjm-ec-2.4.2.tar.bz2 b/stardict/files/stardict-oxfordjm-ec-2.4.2.tar.bz2
new file mode 100644
index 0000000..e2b4ae6
--- /dev/null
+++ b/stardict/files/stardict-oxfordjm-ec-2.4.2.tar.bz2
Binary files differ