make pppoe init script re-read nvram settings before restarting pppd
[openwrt.git] / openwrt / package / cups / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=cups
6 PKG_VERSION:=1.1.23
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=4ce09b1dce09b6b9398af0daae9adf63
9
10 PKG_SOURCE_URL:=ftp://ftp3.easysw.com/pub/cups/1.1.23/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_CAT:=bzcat
14 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
15 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
16
17 $(DL_DIR)/$(PKG_SOURCE):
18 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
19
20 $(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE)
21 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
22 $(PATCH) $(PKG_BUILD_DIR) ./patches
23 touch $(PKG_BUILD_DIR)/.patched
24
25 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.patched
26 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
27 ac_cv_path_STRIP="$(STRIP)" \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --prefix=$(CUPS_IPK_DIR)/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --sbindir=/usr/sbin \
38 --libexecdir=/usr/lib \
39 --sysconfdir=/etc \
40 --datadir=/usr/share \
41 --localstatedir=/var \
42 --mandir=/usr/man \
43 --infodir=/usr/info \
44 --program-prefix="" \
45 --with-gnu-ld \
46 --with-cups-user=root \
47 --with-cups-group=root \
48 --without-perl \
49 --without-python \
50 --without-php \
51 --disable-slp \
52 --disable-gnutls \
53 --disable-openssl \
54 --disable-cdsassl \
55 --disable-ssl \
56 --disable-slp \
57 );
58 touch $(PKG_BUILD_DIR)/.configured
59
60
61 $(PKG_IPK_DIR)/usr/sbin/cupsd: $(PKG_BUILD_DIR)/.configured
62 $(MAKE) -C $(PKG_BUILD_DIR)
63 $(MAKE) STRIP=$(STRIP) DSTROOT=$(PKG_IPK_DIR) -C $(PKG_BUILD_DIR) install
64 cp -a $(PKG_IPK_DIR)/usr/lib/* $(STAGING_DIR)/lib/
65 cp -a $(PKG_IPK_DIR)/usr/include/* $(STAGING_DIR)/include/
66
67 $(PKG_IPK): $(PKG_IPK_DIR)/usr/sbin/cupsd
68 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
69 rm -f $(PKG_IPK_DIR)/usr/bin/cups-config
70 rm -f $(PKG_IPK_DIR)/usr/lib/*.a
71 rm -f $(PKG_IPK_DIR)/usr/share/doc/cups/* || true
72 rm -rf $(PKG_IPK_DIR)/usr/share/doc/cups/??
73 rm -rf $(PKG_IPK_DIR)/usr/share/locale
74 rm -rf $(PKG_IPK_DIR)/usr/share/cups/banners
75 rm -rf $(PKG_IPK_DIR)/usr/share/cups/charsets
76 rm -rf $(PKG_IPK_DIR)/usr/share/cups/fonts
77 rm -rf $(PKG_IPK_DIR)/usr/share/cups/model
78 rm -rf $(PKG_IPK_DIR)/usr/share/cups/data
79 rm -rf $(PKG_IPK_DIR)/usr/share/cups/templates/??
80 rm -rf $(PKG_IPK_DIR)/usr/include
81 rm -rf $(PKG_IPK_DIR)/var
82 rm -rf $(PKG_IPK_DIR)/etc/*.d
83 $(STRIP) $(PKG_IPK_DIR)/usr/bin/*
84 $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/backend/*
85 $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/cgi-bin/*
86 $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/daemon/*
87 cp -a ./files/* $(PKG_IPK_DIR)/
88 find $(PKG_IPK_DIR) -name CVS | xargs rm -rf
89 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
90
91 source: $(DL_DIR)/$(PKG_SOURCE)
92 prepare: $(PKG_BUILD_DIR)/.patched
93 compile: $(PKG_IPK)
94 install:
95 $(IPKG) install $(PKG_IPK)
96 clean:
97 rm -rf $(PKG_BUILD_DIR)
This page took 0.041014 seconds and 5 git commands to generate.