Lines 2-8
Link Here
|
2 |
# |
2 |
# |
3 |
# Feature: ghostscript |
3 |
# Feature: ghostscript |
4 |
# Usage: USES=ghostscript or USES=ghostscript:args |
4 |
# Usage: USES=ghostscript or USES=ghostscript:args |
5 |
# Valid ARGS: <version>, build, run, test, x11 |
5 |
# Valid ARGS: <version>, build, run, test, x11, lib |
6 |
# |
6 |
# |
7 |
# version The chooseable versions are 9, agpl and 10. If no version is |
7 |
# version The chooseable versions are 9, agpl and 10. If no version is |
8 |
# specified version agpl is selected. 9 and agpl are synonymous. |
8 |
# specified version agpl is selected. 9 and agpl are synonymous. |
Lines 18-23
Link Here
|
18 |
# it as RUN_DEPENDS. |
18 |
# it as RUN_DEPENDS. |
19 |
# test Indicates that Ghostscript is needed at test time and adds |
19 |
# test Indicates that Ghostscript is needed at test time and adds |
20 |
# it as TEST_DEPENDS. |
20 |
# it as TEST_DEPENDS. |
|
|
21 |
# lib Indicates that Ghostscript is needed at link time and adds |
22 |
# it as LIB_DEPENDS. |
21 |
# |
23 |
# |
22 |
# If build and run are omitted, Ghostscript will be added as BUILD_DEPENDS and |
24 |
# If build and run are omitted, Ghostscript will be added as BUILD_DEPENDS and |
23 |
# RUN_DEPENDS. |
25 |
# RUN_DEPENDS. |
Lines 34-40
_GS_VERSION= 9 agpl 10
Link Here
|
34 |
|
36 |
|
35 |
_GS_ARGS= ${ghostscript_ARGS} |
37 |
_GS_ARGS= ${ghostscript_ARGS} |
36 |
|
38 |
|
37 |
. if ${_GS_ARGS:N9:N10:Nagpl:Nx11:Nbuild:Nrun:Ntest} |
39 |
. if ${_GS_ARGS:N9:N10:Nagpl:Nx11:Nbuild:Nrun:Ntest:Nlib} |
38 |
IGNORE?= Unknown ghostscript argument ${_GS_ARGS} |
40 |
IGNORE?= Unknown ghostscript argument ${_GS_ARGS} |
39 |
. endif |
41 |
. endif |
40 |
|
42 |
|
Lines 47-52
IGNORE?= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please selec
Link Here
|
47 |
.undef _GS_BUILD_DEP |
49 |
.undef _GS_BUILD_DEP |
48 |
.undef _GS_RUN_DEP |
50 |
.undef _GS_RUN_DEP |
49 |
.undef _GS_TEST_DEP |
51 |
.undef _GS_TEST_DEP |
|
|
52 |
.undef _GS_LIB_DEP |
50 |
. if ${_GS_ARGS:Mbuild} |
53 |
. if ${_GS_ARGS:Mbuild} |
51 |
_GS_BUILD_DEP= yes |
54 |
_GS_BUILD_DEP= yes |
52 |
. endif |
55 |
. endif |
Lines 56-65
_GS_RUN_DEP= yes
Link Here
|
56 |
. if ${_GS_ARGS:Mtest} |
59 |
. if ${_GS_ARGS:Mtest} |
57 |
_GS_TEST_DEP= yes |
60 |
_GS_TEST_DEP= yes |
58 |
. endif |
61 |
. endif |
|
|
62 |
. if ${_GS_ARGS:Mlib} |
63 |
_GS_LIB_DEP= yes |
64 |
. endif |
59 |
|
65 |
|
60 |
# The port does not specify a build, run, or test dependency, assume that |
66 |
# The port does not specify a build, run, test, or lib dependency, assume that |
61 |
# a build and run dependency is required. |
67 |
# a build and run dependency is required. |
62 |
. if !defined(_GS_BUILD_DEP) && !defined(_GS_RUN_DEP) && !defined(_GS_TEST_DEP) |
68 |
. if !defined(_GS_BUILD_DEP) && !defined(_GS_RUN_DEP) && !defined(_GS_TEST_DEP) && !defined(_GS_LIB_DEP) |
63 |
_GS_BUILD_DEP= yes |
69 |
_GS_BUILD_DEP= yes |
64 |
_GS_RUN_DEP= yes |
70 |
_GS_RUN_DEP= yes |
65 |
. endif |
71 |
. endif |
Lines 89-106
_GS_VERSION_MINOR= 9.56.1
Link Here
|
89 |
. endif |
95 |
. endif |
90 |
|
96 |
|
91 |
# dependencies |
97 |
# dependencies |
|
|
98 |
_GS_LIB= libgs.so |
92 |
_GS_PKGNAME= ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base} |
99 |
_GS_PKGNAME= ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base} |
93 |
_GS_X11_PKGNAME=ghostscript${_GS_SELECTED}-x11 |
100 |
_GS_X11_PKGNAME=ghostscript${_GS_SELECTED}-x11 |
94 |
_GS_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base} |
101 |
_GS_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base} |
95 |
_GS_X11_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?@:-}x11 |
102 |
_GS_X11_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?@:-}x11 |
96 |
|
103 |
|
97 |
. for type in BUILD RUN TEST |
104 |
. for type in BUILD RUN TEST LIB |
98 |
. if defined(_GS_${type}_DEP) |
105 |
. if defined(_GS_${type}_DEP) |
99 |
. if defined(_GS_FLAVORED) || !${_GS_ARGS:Mx11} |
106 |
. if !defined(_GS_FLAVORED) || !${_GS_ARGS:Mx11} |
|
|
107 |
. if ${type:MLIB} |
108 |
${type}_DEPENDS+= ${_GS_LIB}:${_GS_PORT} |
109 |
. else |
100 |
${type}_DEPENDS+= ${_GS_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_PORT} |
110 |
${type}_DEPENDS+= ${_GS_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_PORT} |
|
|
111 |
. endif |
101 |
. endif |
112 |
. endif |
102 |
. if ${_GS_ARGS:Mx11} |
113 |
. if ${_GS_ARGS:Mx11} |
|
|
114 |
. if ${type:MLIB} |
115 |
${type}_DEPENDS+= ${_GS_LIB}:${_GS_X11_PORT} |
116 |
. else |
103 |
${type}_DEPENDS+= ${_GS_X11_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_X11_PORT} |
117 |
${type}_DEPENDS+= ${_GS_X11_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_X11_PORT} |
|
|
118 |
. endif |
104 |
. endif |
119 |
. endif |
105 |
. endif |
120 |
. endif |
106 |
. endfor |
121 |
. endfor |
107 |
- |
|
|