summaryrefslogtreecommitdiffstats
path: root/distributions/motopkg/moto/rules
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-11 21:28:48 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-11 21:28:48 +0900
commit2462d03f322261bd616721c2b2065c4004b36c9c (patch)
tree239947a0737bb8386703a1497f12c09aebd3080a /distributions/motopkg/moto/rules
downloadtde-ebook-reader-2462d03f322261bd616721c2b2065c4004b36c9c.tar.gz
tde-ebook-reader-2462d03f322261bd616721c2b2065c4004b36c9c.zip
Initial import (as is) from Debian Snapshot's 'fbreader' source code (https://snapshot.debian.org/package/fbreader/0.99.4%2Bdfsg-6).
The Debian code is provided under GPL2 license. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'distributions/motopkg/moto/rules')
-rw-r--r--distributions/motopkg/moto/rules29
1 files changed, 29 insertions, 0 deletions
diff --git a/distributions/motopkg/moto/rules b/distributions/motopkg/moto/rules
new file mode 100644
index 0000000..e7a6b4f
--- /dev/null
+++ b/distributions/motopkg/moto/rules
@@ -0,0 +1,29 @@
+PREFIX = /mmc/mmca1/.system/QTDownLoad
+
+LIBVERSION = $(shell cat zlibrary/VERSION)
+LIBSOVERSION = $(shell cat zlibrary/SOVERSION)
+APPVERSION = $(shell cat fbreader/VERSION)
+
+clean:
+ @make TARGET_ARCH=moto UI_TYPE=ezx clean
+
+build:
+ @make -C zlibrary/core TARGET_ARCH=moto UI_TYPE=ezx
+ @make -C zlibrary/text TARGET_ARCH=moto UI_TYPE=ezx
+ @make -C zlibrary/ui TARGET_ARCH=moto UI_TYPE=ezx
+ @make -C fbreader TARGET_ARCH=moto UI_TYPE=ezx
+
+install:
+ @make -C zlibrary/core TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
+ @make -C zlibrary/text TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
+ @make -C zlibrary/ui TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
+ @install ../libs/moto/libexpat.so.1.5.2 $(DESTDIR)$(PREFIX)/fbreader/lib/libexpat.so.1
+ @install ../libs/moto/libbz2.so.1.0.4 $(DESTDIR)$(PREFIX)/fbreader/lib/libbz2.so.1.0
+ @rm $(DESTDIR)$(PREFIX)/fbreader/lib/libzlcore.so.$(LIBSOVERSION)
+ @mv $(DESTDIR)$(PREFIX)/fbreader/lib/libzlcore.so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/fbreader/lib/libzlcore.so.$(LIBSOVERSION)
+ @rm $(DESTDIR)$(PREFIX)/fbreader/lib/libzltext.so.$(LIBSOVERSION)
+ @mv $(DESTDIR)$(PREFIX)/fbreader/lib/libzltext.so.$(LIBVERSION) $(DESTDIR)$(PREFIX)/fbreader/lib/libzltext.so.$(LIBSOVERSION)
+ @make -C fbreader TARGET_ARCH=moto UI_TYPE=ezx DESTDIR=$(DESTDIR) do_install
+
+package:
+ @tar -czf FBReader-$(APPVERSION).pkg -C $(DESTDIR)$(PREFIX) .