Lines 6-13
Link Here
|
6 |
# Usage: USES=ghostscript or USES=ghostscript:args |
6 |
# Usage: USES=ghostscript or USES=ghostscript:args |
7 |
# Valid ARGS: <version>, build, run, x11 |
7 |
# Valid ARGS: <version>, build, run, x11 |
8 |
# |
8 |
# |
9 |
# version The chooseable versions are 7, 8 and 9. If no version is |
9 |
# version The chooseable versions are 7, 8, 9 and agpl. If no version is |
10 |
# specified version 9 is selected. |
10 |
# specified version agpl is selected. |
11 |
# |
11 |
# |
12 |
# USES=ghostscript:7 # Use Ghostscript 7 |
12 |
# USES=ghostscript:7 # Use Ghostscript 7 |
13 |
# USES=ghostscript:run # Use the set default Ghostscript as a run dependancy |
13 |
# USES=ghostscript:run # Use the set default Ghostscript as a run dependancy |
Lines 61-91
_GS_BUILD_DEP= yes
Link Here
|
61 |
_GS_RUN_DEP= yes |
61 |
_GS_RUN_DEP= yes |
62 |
.endif |
62 |
.endif |
63 |
|
63 |
|
64 |
.undef _GS_AGPL_SUFFIX |
|
|
65 |
.undef _GS_SELECTED |
64 |
.undef _GS_SELECTED |
66 |
.for V in ${_GS_ARGS} ${GHOSTSCRIPT_DEFAULT} |
65 |
.for V in ${_GS_ARGS} ${GHOSTSCRIPT_DEFAULT} |
67 |
_V=${V} |
66 |
_V=${V} |
68 |
.if ${_V:M9} |
67 |
.if ${_V:M9} |
69 |
_GS_SELECTED?= 9 |
68 |
_GS_SELECTED?= 9 |
70 |
.elif ${_V:Magpl} |
69 |
.elif ${_V:Magpl} |
71 |
_GS_AGPL_SUFFIX?= -agpl |
70 |
_GS_SELECTED?= 9-agpl |
72 |
.if defined(_GS_SELECTED) && ${_GS_SELECTED:N9} |
|
|
73 |
IGNORE?= Ghostscript-agpl is only available in version 9 |
74 |
.else |
75 |
_GS_SELECTED?= 9 |
76 |
.endif |
77 |
.elif ${_V:M8} |
71 |
.elif ${_V:M8} |
78 |
_GS_SELECTED?= 8 |
72 |
_GS_SELECTED?= 8 |
79 |
.elif ${_V:M7} |
73 |
.elif ${_V:M7} |
80 |
_GS_SELECTED?= 7 |
74 |
_GS_SELECTED?= 7 |
81 |
.endif |
75 |
.endif |
82 |
.endfor |
76 |
.endfor |
83 |
.if !defined(_GS_SELECTED) |
|
|
84 |
IGNORE?= Invalid ghostscript argument or GHOSTSCRIPT_DEFAULT |
85 |
.endif |
86 |
|
77 |
|
87 |
# Resolve minor version number for X11.so library. |
78 |
# Resolve minor version number for X11.so library. |
88 |
.if !empty(_GS_SELECTED:M9) && defined(_GS_AGPL_SUFFIX) |
79 |
.if !empty(_GS_SELECTED:M9-agpl) |
89 |
_GS_VERSION_MINOR= 9.16_2 |
80 |
_GS_VERSION_MINOR= 9.16_2 |
90 |
.elif !empty(_GS_SELECTED:M9) |
81 |
.elif !empty(_GS_SELECTED:M9) |
91 |
_GS_VERSION_MINOR= 9.06_11 |
82 |
_GS_VERSION_MINOR= 9.06_11 |
Lines 96-103
_GS_VERSION_MINOR= 7.07_32
Link Here
|
96 |
.endif |
87 |
.endif |
97 |
|
88 |
|
98 |
# dependencies |
89 |
# dependencies |
99 |
_GS_PORT= ghostscript${_GS_SELECTED}${_GS_AGPL_SUFFIX}-base |
90 |
_GS_PORT= ghostscript${_GS_SELECTED}-base |
100 |
_GS_X11_PORT= ghostscript${_GS_SELECTED}${_GS_AGPL_SUFFIX}-x11 |
91 |
_GS_X11_PORT= ghostscript${_GS_SELECTED}-x11 |
101 |
|
92 |
|
102 |
.for type in BUILD RUN |
93 |
.for type in BUILD RUN |
103 |
.if defined(_GS_${type}_DEP) |
94 |
.if defined(_GS_${type}_DEP) |