OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit 1b3135c created 12 years 5 months ago. By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries | |
---|---|
1 | include $(TOPDIR)/rules.mk |
2 | |
3 | PKG_NAME:=xz |
4 | PKG_VERSION:=4.999.9beta |
5 | PKG_RELEASE:=1 |
6 | |
7 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
8 | PKG_SOURCE_URL:=http://tukaani.org/xz |
9 | PKG_MD5SUM:=f2073579b6da2fe35d453adee1aaf1b2 |
10 | |
11 | PKG_FIXUP:=libtool |
12 | |
13 | include $(INCLUDE_DIR)/package.mk |
14 | |
15 | define Package/xz |
16 | SECTION:=utils |
17 | CATEGORY:=Utilities |
18 | DEPENDS:= |
19 | TITLE:=xz utils |
20 | URL:=http://tukaani.org/ |
21 | endef |
22 | |
23 | TARGET_CFLAGS += -std=c99 |
24 | |
25 | define Build/Compile |
26 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
27 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
28 | all install |
29 | endef |
30 | |
31 | define 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/ |
35 | endef |
36 | |
37 | define 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/ |
41 | endef |
42 | |
43 | $(eval $(call BuildPackage,xz)) |
44 |