View | Details | Raw Unified | Return to bug 270989 | Differences between
and this patch

Collapse All | Expand All

(-)b/Mk/Uses/ghostscript.mk (-17 / +28 lines)
Lines 4-11 Link Here
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
6
#
6
#
7
# version 	The chooseable versions are 9 and agpl. If no version is
7
# version 	The chooseable versions are 9, agpl and 10. If no version is
8
#		specified version agpl is selected.
8
#		specified version agpl is selected. 9 and agpl are synonymous.
9
#
9
#
10
#		USES=ghostscript:9	# Use Ghostscript 9
10
#		USES=ghostscript:9	# Use Ghostscript 9
11
#		USES=ghostscript:run	# Use the set default Ghostscript as a run dependency
11
#		USES=ghostscript:run	# Use the set default Ghostscript as a run dependency
Lines 30-44 _INCLUDE_USES_GHOSTSCRIPT_MK= yes Link Here
30
# allowed versions
30
# allowed versions
31
# When adding a version, please keep the comment in
31
# When adding a version, please keep the comment in
32
# Mk/bsd.default-versions.mk in sync.
32
# Mk/bsd.default-versions.mk in sync.
33
_GS_VERSION=	9 agpl
33
_GS_VERSION=	9 agpl 10
34
34
35
_GS_ARGS=		${ghostscript_ARGS}
35
_GS_ARGS=	${ghostscript_ARGS}
36
36
37
.  if ${_GS_ARGS:N[9]:Nagpl:Nx11:Nbuild:Nrun:Ntest}
37
.  if ${_GS_ARGS:N9:N10:Nagpl:Nx11:Nbuild:Nrun:Ntest}
38
IGNORE?=	Unknown ghostscript argument ${_GS_ARGS}
38
IGNORE?=	Unknown ghostscript argument ${_GS_ARGS}
39
.  endif
39
.  endif
40
40
41
.  if ${GHOSTSCRIPT_DEFAULT:N[9]:Nagpl}
41
.  if ${GHOSTSCRIPT_DEFAULT:N9:Nagpl:N10}
42
IGNORE?=	Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION}
42
IGNORE?=	Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION}
43
.  endif
43
.  endif
44
44
Lines 67-95 _GS_RUN_DEP= yes Link Here
67
.undef _GS_SELECTED
67
.undef _GS_SELECTED
68
.  for V in ${_GS_ARGS} ${GHOSTSCRIPT_DEFAULT}
68
.  for V in ${_GS_ARGS} ${GHOSTSCRIPT_DEFAULT}
69
_V=${V}
69
_V=${V}
70
.    if ${_V:M9}
70
.    if ${_V:M10}
71
_GS_SELECTED?=		9
71
_GS_SELECTED?=	10
72
.    elif ${_V:M9}
73
_GS_SELECTED?=	9-agpl
72
.    elif ${_V:Magpl}
74
.    elif ${_V:Magpl}
73
_GS_SELECTED?=		9-agpl
75
_GS_SELECTED?=	9-agpl
74
.    endif
76
.    endif
75
.  endfor
77
.  endfor
76
78
79
.undef _GS_FLAVORED
80
.  if empty(_GS_SELECTED:M9-agpl)
81
_GS_FLAVORED=	yes
82
.  endif
83
77
# Resolve minor version number for X11.so library.
84
# Resolve minor version number for X11.so library.
78
.  if !empty(_GS_SELECTED:M9-agpl)
85
.  if !empty(_GS_SELECTED:M10)
79
_GS_VERSION_MINOR=	9.16_2
86
_GS_VERSION_MINOR=	10.01.1_2
80
.  elif !empty(_GS_SELECTED:M9)
87
.  elif !empty(_GS_SELECTED:M9-agpl)
81
_GS_VERSION_MINOR=	9.06_11
88
_GS_VERSION_MINOR=	9.56.1
82
.  endif
89
.  endif
83
90
84
# dependencies
91
# dependencies
85
_GS_PORT=	ghostscript${_GS_SELECTED}-base
92
_GS_PKGNAME=	ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base}
86
_GS_X11_PORT=	ghostscript${_GS_SELECTED}-x11
93
_GS_X11_PKGNAME=	ghostscript${_GS_SELECTED}-x11
94
_GS_PORT=	print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base}
95
_GS_X11_PORT=	print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?@:-}x11
87
96
88
.  for type in BUILD RUN TEST
97
.  for type in BUILD RUN TEST
89
.    if defined(_GS_${type}_DEP)
98
.    if defined(_GS_${type}_DEP)
90
${type}_DEPENDS+=	${_GS_PORT}>=${_GS_VERSION_MINOR}:print/${_GS_PORT}
99
.      if !defined(_GS_FLAVORED) || !${_GS_ARGS:Mx11}
100
${type}_DEPENDS+=	${_GS_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_PORT}
101
.      endif
91
.      if ${_GS_ARGS:Mx11}
102
.      if ${_GS_ARGS:Mx11}
92
${type}_DEPENDS+=	${_GS_X11_PORT}>=${_GS_VERSION_MINOR}:print/${_GS_X11_PORT}
103
${type}_DEPENDS+=	${_GS_X11_PKGNAME}>=${_GS_VERSION_MINOR}:${_GS_X11_PORT}
93
.      endif
104
.      endif
94
.    endif
105
.    endif
95
.  endfor
106
.  endfor
(-)b/Mk/bsd.default-versions.mk (-2 / +1 lines)
Lines 53-59 GCC_DEFAULT?= 8 Link Here
53
.  else
53
.  else
54
GCC_DEFAULT?=		12
54
GCC_DEFAULT?=		12
55
.  endif
55
.  endif
56
# Possible values: 9, agpl
56
# Possible values: 9, agpl, 10
57
GHOSTSCRIPT_DEFAULT?=	agpl
57
GHOSTSCRIPT_DEFAULT?=	agpl
58
# Possible values: mesa-libs, mesa-devel
58
# Possible values: mesa-libs, mesa-devel
59
GL_DEFAULT?=		mesa-libs
59
GL_DEFAULT?=		mesa-libs
60
- 

Return to bug 270989