Marcel Telka
2024-04-03 72d66ff28ec33bc2c05b355c6218d98d13b79450
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2015 Aurelien Larcher
#
 
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
 
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
 
# Require package with default JPEG API
depend fmri=image/library/libjpeg8-turbo type=require
 
# Dependency on libjpeg6 with removed docs and symlinks
depend fmri=image/library/libjpeg6@6.0.2-2020.0.1.1 type=optional
 
# Ship libjpeg-turbo headers in default locations
link path=usr/include/jconfig.h      target=libjpeg8-turbo/jconfig.h
link path=usr/include/jerror.h       target=libjpeg8-turbo/jerror.h
link path=usr/include/jmorecfg.h     target=libjpeg8-turbo/jmorecfg.h
link path=usr/include/jpeglib.h      target=libjpeg8-turbo/jpeglib.h
link path=usr/include/turbojpeg.h    target=libjpeg8-turbo/turbojpeg.h
 
# Only shipped by libjpeg-turbo
file path=usr/share/doc/libjpeg-turbo/LICENSE.md
file path=usr/share/doc/libjpeg-turbo/README.ijg
file path=usr/share/doc/libjpeg-turbo/README.md
file path=usr/share/doc/libjpeg-turbo/example.c
file path=usr/share/doc/libjpeg-turbo/libjpeg.txt
file path=usr/share/doc/libjpeg-turbo/structure.txt
file path=usr/share/doc/libjpeg-turbo/tjexample.c
file path=usr/share/doc/libjpeg-turbo/usage.txt
file path=usr/share/doc/libjpeg-turbo/wizard.txt
 
# Previously shipped by libjpeg6-ijg
file path=usr/share/man/man1/cjpeg.1
file path=usr/share/man/man1/djpeg.1
file path=usr/share/man/man1/jpegtran.1
file path=usr/share/man/man1/rdjpgcom.1
file path=usr/share/man/man1/wrjpgcom.1
 
# Add symlinks to default binaries
link path=usr/bin/cjpeg target=../lib/libjpeg8-turbo/bin/$(MACH64)/cjpeg
link path=usr/bin/djpeg target=../lib/libjpeg8-turbo/bin/$(MACH64)/djpeg
link path=usr/bin/jpegtran target=../lib/libjpeg8-turbo/bin/$(MACH64)/jpegtran
link path=usr/bin/rdjpgcom target=../lib/libjpeg8-turbo/bin/$(MACH64)/rdjpgcom
link path=usr/bin/tjbench target=../lib/libjpeg8-turbo/bin/$(MACH64)/tjbench
link path=usr/bin/wrjpgcom target=../lib/libjpeg8-turbo/bin/$(MACH64)/wrjpgcom
 
# Add symlinks to default pkg-config files
link path=usr/lib/pkgconfig/libjpeg.pc \
    target=../libjpeg8-turbo/lib/pkgconfig/libjpeg.pc
link path=usr/lib/pkgconfig/libturbojpeg.pc \
    target=../libjpeg8-turbo/lib/pkgconfig/libturbojpeg.pc
link path=usr/lib/$(MACH64)/pkgconfig/libjpeg.pc \
    target=../../libjpeg8-turbo/lib/$(MACH64)/pkgconfig/libjpeg.pc
link path=usr/lib/$(MACH64)/pkgconfig/libturbojpeg.pc \
    target=../../libjpeg8-turbo/lib/$(MACH64)/pkgconfig/libturbojpeg.pc
 
# Add cmake links for cmake detection
link path=usr/lib/$(MACH64)/cmake/libjpeg-turboConfig.cmake target=../../libjpeg8-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
link path=usr/lib/$(MACH64)/cmake/libjpeg-turboConfigVersion.cmake target=../../libjpeg8-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
link path=usr/lib/$(MACH64)/cmake/libjpeg-turboTargets-release.cmake target=../../libjpeg8-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
link path=usr/lib/$(MACH64)/cmake/libjpeg-turboTargets.cmake target=../../libjpeg8-turbo/lib/$(MACH64)/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
 
# Add symlinks so libjpeg-turbo can be detected from cmake and non pkgconfig builds
link path=usr/lib/$(MACH64)/libjpeg.so \
    target=../libjpeg8-turbo/lib/$(MACH64)/libjpeg.so.8.3.2
# This links provide proper SONAME links
link path=usr/lib/$(MACH64)/libjpeg.so.8 \
    target=../libjpeg8-turbo/lib/$(MACH64)/libjpeg.so.8.3.2
link path=usr/lib/$(MACH64)/libturbojpeg.so \
    target=../libjpeg8-turbo/lib/$(MACH64)/libturbojpeg.so.0.3.0
link path=usr/lib/$(MACH64)/libturbojpeg.so.0 \
    target=../libjpeg8-turbo/lib/$(MACH64)/libturbojpeg.so.0.3.0