source: freewrt/package/ipsec-tools/Makefile@ a12b53f

freewrt_1_0 freewrt_2_0
Last change on this file since a12b53f was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

  • Property mode set to 100644
File size: 2.4 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=ipsec-tools
6PKG_VERSION:=0.6.4
7PKG_RELEASE:=1
8PKG_MD5SUM:=d0242a943c82c0cbf28005966ff35e21
9
10PKG_SOURCE_URL:=@SF/ipsec-tools
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,IPSEC_TOOLS,ipsec-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 (cd $(WRKBUILD); rm -rf config.{cache,status}; \
20 touch configure.ac; \
21 touch aclocal.m4; \
22 touch Makefile.in; \
23 touch config.h.in; \
24 touch configure; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/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-rpath \
52 --with-gnu-ld \
53 --with-kernel-headers="$(LINUX_DIR)/include" \
54 --without-readline \
55 --with-openssl="$(STAGING_DIR)/usr" \
56 --without-libradius \
57 --without-libpam \
58 );
59 touch $@
60
61$(WRKBUILD)/.built:
62 rm -rf $(WRKINST)
63 mkdir -p $(WRKINST)
64 $(MAKE) -C $(WRKBUILD) \
65 CFLAGS="$(TARGET_CFLAGS) -Wall" \
66 DESTDIR="$(WRKINST)" \
67 all install
68 touch $@
69
70$(IPKG_IPSEC_TOOLS):
71 install -d -m0755 $(IDIR_IPSEC_TOOLS)/etc
72 $(CP) $(WRKBUILD)/src/racoon/samples/racoon.conf $(IDIR_IPSEC_TOOLS)/etc/
73 install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/lib/
74 $(CP) $(WRKINST)/usr/lib/libipsec.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/
75 $(CP) $(WRKINST)/usr/lib/libracoon.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/
76 install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/sbin
77 $(CP) $(WRKINST)/usr/sbin/plainrsa-gen $(IDIR_IPSEC_TOOLS)/usr/sbin/
78 $(CP) $(WRKINST)/usr/sbin/racoon $(IDIR_IPSEC_TOOLS)/usr/sbin/
79 $(CP) $(WRKINST)/usr/sbin/racoonctl $(IDIR_IPSEC_TOOLS)/usr/sbin/
80 $(CP) $(WRKINST)/usr/sbin/setkey $(IDIR_IPSEC_TOOLS)/usr/sbin/
81 $(RSTRIP) $(IDIR_IPSEC_TOOLS)
82 $(IPKG_BUILD) $(IDIR_IPSEC_TOOLS) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.