61 lines
2.0 KiB
Bash
61 lines
2.0 KiB
Bash
# Template file for 'cnijfilter2'
|
|
pkgname=cnijfilter2
|
|
version=6.60
|
|
revision=2
|
|
_uprevision=-1
|
|
archs="i686 x86_64 aarch64"
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake autoconf libtool glib-devel pkg-config gettext"
|
|
makedepends="cups-devel libglib-devel libusb-devel libxml2-devel"
|
|
depends="cups"
|
|
short_desc="Canon printer drivers for a number of PIXMA models"
|
|
maintainer="Ralph van Etten <ralph@et10.org>"
|
|
license="custom:canon,GPL-2.0-or-later"
|
|
homepage="https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_ts_series/pixma-ts9540.html?type=drivers&driverdetailid=tcm:13-1714899"
|
|
distfiles="https://gdlp01.c-wss.com/gds/3/0100011753/01/${pkgname}-source-${version}${_uprevision}.tar.gz"
|
|
checksum=997119d67897d2b6405555bc6baa4cf7727bf0ecc6467f86df408831b1dab6d0
|
|
repository=nonfree
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
do_configure() {
|
|
local _libs="-L../../com/libs_bin_${XBPS_TARGET_MACHINE}"
|
|
for pkg in cmdtocanonij{2,3} cnijbe2 lgmon3 {raster,}tocanonij tocnpwg; do
|
|
msg_normal "Configuring ${pkg} ...\n"
|
|
cd ${wrksrc}/${pkg}
|
|
./autogen.sh ${configure_args} \
|
|
--enable-progpath=/usr/bin \
|
|
--enable-libpath=/usr/lib/bjlib2 \
|
|
CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS $_libs"
|
|
# Force submodules to use our CFLAGS
|
|
vsed -i */Makefile -e "s;^CFLAGS =.*;& $CFLAGS;"
|
|
done
|
|
}
|
|
|
|
do_build() {
|
|
for pkg in cmdtocanonij{2,3} cnijbe2 lgmon3 {raster,}tocanonij tocnpwg; do
|
|
msg_normal "Building ${pkg} ...\n"
|
|
cd ${wrksrc}/${pkg}
|
|
make clean
|
|
# make ${makejobs}
|
|
make
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
local _libs="com/libs_bin_${XBPS_TARGET_MACHINE}"
|
|
for pkg in cmdtocanonij{2,3} cnijbe2 lgmon3 {raster,}tocanonij tocnpwg; do
|
|
msg_normal "Installing ${pkg} ...\n"
|
|
cd ${wrksrc}/${pkg}
|
|
make DESTDIR=${DESTDIR} install
|
|
done
|
|
cd ${wrksrc}
|
|
|
|
vmkdir usr/lib/bjlib2
|
|
vinstall com/ini/cnnet.ini 644 usr/lib/bjlib2
|
|
vmkdir /usr/share/ppd/cnijfilter2
|
|
vcopy "${_libs}/lib*" usr/lib
|
|
vcopy "ppd/*.ppd" usr/share/ppd/cnijfilter2
|
|
vlicense doc/LICENSE-cnijfilter-${version}EN.txt LICENSE.txt
|
|
}
|