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
)
16 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
17 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
19 $(DL_DIR
)/$(PKG_SOURCE
):
20 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
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
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)" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
36 --prefix=$(CUPS_IPK_DIR
)/usr \
40 --libexecdir
=/usr
/lib \
42 --datadir=/usr
/share \
43 --localstatedir
=/var \
48 --with-cups-user
=root \
49 --with-cups-group
=root \
60 touch
$(PKG_BUILD_DIR
)/.configured
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/
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
)
93 source
: $(DL_DIR
)/$(PKG_SOURCE
)
94 prepare
: $(PKG_BUILD_DIR
)/.patched
97 $(IPKG
) install $(PKG_IPK
)
99 rm -rf
$(PKG_BUILD_DIR
)