package/libtool: Strip trailing slashes from libdir and destdir
[openwrt.git] / package / libtapi / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libtapi
9 PKG_RELEASE:=1
10
11 include $(INCLUDE_DIR)/package.mk
12 include $(INCLUDE_DIR)/kernel.mk
13
14 define Package/libtapi
15 SECTION:=libs
16 CATEGORY:=Libraries
17 TITLE:=libtapi
18 DEPENDS:=@TARGET_ifxmips_danube
19 endef
20
21 define Build/Prepare
22 mkdir -p $(PKG_BUILD_DIR)
23 $(CP) ./src/* $(PKG_BUILD_DIR)/
24 endef
25
26 define Build/Compile
27 CFLAGS="$(TARGT_CPPFLAGS) $(TARGET_CFLAGS)" \
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 $(TARGET_CONFIGURE_OPTS)
30 endef
31
32 define Build/InstallDev
33 $(INSTALL_DIR) $(1)/usr/{include,lib}
34 $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/
35 $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.so $(1)/usr/lib/
36 endef
37
38 define Package/libtapi/install
39 $(INSTALL_DIR) $(1)/usr/lib
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libtapi.so* $(1)/usr/lib/
41 endef
42
43 $(eval $(call BuildPackage,libtapi))
This page took 0.045889 seconds and 5 git commands to generate.