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
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,CUPS
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
50 --with-cups-user
=root \
51 --with-cups-group
=root \
64 $(PKG_BUILD_DIR
)/.built
:
65 rm -rf
$(PKG_INSTALL_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DSTROOT
="$(PKG_INSTALL_DIR)" \
74 install -d
-m0755
$(IDIR_CUPS
)/etc
/cups
75 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/cups
/* $(IDIR_CUPS
)/etc
/cups
/
76 install -d
-m0755
$(IDIR_CUPS
)/usr
/bin
77 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/* $(IDIR_CUPS
)/usr
/bin
/
78 rm -f
$(IDIR_CUPS
)/usr
/bin
/cups-config
79 install -d
-m0755
$(IDIR_CUPS
)/usr
/lib
80 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcups.so.
* $(IDIR_CUPS
)/usr
/lib
/
81 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/cups
$(IDIR_CUPS
)/usr
/lib
/
82 install -d
-m0755
$(IDIR_CUPS
)/usr
/share
/cups
/templates
83 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/cups
/templates
/*.tmpl
$(IDIR_CUPS
)/usr
/share
/cups
/templates
/
84 install -d
-m0755
$(IDIR_CUPS
)/usr
/share
/doc
/cups
85 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/doc
/cups
/index.html
$(IDIR_CUPS
)/usr
/share
/doc
/cups
/
86 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/doc
/cups
/images
$(IDIR_CUPS
)/usr
/share
/doc
/cups
/
87 install -d
-m0755
$(IDIR_CUPS
)/usr
/sbin
88 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/* $(IDIR_CUPS
)/usr
/sbin
/
89 # overwrite default config with our own
90 cp
-fpR .
/files
/etc
/cups
/* $(IDIR_CUPS
)/etc
/cups
/
91 # install initscript with priority 60
92 install -d
-m0755
$(IDIR_CUPS
)/etc
/init.d
93 install -m0755 .
/files
/cupsd.init
$(IDIR_CUPS
)/etc
/init.d
/S60cupsd
94 find
$(IDIR_CUPS
) -name CVS | xargs
rm -rf
95 $(RSTRIP
) $(IDIR_CUPS
)
96 $(IPKG_BUILD
) $(IDIR_CUPS
) $(PACKAGE_DIR
)
98 $(STAGING_DIR
)/usr
/lib
/libcups.so
: $(PKG_BUILD_DIR
)/.built
99 mkdir
-p
$(STAGING_DIR
)/usr
/bin
100 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/cups-config
$(STAGING_DIR
)/usr
/bin
/
101 mkdir
-p
$(STAGING_DIR
)/usr
/include
102 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/cups
$(STAGING_DIR
)/usr
/include/
103 mkdir
-p
$(STAGING_DIR
)/usr
/lib
104 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcups.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
106 install-dev
: $(STAGING_DIR
)/usr
/lib
/libcups.so
110 $(STAGING_DIR
)/usr
/bin
/cups-config \
111 $(STAGING_DIR
)/usr
/include/cups \
112 $(STAGING_DIR
)/usr
/lib
/libcups.
{a
,so
*}
114 compile-targets
: install-dev
115 clean-targets
: uninstall-dev