From 2462d03f322261bd616721c2b2065c4004b36c9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 11 May 2024 21:28:48 +0900 Subject: 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 --- distributions/motopkg/moto/rules | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 distributions/motopkg/moto/rules (limited to 'distributions/motopkg/moto/rules') 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) . -- cgit v1.2.1