Skip to content

Commit

Permalink
ghostscript.mk: replace flavors
Browse files Browse the repository at this point in the history
Flavors for GS 10 create confliciting dependencies, therefore resort to
port options.

PR:		272541
  • Loading branch information
michael-o authored and metalefty committed Sep 15, 2023
1 parent 83964d1 commit bbca8e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Mk/Uses/ghostscript.mk
Expand Up @@ -79,9 +79,9 @@ _GS_SELECTED?= 9-agpl
. endif
. endfor

. undef _GS_FLAVORED
. undef _GS_STATIC
. if empty(_GS_SELECTED:M9-agpl)
_GS_FLAVORED= yes
_GS_STATIC= yes
. endif

# Resolve minor version number for X11.so library.
Expand All @@ -93,14 +93,14 @@ _GS_VERSION_MINOR= 9.56.1

# dependencies
_GS_LIB= libgs.so
_GS_PKGNAME= ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base}
_GS_X11_PKGNAME=ghostscript${_GS_SELECTED}-x11
_GS_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?:-base}
_GS_X11_PORT= print/ghostscript${_GS_SELECTED}${_GS_FLAVORED:?@:-}x11
_GS_PKGNAME= ghostscript${_GS_SELECTED}${_GS_STATIC:?:-base}
_GS_X11_PKGNAME=ghostscript${_GS_SELECTED}${_GS_STATIC:?:-x11}
_GS_PORT= print/ghostscript${_GS_SELECTED}${_GS_STATIC:?:-base}
_GS_X11_PORT= print/ghostscript${_GS_SELECTED}${_GS_STATIC:?:-x11}

. for type in BUILD LIB RUN TEST
. if defined(_GS_${type}_DEP)
. if !defined(_GS_FLAVORED) || !${_GS_ARGS:Mx11}
. if !defined(_GS_STATIC) || !${_GS_ARGS:Mx11}
. if ${type:MLIB}
${type}_DEPENDS+= ${_GS_LIB}:${_GS_PORT}
. else
Expand Down

0 comments on commit bbca8e8

Please sign in to comment.