source: freewrt/package/tinyproxy/Makefile@ 8e47882

freewrt_1_0 freewrt_2_0
Last change on this file since 8e47882 was c04ece1, checked in by Thorsten Glaser <tg@…>, 19 years ago

as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_

tested with a standard build (only the squashfs
image since the jffs2 didn't get built)

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

  • Property mode set to 100644
File size: 2.2 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=tinyproxy
6PKG_VERSION:=1.6.3
7PKG_RELEASE:=1
8PKG_MD5SUM:=bd14d029b12621bcfd7ee71b2f4893da
9
10PKG_SOURCE_URL:=@SF/tinyproxy
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,TINYPROXY,tinyproxy,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18ifeq ($(FWRT_COMPILE_TINYPROXY_WITH_TRANSPARENT_PROXY),y)
19ENABLE_TRANSPARENT:=--enable-transparent-proxy
20endif
21ifneq ($(FWRT_COMPILE_TINYPROXY_WITH_UPSTREAM),y)
22DISABLE_UPSTREAM:=--disable-upstream
23endif
24ifneq ($(FWRT_COMPILE_TINYPROXY_WITH_FILTER),y)
25DISABLE_FILTER:=--disable-filter
26endif
27
28$(WRKBUILD)/.configured:
29 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(strip $(TARGET_CFLAGS))" \
32 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
33 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
34 ./configure \
35 --target=$(GNU_TARGET_NAME) \
36 --host=$(GNU_TARGET_NAME) \
37 --build=$(GNU_HOST_NAME) \
38 --program-prefix="" \
39 --program-suffix="" \
40 --prefix=/usr \
41 --exec-prefix=/usr \
42 --bindir=/usr/bin \
43 --datadir=/usr/share \
44 --includedir=/usr/include \
45 --infodir=/usr/share/info \
46 --libdir=/usr/lib \
47 --libexecdir=/usr/lib \
48 --localstatedir=/var \
49 --mandir=/usr/share/man \
50 --sbindir=/usr/sbin \
51 --sysconfdir=/etc \
52 --disable-nls \
53 --disable-static \
54 $(ENABLE_TRANSPARENT) \
55 $(DISABLE_UPSTREAM) \
56 $(DISABLE_FILTER) \
57 );
58 touch $(WRKBUILD)/.configured
59
60$(WRKBUILD)/.built:
61 $(MAKE) -C $(WRKBUILD)
62 mkdir -p $(WRKINST)
63 $(MAKE) -C $(WRKBUILD) \
64 DESTDIR="$(WRKINST)" \
65 install
66 find $(WRKINST) -name '*dist' | xargs rm -f
67 touch $(WRKBUILD)/.built
68
69$(IPKG_TINYPROXY):
70 install -d -m0755 $(IDIR_TINYPROXY)/usr/sbin \
71 $(IDIR_TINYPROXY)/etc/tinyproxy \
72 $(IDIR_TINYPROXY)/etc/init.d \
73 $(IDIR_TINYPROXY)/var/log \
74 $(IDIR_TINYPROXY)/usr/share
75 $(CP) $(WRKINST)/usr/sbin/tinyproxy $(IDIR_TINYPROXY)/usr/sbin/
76 $(CP) $(WRKINST)/usr/share/tinyproxy $(IDIR_TINYPROXY)/usr/share/
77 $(CP) $(WRKINST)/etc/tinyproxy $(IDIR_TINYPROXY)/etc/
78 $(CP) files/$(PKG_NAME).init $(IDIR_TINYPROXY)/etc/init.d/$(PKG_NAME)
79 $(RSTRIP) $(IDIR_TINYPROXY)
80 $(IPKG_BUILD) $(IDIR_TINYPROXY) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.