Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.313 diff -u -r1.313 bsd.port.mk --- bsd.port.mk 1999/05/10 23:11:07 1.313 +++ bsd.port.mk 1999/06/04 09:22:49 @@ -720,6 +720,25 @@ TAR?= /usr/bin/tar .endif +PORTCONF_MK?= Makefile.portconf + +.if exists(${.CURDIR}/${PORTCONF_MK}) +.include "${.CURDIR}/${PORTCONF_MK}" +.endif + +PDLG?= pdlg +.if exists(${.CURDIR}) +PDLG_FILE?= ${.CURDIR}/scripts/pdlg +.else +PDLG_FILE?= ${MASTERDIR}/scripts/pdlg +.endif +PDLG_CLASS?= defaults +PDLG_ARGS?= +.if defined(BATCH) +PDLG_ARGS+= -b +.endif +PDLG_ARGS+= -f ${PORTCONF_MK} -c ${PDLG_CLASS} + # EXTRACT_SUFX is defined in .pre.mk section .if defined(USE_ZIP) EXTRACT_CMD?= unzip @@ -1406,6 +1425,16 @@ # adding pre-* or post-* targets/scripts, override these. ################################################################ +# portconf + +.if !target(portconf) +portconf: +.if defined(USE_PDLG) + @${PDLG} ${PDLG_ARGS} ${PDLG_FILE} +.endif + +.endif + # Fetch .if !target(do-fetch) @@ -1715,6 +1744,9 @@ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ ${SCRIPTDIR}/${.TARGET:S/^real-/pre-/}; \ fi +.if make(real-fetch) + @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} portconf +.endif @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} ${.TARGET:S/^real-/do-/} # put here so ports can change the contents of ${TMPPLIST} if necessary .if make(real-install)