more pci fixes
[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:=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_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16 PKG_CAT:=bzcat
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,CUPS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
24 ac_cv_path_STRIP="$(STRIP)" \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=$(CUPS_IPK_DIR)/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 --program-prefix="" \
42 --with-gnu-ld \
43 --with-cups-user=root \
44 --with-cups-group=root \
45 --without-perl \
46 --without-python \
47 --without-php \
48 --disable-slp \
49 --disable-gnutls \
50 --disable-openssl \
51 --disable-cdsassl \
52 --disable-ssl \
53 --disable-slp \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 $(MAKE) -C $(PKG_BUILD_DIR)
59 $(MAKE) STRIP=$(STRIP) DSTROOT=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
60 cp -a $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/lib/
61 cp -a $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/include/
62 touch $@
63
64 $(IPKG_CUPS):
65 cp -a $(PKG_INSTALL_DIR)/* $(IDIR_CUPS)/
66 rm -f $(IDIR_CUPS)/usr/bin/cups-config
67 rm -f $(IDIR_CUPS)/usr/lib/*.a
68 rm -f $(IDIR_CUPS)/usr/share/doc/cups/* || true
69 rm -rf $(IDIR_CUPS)/usr/share/doc/cups/??
70 rm -rf $(IDIR_CUPS)/usr/share/locale
71 rm -rf $(IDIR_CUPS)/usr/share/cups/banners
72 rm -rf $(IDIR_CUPS)/usr/share/cups/charsets
73 rm -rf $(IDIR_CUPS)/usr/share/cups/fonts
74 rm -rf $(IDIR_CUPS)/usr/share/cups/model
75 rm -rf $(IDIR_CUPS)/usr/share/cups/data
76 rm -rf $(IDIR_CUPS)/usr/share/cups/templates/??
77 rm -rf $(IDIR_CUPS)/usr/include
78 rm -rf $(IDIR_CUPS)/var
79 rm -rf $(IDIR_CUPS)/etc/*.d
80 $(STRIP) $(IDIR_CUPS)/usr/bin/*
81 $(STRIP) $(IDIR_CUPS)/usr/lib/cups/backend/*
82 $(STRIP) $(IDIR_CUPS)/usr/lib/cups/cgi-bin/*
83 $(STRIP) $(IDIR_CUPS)/usr/lib/cups/daemon/*
84 cp -a ./files/* $(IDIR_CUPS)/
85 find $(IDIR_CUPS) -name CVS | xargs rm -rf
86 $(IPKG_BUILD) $(IDIR_CUPS) $(PACKAGE_DIR)
87
This page took 0.042701 seconds and 5 git commands to generate.