source: freewrt/package/tinyproxy/Makefile@ 6fc4520e

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