summaryrefslogtreecommitdiffstats
path: root/games/zmusic/Makefile
blob: 27a20358b10c76f5e7deedafdcae5f11a097b948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include $(TOPDIR)/rules.mk

PKG_NAME:=zmusic
PKG_VERSION:=1.1.14
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/ZDoom/ZMusic
PKG_SOURCE_VERSION:=89f3d65734470fb7ec0c1e69f73a0cfcc88ed557
PKG_MIRROR_HASH:=104af83c55909a3cc2151bf9a32b153355fab76ee503bf199f49fb401f595a2b

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=licenses/bsd.txt licenses/dumb.txt licenses/gplv3.txt \
		   licenses/legal.txt licenses/lgplv21.txt licenses/lgplv3.txt \
		   licenses/zmusic.txt

CMAKE_INSTALL:=1
PKG_BUILD_FLAGS:=gc-sections lto

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/libzmusic
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=ZMusic
  URL:=https://zdoom.org/
  DEPENDS:=+libstdcpp +libsndfile +alsa-lib +glib2
endef

define Package/libzmusic/description
  GZDoom's music system as a standalone library
endef

define Package/libzmusic/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmusic.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libzmusic))