pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Malformed conditionals in /etc/mk.conf



coypu%sdf.org@localhost wrote:

> Can you share mk.conf?

I hesitate to copy the whole file because I get the same error with a
clean copy of mk.conf from mk/defaults as well, so it's not due to a
modification that I made. Nevertheless, the relevant parts of
/etc/mk.conf are given below (= file header plus two conditionals).

Thanks,
C.


# $NetBSD: mk.conf,v 1.281 2017/08/10 09:34:05 hauke Exp $

[...]

# The default PREFER_PKGSRC should be empty, but due to historical reasons we have the list below.
# Please add your platform here once you have confirmed it is correct
.if ${OPSYS} == "OpenBSD" || ${OPSYS} == "Bitrig"
PREFER_PKGSRC?=
.elif (!empty(MACHINE_PLATFORM:MNetBSD-*-*) && \
     exists(/usr/X11R7/lib/libX11.so))
PREFER_PKGSRC?=
.elif (!empty(MACHINE_PLATFORM:MNetBSD-*-*) && \
     exists(/usr/lib/libexpat.so))
PREFER_PKGSRC?=         MesaLib Xft2 Xrandr Xrender fontconfig  \
                        freetype2 glu randrproto renderproto xcursor
.elif !empty(MACHINE_PLATFORM:MLinux-*-*) && \
      (!defined(X11_TYPE) || ${X11_TYPE} == "native")
PREFER_PKGSRC?=
.elif !empty(MACHINE_PLATFORM:MDarwin-??.*-*) && \
      (!defined(X11_TYPE) || ${X11_TYPE} == "native")
PREFER_PKGSRC?=
.elif !empty(MACHINE_PLATFORM:MDarwin-9.*-*) && \
      (!defined(X11_TYPE) || ${X11_TYPE} == "native")
PREFER_PKGSRC?=         fontconfig pixman Xft2
.elif !empty(MACHINE_PLATFORM:MCygwin-*-*) && \
     exists(/usr/lib/X11/config/xorgversion.def)
PREFER_PKGSRC?=
.else
PREFER_PKGSRC?=         MesaLib Xft2 Xrandr Xrender expat fontconfig    \
                        freetype2 glu randrproto renderproto xcursor
.endif

[...]

#IMAKEOPTS=
# Options passed to imake(1).  The defaults ensure that imake finds the
# correct commands.
# Possible: any valid flags
# Default:
#  for Solaris with gcc:
#       -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
#  for IRIX:
#       -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE} #       -DManUsr=${PREFIX}
.if ${OPSYS} == "IRIX"
#IMAKEOPTS?=    -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE} #               -DManUsr=${PREFIX}
# ABI specific flags may be added during bootstrapping process or by hand:
.  if defined(ABI)
.    if ${ABI} == "32"
#IMAKEOPTS+=    -DBuildN32
.    else
#IMAKEOPTS+=    -DBuild64bit
.    endif
.  endif


Home | Main Index | Thread Index | Old Index