Lines 345-371
Link Here
|
345 |
# CXXFLAGS_${ARCH} |
345 |
# CXXFLAGS_${ARCH} |
346 |
# Append the cxxflags to CXXFLAGS only on the specified architecture |
346 |
# Append the cxxflags to CXXFLAGS only on the specified architecture |
347 |
## |
347 |
## |
348 |
# USE_GHOSTSCRIPT |
|
|
349 |
# - If set, this port needs ghostscript to both |
350 |
# build and run. If a number is specified, |
351 |
# the specified version will be used. |
352 |
# The valid value is '7', '8', or '9' in that case. |
353 |
# USE_GHOSTSCRIPT_BUILD |
354 |
# - If set, this port needs ghostscript to build. |
355 |
# USE_GHOSTSCRIPT_RUN |
356 |
# - If set, this port needs ghostscript to run. |
357 |
# GHOSTSCRIPT_PORT |
358 |
# - The port that provides postscript functionality. |
359 |
# Some installations may wish to override the default |
360 |
# to specify a version without X11 and/or localized |
361 |
# versions for their nationality. |
362 |
# Default: print/ghostscript9 |
363 |
# WITH_GHOSTSCRIPT_VER |
364 |
# - If set, the specified version of ghostscript will be |
365 |
# used. The valid value is "7", "8", or "9". Note that |
366 |
# this is for users, not for port maintainers. This |
367 |
# should not be used in Makefile. |
368 |
## |
369 |
# USE_GL - A list of Mesa or GL related dependencies needed by the port. |
348 |
# USE_GL - A list of Mesa or GL related dependencies needed by the port. |
370 |
# Supported components are: egl, glesv2, glut, glu, glw, and gl. |
349 |
# Supported components are: egl, glesv2, glut, glu, glw, and gl. |
371 |
# If set to "yes", this is equivalent to "glu". Note that |
350 |
# If set to "yes", this is equivalent to "glu". Note that |
Lines 1933-1990
Link Here
|
1933 |
.endif |
1912 |
.endif |
1934 |
.endif |
1913 |
.endif |
1935 |
|
1914 |
|
1936 |
# Set the default for the installation of Postscript(TM)- |
|
|
1937 |
# compatible functionality. |
1938 |
.if !defined(USE_GHOSTSCRIPT) |
1939 |
. if defined(USE_GHOSTSCRIPT_BUILD) |
1940 |
_USE_GHOSTSCRIPT= ${USE_GHOSTSCRIPT_BUILD} |
1941 |
. elif defined(USE_GHOSTSCRIPT_RUN) |
1942 |
_USE_GHOSTSCRIPT= ${USE_GHOSTSCRIPT_RUN} |
1943 |
. endif |
1944 |
.else |
1945 |
_USE_GHOSTSCRIPT= ${USE_GHOSTSCRIPT} |
1946 |
.endif |
1947 |
|
1948 |
.if defined(WITH_GHOSTSCRIPT_VER) && !empty(WITH_GHOSTSCRIPT_VER:M[789]) |
1949 |
_USE_GHOSTSCRIPT_DEFAULT_VER= ${WITH_GHOSTSCRIPT_VER} |
1950 |
.else |
1951 |
_USE_GHOSTSCRIPT_DEFAULT_VER= 9 |
1952 |
.endif |
1953 |
|
1954 |
.if defined(_USE_GHOSTSCRIPT) |
1955 |
. if !defined(WITHOUT_X11) |
1956 |
_USE_GHOSTSCRIPT_PKGNAME_SUFFIX= |
1957 |
. else |
1958 |
_USE_GHOSTSCRIPT_PKGNAME_SUFFIX=-nox11 |
1959 |
. endif |
1960 |
. if !empty(_USE_GHOSTSCRIPT:M[789]) |
1961 |
_USE_GHOSTSCRIPT_VER=${_USE_GHOSTSCRIPT:M[789]} |
1962 |
. else |
1963 |
_USE_GHOSTSCRIPT_VER=${_USE_GHOSTSCRIPT_DEFAULT_VER} |
1964 |
. endif |
1965 |
.else |
1966 |
_USE_GHOSTSCRIPT_VER=${_USE_GHOSTSCRIPT_DEFAULT_VER} |
1967 |
.endif |
1968 |
|
1969 |
# Sanity check |
1970 |
.if defined(_USE_GHOSTSCRIPT) && defined(WITH_GHOSTSCRIPT_VER) |
1971 |
. if empty(WITH_GHOSTSCRIPT_VER:M[789]) |
1972 |
. error You set an invalid value "${WITH_GHOSTSCRIPT_VER}" in WITH_GHOSTSCRIPT_VER. Abort. |
1973 |
. elif ${_USE_GHOSTSCRIPT_VER} != ${WITH_GHOSTSCRIPT_VER} |
1974 |
. error You set WITH_GHOSTSCRIPT_VER as ${WITH_GHOSTSCRIPT_VER} but ${PKGNAME} requires print/ghostscript${_USE_GHOSTSCRIPT_VER}. Abort. |
1975 |
. endif |
1976 |
.endif |
1977 |
|
1978 |
GHOSTSCRIPT_PORT?= print/ghostscript${_USE_GHOSTSCRIPT_VER}${_USE_GHOSTSCRIPT_PKGNAME_SUFFIX} |
1979 |
|
1980 |
# Set up the ghostscript dependencies. |
1981 |
.if defined(USE_GHOSTSCRIPT) || defined(USE_GHOSTSCRIPT_BUILD) |
1982 |
BUILD_DEPENDS+= gs:${PORTSDIR}/${GHOSTSCRIPT_PORT} |
1983 |
.endif |
1984 |
.if defined(USE_GHOSTSCRIPT) || defined(USE_GHOSTSCRIPT_RUN) |
1985 |
RUN_DEPENDS+= gs:${PORTSDIR}/${GHOSTSCRIPT_PORT} |
1986 |
.endif |
1987 |
|
1988 |
# Macro for doing in-place file editing using regexps |
1915 |
# Macro for doing in-place file editing using regexps |
1989 |
REINPLACE_ARGS?= -i.bak |
1916 |
REINPLACE_ARGS?= -i.bak |
1990 |
REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS} |
1917 |
REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS} |