You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.5 KiB
65 lines
1.5 KiB
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
inherit autotools
|
||
|
|
||
|
MY_P="${PN}-source-${PV}-1"
|
||
|
|
||
|
DESCRIPTION="IJ Printer Driver"
|
||
|
HOMEPAGE="https://www.canon.it/"
|
||
|
SRC_URI="http://gdlp01.c-wss.com/gds/3/0100008393/01/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="Canon-IJ"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND="virtual/libusb:1
|
||
|
dev-libs/libxml2
|
||
|
net-print/cups"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
S="${WORKDIR}"/${MY_P}
|
||
|
|
||
|
PATCHES=( "${FILESDIR}"/${PN}-5.20-gentoo.patch )
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
DIRS="cmdtocanonij2 cnijbe2 lgmon3 rastertocanonij tocanonij tocnpwg"
|
||
|
LIBDIR=com/libs_bin$(usex amd64 64 32)
|
||
|
for d in ${DIRS}; do
|
||
|
mv "${d}"/configure.{in,ac} || die
|
||
|
done
|
||
|
echo "AC_INIT([${PN}], [${PV}])" >> configure.ac
|
||
|
echo "AM_INIT_AUTOMAKE" >> configure.ac
|
||
|
echo "AC_CONFIG_SUBDIRS([${DIRS}])" >> configure.ac
|
||
|
echo "AC_CONFIG_FILES([Makefile])" >> configure.ac
|
||
|
echo "AC_OUTPUT()" >> configure.ac
|
||
|
echo "SUBDIRS= ${DIRS}" >> Makefile.am
|
||
|
sed -i \
|
||
|
-e "/^CFLAGS/d" \
|
||
|
*/configure.ac || die
|
||
|
eautoreconf
|
||
|
cd ${LIBDIR}
|
||
|
rm libcn*.so || die
|
||
|
ln -sf libcnbpcnclapicom2.so.5.0.0 libcnbpcnclapicom2.so || die
|
||
|
ln -sf libcnbpnet20.so.1.0.0 libcnbpnet20.so || die
|
||
|
ln -sf libcnbpnet30.so.1.0.0 libcnbpnet30.so || die
|
||
|
ln -sf libcnnet2.so.1.2.4 libcnnet2.so || die
|
||
|
|
||
|
cd -
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
LDFLAGS="-L"${S}"/${LIBDIR}" econf --enable-progpath="${EPREFIX}/usr/bin"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
insinto /usr/share/ppd/cupsfilters
|
||
|
doins ppd/*ppd
|
||
|
dolib.so ${LIBDIR}/*
|
||
|
}
|