source: freewrt/package/libffi-sable/Makefile@ c8b93bd

freewrt_1_0 freewrt_2_0
Last change on this file since c8b93bd 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: 2.2 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:= libffi-sable
10PKG_VERSION:= 3325
11PKG_RELEASE:= 3
12PKG_MD5SUM:= 0c32eaaea0269c5fbe156fcd0be3e5bd
13
14PKG_SOURCE_URL:= http://sablevm.org/download/snapshot/2005-01-21/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19FWRT_PACKAGE_LIBFFI_SABLE=m
20
21$(eval $(call PKG_template,LIBFFI_SABLE,libffi-sable,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(strip $(TARGET_CFLAGS))" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 --enable-largefile \
48 --disable-nls \
49 --enable-shared \
50 --enable-static \
51 --disable-debug \
52 );
53 touch $@
54
55$(WRKBUILD)/.built:
56 rm -rf $(WRKINST)
57 mkdir -p $(WRKINST)
58 $(MAKE) -C $(WRKBUILD) \
59 DESTDIR="$(WRKINST)" \
60 all install
61 touch $@
62
63$(IPKG_LIBFFI_SABLE):
64 install -m0755 -d $(IDIR_LIBFFI_SABLE)/usr/lib
65 $(CP) $(WRKINST)/usr/lib/libffi.so.* $(IDIR_LIBFFI_SABLE)/usr/lib/
66 $(RSTRIP) $(IDIR_LIBFFI_SABLE)
67 $(IPKG_BUILD) $(IDIR_LIBFFI_SABLE) $(PACKAGE_DIR)
68
69$(STAGING_DIR)/usr/lib/libffi.so: $(WRKBUILD)/.built
70 mkdir -p $(STAGING_DIR)/usr/include
71 $(CP) $(WRKINST)/usr/include/ffi{,target}.h $(STAGING_DIR)/usr/include/
72 mkdir -p $(STAGING_DIR)/usr/lib
73 $(CP) $(WRKINST)/usr/lib/libffi.{a,so*} $(STAGING_DIR)/usr/lib/
74 touch $@
75
76install-dev: $(STAGING_DIR)/usr/lib/libffi.so
77
78uninstall-dev:
79 rm -rf \
80 $(STAGING_DIR)/usr/include/ffi{,target}.h \
81 $(STAGING_DIR)/usr/lib/libffi.{a,so*} \
82
83compile-targets: install-dev
84clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.