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