add rml's netdev-random patch and modify et to use it (finally some entropy on /dev...
[openwrt.git] / 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:=http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/ftp.easysw.com/pub/cups/$(PKG_VERSION) \
11 http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$(PKG_VERSION) \
12 ftp://ftp3.easysw.com/pub/cups/$(PKG_VERSION)
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.tar.bz2
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_CAT:=bzcat
16 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
18
19 $(DL_DIR)/$(PKG_SOURCE):
20 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
21
22 $(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE)
23 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 $(PATCH) $(PKG_BUILD_DIR) ./patches
25 touch $(PKG_BUILD_DIR)/.patched
26
27 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.patched
28 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
29 ac_cv_path_STRIP="$(STRIP)" \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS)" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --prefix=$(CUPS_IPK_DIR)/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --sbindir=/usr/sbin \
40 --libexecdir=/usr/lib \
41 --sysconfdir=/etc \
42 --datadir=/usr/share \
43 --localstatedir=/var \
44 --mandir=/usr/man \
45 --infodir=/usr/info \
46 --program-prefix="" \
47 --with-gnu-ld \
48 --with-cups-user=root \
49 --with-cups-group=root \
50 --without-perl \
51 --without-python \
52 --without-php \
53 --disable-slp \
54 --disable-gnutls \
55 --disable-openssl \
56 --disable-cdsassl \
57 --disable-ssl \
58 --disable-slp \
59 );
60 touch $(PKG_BUILD_DIR)/.configured
61
62
63 $(PKG_IPK_DIR)/usr/sbin/cupsd: $(PKG_BUILD_DIR)/.configured
64 $(MAKE) -C $(PKG_BUILD_DIR)
65 $(MAKE) STRIP=$(STRIP) DSTROOT=$(PKG_IPK_DIR) -C $(PKG_BUILD_DIR) install
66 cp -a $(PKG_IPK_DIR)/usr/lib/* $(STAGING_DIR)/lib/
67 cp -a $(PKG_IPK_DIR)/usr/include/* $(STAGING_DIR)/include/
68
69 $(PKG_IPK): $(PKG_IPK_DIR)/usr/sbin/cupsd
70 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
71 rm -f $(PKG_IPK_DIR)/usr/bin/cups-config
72 rm -f $(PKG_IPK_DIR)/usr/lib/*.a
73 rm -f $(PKG_IPK_DIR)/usr/share/doc/cups/* || true
74 rm -rf $(PKG_IPK_DIR)/usr/share/doc/cups/??
75 rm -rf $(PKG_IPK_DIR)/usr/share/locale
76 rm -rf $(PKG_IPK_DIR)/usr/share/cups/banners
77 rm -rf $(PKG_IPK_DIR)/usr/share/cups/charsets
78 rm -rf $(PKG_IPK_DIR)/usr/share/cups/fonts
79 rm -rf $(PKG_IPK_DIR)/usr/share/cups/model
80 rm -rf $(PKG_IPK_DIR)/usr/share/cups/data
81 rm -rf $(PKG_IPK_DIR)/usr/share/cups/templates/??
82 rm -rf $(PKG_IPK_DIR)/usr/include
83 rm -rf $(PKG_IPK_DIR)/var
84 rm -rf $(PKG_IPK_DIR)/etc/*.d
85 $(STRIP) $(PKG_IPK_DIR)/usr/bin/*
86 $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/backend/*
87 $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/cgi-bin/*
88 $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/daemon/*
89 cp -a ./files/* $(PKG_IPK_DIR)/
90 find $(PKG_IPK_DIR) -name CVS | xargs rm -rf
91 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
92
93 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list:
94 $(IPKG) install $(PKG_IPK)
95
96 source: $(DL_DIR)/$(PKG_SOURCE)
97 prepare: $(PKG_BUILD_DIR)/.patched
98 compile: $(PKG_IPK)
99 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
100
101 clean:
102 rm -rf $(PKG_BUILD_DIR)
103 rm -f $(PKG_IPK)
This page took 0.049527 seconds and 5 git commands to generate.