Root/libdumb/Makefile

Source at commit 1b3135c created 8 years 1 month ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1#
2# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
3#
4# License GPLv2 or later. NO WARRANTY.
5#
6# OpenWRT package for the libdumb -- the Dynamic Universal Music Bibliotheque
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libdumb
11PKG_VERSION:=0.9.3
12PKG_RELEASE:=1
13PKG_SOURCE:=dumb-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=@SF/dumb
15PKG_MD5SUM:=f48da5b990aa8aa822d3b6a951baf5c2
16PKG_BUILD_DIR:=$(BUILD_DIR)/dumb-$(PKG_VERSION)
17PKG_INSTALL:=1
18
19PKG_BUILD_DEPENDS:=
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libdumb
24  SECTION:=libs
25  CATEGORY:=Libraries
26  TITLE:=Dynamic Universal Music Bibliotheque
27  URL:=http://www.ggi-project.org/packages/libdumb.html
28  DEPENDS:=liballegro
29endef
30
31define Package/libdumb/description
32DUMB is a library for playing back IT, XM, S3M and MOD audio files
33endef
34
35TARGET_CPPFLAGS += -Iinclude
36TARGET_LDFLAGS +=
37MAKE_FLAGS += \
38    ALL_TARGETS="core core-headers allegro allegro-examples allegro-headers" \
39    PREFIX=/usr \
40    CFLAGS_RELEASE="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS)" \
41    CFLAGS_DEBUG="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS)" \
42    LINK_ALLEGRO="-L$(STAGING_DIR)/usr/lib -lalleg"
43
44define Build/Configure
45    echo "include make/unix.inc" > $(PKG_BUILD_DIR)/make/config.txt
46endef
47
48define Build/Compile
49    $(call Build/Compile/Default)
50endef
51
52define Build/Install
53    $(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/{bin,lib,include}
54    $(call Build/Install/Default)
55endef
56
57define Build/InstallDev
58    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
59    $(CP) \
60        $(PKG_INSTALL_DIR)/usr/include/* \
61        $(1)/usr/include/
62    $(CP) \
63        $(PKG_INSTALL_DIR)/usr/lib/*.a \
64        $(1)/usr/lib/
65endef
66
67# currently no .so in package, as only static lib produced :/
68
69define Package/libdumb/install
70    $(INSTALL_DIR) $(1)/usr/bin
71# $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
72    $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
73endef
74
75$(eval $(call BuildPackage,libdumb))
76
77
78# The following comments configure the Emacs editor. Just ignore them.
79# Local Variables:
80# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libdumb/compile -j2 V=99"
81# End:
82

Archive Download this file



interactive