3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4ce09b1dce09b6b9398af0daae9adf63
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
)
14 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
15 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
17 $(DL_DIR
)/$(PKG_SOURCE
):
18 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
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
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)" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
34 --prefix=$(CUPS_IPK_DIR
)/usr \
38 --libexecdir
=/usr
/lib \
40 --datadir=/usr
/share \
41 --localstatedir
=/var \
46 --with-cups-user
=root \
47 --with-cups-group
=root \
58 touch
$(PKG_BUILD_DIR
)/.configured
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/
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
)
91 source
: $(DL_DIR
)/$(PKG_SOURCE
)
92 prepare
: $(PKG_BUILD_DIR
)/.patched
95 $(IPKG
) install $(PKG_IPK
)
97 rm -rf
$(PKG_BUILD_DIR
)