Root/nightsky/Makefile

1# Copyright (C) 2008 OpenWrt.org
2#
3# This is free software, licensed under the GNU General Public License v2.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=nightsky
9PKG_VERSION:=20100829
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=@SF/$(PKG_NAME)
14PKG_MD5SUM:=fa2ab06368988678aa14319aa3f07aac
15
16PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/nightsky
21  TITLE:=Nightsky
22  SECTION:=education
23  CATEGORY:=Education
24  URL:=https://sourceforge.net/projects/nightsky/
25  DEPENDS:=+libsdl +libsdl-image
26endef
27
28define Package/nightsky/description
29  Nightsky is a very basic rendering of the stars in the sky for devices that aren't powerful enough to run Stellarium
30endef
31
32TARGET_CFLAGS+=-DNANONOTE
33TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -lm
34
35define Package/nightsky/install
36    $(INSTALL_DIR) \
37        $(1)/usr/bin/ \
38        $(1)/usr/share/nightsky/ \
39
40    $(INSTALL_BIN) \
41        $(PKG_BUILD_DIR)/src/nightsky \
42        $(1)/usr/bin/
43
44    $(INSTALL_DATA) \
45        $(PKG_BUILD_DIR)/example-nightsky.yml \
46        $(PKG_BUILD_DIR)/README \
47        $(PKG_BUILD_DIR)/data/*.tsv \
48        $(PKG_BUILD_DIR)/data/cursor.png \
49        $(1)/usr/share/nightsky/
50
51    $(INSTALL_DATA) \
52        $(PKG_BUILD_DIR)/data/un-fuzzy-6x10-font.png \
53        $(1)/usr/share/nightsky/font.png
54
55endef
56
57define Package/nightsky/postinst
58#! /bin/sh
59mkdir -p $${IPKG_INSTROOT}/root && cp $${IPKG_INSTROOT}/usr/share/nightsky/example-nightsky.yml $${IPKG_INSTROOT}/root/.nightsky.yml
60endef
61
62$(eval $(call BuildPackage,nightsky))
63

Archive Download this file



interactive