source: freewrt/package/ustl/Makefile@ 18c227bd

freewrt_2_0
Last change on this file since 18c227bd was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= ustl
10PKG_VERSION:= 0.8
11PKG_RELEASE:= 1
12PKG_MD5SUM:= dd59483c327f1bd1356273bc5ae4dde0
13
14PKG_SOURCE_URL:= @SF/ustl
15PKG_SOURCE:= $(PKG_NAME)-0.8-0.tar.bz2
16
17include $(TOPDIR)/mk/package.mk
18
19FWRT_PACKAGE_USTL:=m
20
21$(eval $(call PKG_template,USTL,ustl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 $(CP) ./files/config.h $(WRKBUILD)/
25 $(CP) ./files/Common.mk $(WRKBUILD)/
26 touch $@
27
28$(WRKBUILD)/.built:
29 rm -rf $(WRKINST)
30 mkdir -p $(WRKINST)
31 $(MAKE) -C $(WRKBUILD) \
32 CROSS="$(TARGET_CROSS)" \
33 OPTFLAGS="$(TARGET_CFLAGS)" \
34 DESTDIR="$(WRKINST)" \
35 all install
36 touch $@
37
38$(IPKG_USTL):
39 install -d -m0755 $(IDIR_USTL)/usr/lib
40 $(CP) $(WRKINST)/usr/lib/libustl.so.* $(IDIR_USTL)/usr/lib/
41 $(RSTRIP) $(IDIR_USTL)
42 $(IPKG_BUILD) $(IDIR_USTL) $(PACKAGE_DIR)
43
44$(STAGING_DIR)/usr/lib/libustl.so: $(WRKBUILD)/.built
45 mkdir -p $(STAGING_DIR)/usr/include
46 $(CP) $(WRKINST)/usr/include/ustl* $(STAGING_DIR)/usr/include/
47 mkdir -p $(STAGING_DIR)/usr/lib
48 $(CP) $(WRKINST)/usr/lib/libustl.a $(STAGING_DIR)/usr/lib/
49 $(CP) $(WRKINST)/usr/lib/libustl.so* $(STAGING_DIR)/usr/lib/
50 touch $@
51
52install-dev: $(STAGING_DIR)/usr/lib/libustl.so
53
54uninstall-dev:
55 rm -rf \
56 $(STAGING_DIR)/usr/include/ustl* \
57 $(STAGING_DIR)/usr/lib/libustl.a \
58 $(STAGING_DIR)/usr/lib/libustl.so* \
59
60compile-targets: install-dev
61clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.