3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4ce09b1dce09b6b9398af0daae9adf63
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
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,CUPS
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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)" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
31 --prefix=$(CUPS_IPK_DIR
)/usr \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share \
38 --localstatedir
=/var \
43 --with-cups-user
=root \
44 --with-cups-group
=root \
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/
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
)