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 rm -rf
$(IDIR_CUPS
)/etc
/cups
/certs
77 ln
-sf
/tmp
$(IDIR_CUPS
)/etc
/cups
/certs
78 install -d
-m0755
$(IDIR_CUPS
)/usr
/bin
79 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/* $(IDIR_CUPS
)/usr
/bin
/
80 rm -f
$(IDIR_CUPS
)/usr
/bin
/cups-config
81 install -d
-m0755
$(IDIR_CUPS
)/usr
/lib
82 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcups.so.
* $(IDIR_CUPS
)/usr
/lib
/
83 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/cups
$(IDIR_CUPS
)/usr
/lib
/
84 install -d
-m0755
$(IDIR_CUPS
)/usr
/share
/cups
/templates
85 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/cups
/templates
/*.tmpl
$(IDIR_CUPS
)/usr
/share
/cups
/templates
/
86 install -d
-m0755
$(IDIR_CUPS
)/usr
/share
/doc
/cups
87 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/doc
/cups
/index.html
$(IDIR_CUPS
)/usr
/share
/doc
/cups
/
88 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/doc
/cups
/images
$(IDIR_CUPS
)/usr
/share
/doc
/cups
/
89 install -d
-m0755
$(IDIR_CUPS
)/usr
/sbin
90 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/* $(IDIR_CUPS
)/usr
/sbin
/
91 # overwrite default config with our own
92 cp
-fpR .
/files
/etc
/cups
/* $(IDIR_CUPS
)/etc
/cups
/
93 # install initscript with priority 60
94 install -d
-m0755
$(IDIR_CUPS
)/etc
/init.d
95 install -m0755 .
/files
/cupsd.init
$(IDIR_CUPS
)/etc
/init.d
/S60cupsd
96 find
$(IDIR_CUPS
) -name CVS | xargs
rm -rf
97 $(RSTRIP
) $(IDIR_CUPS
)
98 $(IPKG_BUILD
) $(IDIR_CUPS
) $(PACKAGE_DIR
)
100 $(STAGING_DIR
)/usr
/lib
/libcups.so
: $(PKG_BUILD_DIR
)/.built
101 mkdir
-p
$(STAGING_DIR
)/usr
/bin
102 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/cups-config
$(STAGING_DIR
)/usr
/bin
/
103 mkdir
-p
$(STAGING_DIR
)/usr
/include
104 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/cups
$(STAGING_DIR
)/usr
/include/
105 mkdir
-p
$(STAGING_DIR
)/usr
/lib
106 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcups.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
108 install-dev
: $(STAGING_DIR
)/usr
/lib
/libcups.so
112 $(STAGING_DIR
)/usr
/bin
/cups-config \
113 $(STAGING_DIR
)/usr
/include/cups \
114 $(STAGING_DIR
)/usr
/lib
/libcups.
{a
,so
*}
116 compile-targets
: install-dev
117 clean-targets
: uninstall-dev