Root/xz/Makefile

Source at commit 1b3135c created 8 years 11 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=xz
4PKG_VERSION:=4.999.9beta
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8PKG_SOURCE_URL:=http://tukaani.org/xz
9PKG_MD5SUM:=f2073579b6da2fe35d453adee1aaf1b2
10
11PKG_FIXUP:=libtool
12
13include $(INCLUDE_DIR)/package.mk
14
15define Package/xz
16  SECTION:=utils
17  CATEGORY:=Utilities
18  DEPENDS:=
19  TITLE:=xz utils
20  URL:=http://tukaani.org/
21endef
22
23TARGET_CFLAGS += -std=c99
24
25define Build/Compile
26    $(MAKE) -C $(PKG_BUILD_DIR) \
27        DESTDIR="$(PKG_INSTALL_DIR)" \
28        all install
29endef
30
31define Package/xz/install
32    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
33    $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
34    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
35endef
36
37define Build/InstallDev
38    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
39    $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
40    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,la,so*} $(1)/usr/lib/
41endef
42
43$(eval $(call BuildPackage,xz))
44

Archive Download this file



interactive