[BACK]Return to bsd.port.mk CVS log [TXT][DIR] Up to [local] / src / share / mk

Diff for /src/share/mk/bsd.port.mk between version 1.13 and 1.14

version 1.13, 1997/09/09 15:11:28 version 1.14, 1997/09/21 10:58:41
Line 63 
Line 63 
 # MAINTAINER    - The e-mail address of the contact person for this port  # MAINTAINER    - The e-mail address of the contact person for this port
 #                                 (default: ports@FreeBSD.ORG).  #                                 (default: ports@FreeBSD.ORG).
 # CATEGORIES    - A list of descriptive categories into which this port falls.  # CATEGORIES    - A list of descriptive categories into which this port falls.
   # WRKOBJDIR             - A top level directory where, if defined, the separate working
   #                                 directories will get created, and symbolically linked to from
   #                                 ${WRKDIR} (see below).  This is useful for building ports on
   #                                 several architectures, then ${PORTSDIR} can be NFS-mounted
   #                                 while ${WRKOBJDIR} is local to every arch.
   
 #  #
 # Variables that typically apply to an individual port.  Non-Boolean  # Variables that typically apply to an individual port.  Non-Boolean
 # variables without defaults are *mandatory*.  # variables without defaults are *mandatory*.
Line 295 
Line 301 
   
 .if (${OPSYS} == "OpenBSD")  .if (${OPSYS} == "OpenBSD")
 NOMANCOMPRESS?= yes  NOMANCOMPRESS?= yes
   DEF_UMASK?=             022
   .else
   DEF_UMASK?=             0022
 .endif  .endif
   
 .if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS})  .if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS})
Line 334 
Line 343 
 WRKSRC?=                ${WRKDIR}/${DISTNAME}  WRKSRC?=                ${WRKDIR}/${DISTNAME}
 .endif  .endif
   
   .if defined(WRKOBJDIR)
   # XXX Is pwd -P available in FreeBSD's /bin/sh?
   __canonical_PORTSDIR!=  cd ${PORTSDIR}; pwd -P
   __canonical_CURDIR!=    cd ${.CURDIR}; pwd -P
   PORTSUBDIR=             ${__canonical_CURDIR:S,${__canonical_PORTSDIR}/,,}
   .endif
   
 .if exists(${.CURDIR}/patches.${ARCH}-${OPSYS})  .if exists(${.CURDIR}/patches.${ARCH}-${OPSYS})
 PATCHDIR?=              ${.CURDIR}/patches.${ARCH}-${OPSYS}  PATCHDIR?=              ${.CURDIR}/patches.${ARCH}-${OPSYS}
 .elif exists(${.CURDIR}/patches.${OPSYS})  .elif exists(${.CURDIR}/patches.${OPSYS})
Line 558 
Line 574 
 GZIP?=          -9  GZIP?=          -9
 GZIP_CMD?=      /usr/bin/gzip -nf ${GZIP}  GZIP_CMD?=      /usr/bin/gzip -nf ${GZIP}
 LDCONFIG?=      /sbin/ldconfig  LDCONFIG?=      /sbin/ldconfig
   LN?=            /bin/ln
 MKDIR?=         /bin/mkdir -p  MKDIR?=         /bin/mkdir -p
 MV?=            /bin/mv  MV?=            /bin/mv
 RM?=            /bin/rm  RM?=            /bin/rm
Line 965 
Line 982 
 .if !target(do-extract)  .if !target(do-extract)
 do-extract:  do-extract:
 .if !defined(NO_WRKDIR)  .if !defined(NO_WRKDIR)
   .if defined(WRKOBJDIR)
           @${RM} -rf ${WRKOBJDIR}/${PORTSUBDIR}
           @${MKDIR} -p ${WRKOBJDIR}/${PORTSUBDIR}
           @echo "${WRKDIR} -> ${WRKOBJDIR}/${PORTSUBDIR}"
           @# XXX whatif a build is going on right now?  Is this wise?
           @${LN} -sf ${WRKOBJDIR}/${PORTSUBDIR} ${WRKDIR}
   .else
         @${RM} -rf ${WRKDIR}          @${RM} -rf ${WRKDIR}
         @${MKDIR} ${WRKDIR}          @${MKDIR} ${WRKDIR}
 .endif  .endif
   .endif
         @for file in ${EXTRACT_ONLY}; do \          @for file in ${EXTRACT_ONLY}; do \
                 if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\                  if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
                 then \                  then \
Line 1145 
Line 1170 
                 exit 1; \                  exit 1; \
         fi          fi
 .endif  .endif
         @if [ `${SH} -c umask` != 0022 ]; then \          @if [ `${SH} -c umask` != ${DEF_UMASK} ]; then \
                 ${ECHO_MSG} "===>  Warning: your umask is \"`${SH} -c umask`"\".; \                  ${ECHO_MSG} "===>  Warning: your umask is \"`${SH} -c umask`"\".; \
                 ${ECHO_MSG} "      If this is not desired, set it to an appropriate value"; \                  ${ECHO_MSG} "      If this is not desired, set it to an appropriate value"; \
                 ${ECHO_MSG} "      and install this port again by \`\`make reinstall''."; \                  ${ECHO_MSG} "      and install this port again by \`\`make reinstall''."; \

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14