50 lines
1.7 KiB
Bash
50 lines
1.7 KiB
Bash
# Template file for 'argyllcms'
|
|
pkgname=argyllcms
|
|
version=3.3.0
|
|
revision=1
|
|
hostmakedepends="ftjam zip unzip"
|
|
makedepends="zlib-devel libjpeg-turbo-devel libXinerama-devel openssl-devel
|
|
libXScrnSaver-devel libXxf86vm-devel libXrandr-devel tiff-devel libpng-devel"
|
|
short_desc="ICC compatible color management system"
|
|
maintainer="Daniel Martinez <danielmartinez@cock.li>"
|
|
license="AGPL-3.0-or-later, GPL-2.0-or-later, GPL-3.0-or-later"
|
|
homepage="https://www.argyllcms.com/"
|
|
changelog="https://www.argyllcms.com/log.txt"
|
|
distfiles="https://www.argyllcms.com/Argyll_V${version}_src.zip"
|
|
checksum=69db1c9ef66f8cacbbbab4ed9910147de6100c3afd17a0a8c12e6525b778e8ce
|
|
lib32disabled=yes
|
|
|
|
# Build system look only under / for headers and libraries. Breaks cross.
|
|
nocross=yes
|
|
|
|
do_configure() {
|
|
sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
|
|
}
|
|
|
|
do_build() {
|
|
unset AR
|
|
export NUMBER_OF_PROCESSORS=$XBPS_MAKEJOBS
|
|
export CCOPTFLAG="$CFLAGS"
|
|
export LINKDEBUGFLAG="$LDFLAGS"
|
|
sh ./makeall.sh
|
|
sh ./makeinstall.sh
|
|
rm {bin,ref}/License.txt
|
|
rm {doc,ref}/afiles
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
install -m755 bin/* ${DESTDIR}/usr/bin
|
|
vmkdir usr/share/${pkgname}/ref
|
|
install -m644 ref/*.* ${DESTDIR}/usr/share/${pkgname}/ref
|
|
install -m644 profile/*.sp ${DESTDIR}/usr/share/${pkgname}/ref
|
|
install -m644 scanin/*.c?? ${DESTDIR}/usr/share/${pkgname}/ref
|
|
# Because there is just html documentation we have to move it
|
|
vmkdir usr/share/${pkgname}/doc/ccmxs
|
|
install -m644 doc/ccmxs/*.ccmx ${DESTDIR}/usr/share/${pkgname}/doc/ccmxs
|
|
install -m644 doc/*.* ${DESTDIR}/usr/share/${pkgname}/doc
|
|
vmkdir usr/lib/udev/rules.d
|
|
install -m644 usb/55-Argyll.rules ${DESTDIR}/usr/lib/udev/rules.d/55-Argyll.rules
|
|
vlicense License.txt
|
|
}
|