summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2006-02-23 08:28:14 +0000
committerKris Kennaway <kris@FreeBSD.org>2006-02-23 08:28:14 +0000
commit9c33f48abd5d686aa9788085fb1a2965297258a1 (patch)
tree85b6199161e90e5e2cef895b7f90795316f5e67c /Mk
parentAccidentally removed portepoch, believing it was portrevision. (diff)
* Back out the PERL_(BUILD|RUN)_DEPENDS. It needs to be reimplemented
so it appends to (BUILD|RUN)_DEPENDS instead of defining new types, since this requires changes to third party code like the tinderbox and pointyhat. Hopefully this will be revisited by the author in the future. [1] * Cause USE_RC_SUBR to install startup scripts as foo, rather than foo.sh, on applicable RELENG_6 systems as well as HEAD [2] PR: ports/92711 [1], ports/93265 [2] Submitted by: ade [1], dougb [2]
Notes
Notes: svn path=/head/; revision=156742
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk89
1 files changed, 20 insertions, 69 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index a86e156f1e2d..d8cc2c6f7547 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -257,18 +257,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# package depends on. "lib" is the name of a shared library.
# make will use "ldconfig -r" to search for the library.
# lib can contain extended regular expressions.
-# PERL_BUILD_DEPENDS
-# - A list of "module:dir" tuples of Perl modules this
-# package depends to build. "module" is the name of the Perl
-# module which should be "use"d. make will use
-# "perl -e 'use module'" to check if the module is
-# available.
-# PERL_RUN_DEPENDS
-# - A list of "module:dir" tuples of Perl modules this
-# package depends to run. "module" is the name of the Perl
-# module which should be "use"d. make will use
-# "perl -e 'use module'" to check if the module is
-# available.
# DEPENDS - A list of "dir[:target]" tuples of other ports this
# package depends on being made first. Use this only for
# things that don't fall into the above four categories.
@@ -1783,10 +1771,6 @@ CONFIGURE_ARGS+= INSTALLDIRS="site"
USE_PERL5= yes
.endif
-.if defined(PERL_RUN_DEPENDS) || defined(PERL_BUILD_DEPENDS)
-USE_PERL5_BUILD= yes
-.endif
-
.if ${PERL_LEVEL} >= 500600
.if defined(USE_PERL5) || defined(USE_PERL5_BUILD)
EXTRACT_DEPENDS+=${PERL5}:${PORTSDIR}/lang/${PERL_PORT}
@@ -3784,17 +3768,16 @@ _PATCH_DEP= extract
_PATCH_SEQ= patch-message patch-depends patch-dos2unix pre-patch \
pre-patch-script do-patch post-patch post-patch-script
_CONFIGURE_DEP= patch
-_CONFIGURE_SEQ= build-depends lib-depends perl-build-depends misc-depends \
- configure-message pre-configure pre-configure-script \
+_CONFIGURE_SEQ= build-depends lib-depends misc-depends configure-message \
+ pre-configure pre-configure-script \
run-autotools do-configure post-configure post-configure-script
_BUILD_DEP= configure
_BUILD_SEQ= build-message pre-build pre-build-script do-build \
post-build post-build-script
_INSTALL_DEP= build
_INSTALL_SEQ= install-message check-conflicts \
- run-depends lib-depends perl-run-depends apply-slist \
- pre-install pre-install-script generate-plist \
- check-already-installed
+ run-depends lib-depends apply-slist pre-install \
+ pre-install-script generate-plist check-already-installed
_INSTALL_SUSEQ= check-umask install-mtree pre-su-install \
pre-su-install-script do-install install-desktop-entries \
post-install post-install-script add-plist-info \
@@ -4385,7 +4368,7 @@ package-noinstall:
################################################################
.if !target(depends)
-depends: extract-depends patch-depends lib-depends perl-build-depends perl-run-depends misc-depends fetch-depends build-depends run-depends
+depends: extract-depends patch-depends lib-depends misc-depends fetch-depends build-depends run-depends
.if defined(ALWAYS_BUILD_DEPENDS)
_DEPEND_ALWAYS= 1
@@ -4541,35 +4524,6 @@ lib-depends:
done
.endif
-.for deptype in BUILD RUN
-perl-${deptype:L}-depends:
-.if defined(PERL_${deptype}_DEPENDS)
- @for tupple in ${PERL_${deptype}_DEPENDS}; do \
- mod=$${tupple%:*}; \
- mod=`${ECHO_CMD} $${mod} | sed -e 's/\-/::/g'`; \
- dir=$${tupple##*:}; \
- ${ECHO_MSG} -n "===> ${PKGNAME} depends on Perl module: $$mod"; \
- if ${PERL} -M$${mod} -e 1 2>/dev/null; then \
- ${ECHO_MSG} " - found"; \
- else \
- ${ECHO_MSG} " - not found"; \
- ${ECHO_MSG} "===> Verifying install for $$mod in $$dir"; \
- if [ ! -d "$$dir" ]; then \
- ${ECHO_MSG} " => No directory for $$mod. Skipping.."; \
- else \
- ${_INSTALL_DEPENDS} \
- if ! ${PERL} -M$${mod} -e 1 2>/dev/null; then \
- ${ECHO_MSG} "Error: Perl module \"$${mod}\" does not exist"; \
- ${FALSE}; \
- fi; \
- fi; \
- fi; \
- done
-.else
- @${DO_NADA}
-.endif
-.endfor
-
misc-depends:
.if defined(DEPENDS)
.if !defined(NO_DEPENDS)
@@ -4599,7 +4553,7 @@ misc-depends:
# Dependency lists: both build and runtime, recursive. Print out directory names.
-_UNIFIED_DEPENDS=${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} ${PERL_BUILD_DEPENDS} ${PERL_RUN_DEPENDS}
+_UNIFIED_DEPENDS=${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS}
_DEPEND_DIRS= ${_UNIFIED_DEPENDS:C,^[^:]*:([^:]*).*$,\1,} ${DEPENDS:C,:.*,,}
all-depends-list:
@@ -4668,7 +4622,7 @@ fetch-recursive-list:
.if !target(fetch-required)
fetch-required: fetch
@${ECHO_MSG} "===> Fetching all required distfiles for ${PKGNAME} and dependencies"
-.for deptype in EXTRACT PATCH FETCH BUILD RUN PERL_BUILD PERL_RUN
+.for deptype in EXTRACT PATCH FETCH BUILD RUN
.if defined(${deptype}_DEPENDS)
.if !defined(NO_DEPENDS)
@for i in ${${deptype}_DEPENDS}; do \
@@ -4696,7 +4650,7 @@ fetch-required: fetch
.if !target(fetch-required-list)
fetch-required-list: fetch-list
-.for deptype in EXTRACT PATCH FETCH BUILD RUN PERL_BUILD PERL_RUN
+.for deptype in EXTRACT PATCH FETCH BUILD RUN
.if defined(${deptype}_DEPENDS)
.if !defined(NO_DEPENDS)
@for i in ${${deptype}_DEPENDS}; do \
@@ -4733,12 +4687,12 @@ checksum-recursive:
# Dependency lists: build and runtime. Print out directory names.
build-depends-list:
-.if defined(EXTRACT_DEPENDS) || defined(PATCH_DEPENDS) || defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) || defined(DEPENDS) || defined(PERL_BUILD_DEPENDS)
+.if defined(EXTRACT_DEPENDS) || defined(PATCH_DEPENDS) || defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) || defined(DEPENDS)
@${BUILD-DEPENDS-LIST}
.endif
BUILD-DEPENDS-LIST= \
- for dir in $$(${ECHO_CMD} "${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${PERL_BUILD_DEPENDS}" | ${TR} '\040' '\012' | ${SED} -e 's/^[^:]*://' -e 's/:.*//' | ${SORT} -u) $$(${ECHO_CMD} ${DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/:.*//' | ${SORT} -u); do \
+ for dir in $$(${ECHO_CMD} "${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS}" | ${TR} '\040' '\012' | ${SED} -e 's/^[^:]*://' -e 's/:.*//' | ${SORT} -u) $$(${ECHO_CMD} ${DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/:.*//' | ${SORT} -u); do \
if [ -d $$dir ]; then \
${ECHO_CMD} $$dir; \
else \
@@ -4747,12 +4701,12 @@ BUILD-DEPENDS-LIST= \
done | ${SORT} -u
run-depends-list:
-.if defined(LIB_DEPENDS) || defined(RUN_DEPENDS) || defined(DEPENDS) || defined(PERL_RUN_DEPENDS)
+.if defined(LIB_DEPENDS) || defined(RUN_DEPENDS) || defined(DEPENDS)
@${RUN-DEPENDS-LIST}
.endif
RUN-DEPENDS-LIST= \
- for dir in $$(${ECHO_CMD} "${LIB_DEPENDS} ${RUN_DEPENDS} ${PERL_RUN_DEPENDS}" | ${SED} -e 'y/ /\n/' | ${CUT} -f 2 -d ':' | ${SORT} -u) $$(${ECHO_CMD} ${DEPENDS} | ${SED} -e 'y/ /\n/' | ${CUT} -f 1 -d ':' | ${SORT} -u); do \
+ for dir in $$(${ECHO_CMD} "${LIB_DEPENDS} ${RUN_DEPENDS}" | ${SED} -e 'y/ /\n/' | ${CUT} -f 2 -d ':' | ${SORT} -u) $$(${ECHO_CMD} ${DEPENDS} | ${SED} -e 'y/ /\n/' | ${CUT} -f 1 -d ':' | ${SORT} -u); do \
if [ -d $$dir ]; then \
${ECHO_CMD} $$dir; \
else \
@@ -4764,7 +4718,7 @@ RUN-DEPENDS-LIST= \
# and package names.
package-depends-list:
-.if defined(CHILD_DEPENDS) || defined(LIB_DEPENDS) || defined(RUN_DEPENDS) || defined(DEPENDS) || defined(PERL_RUN_DEPENDS)
+.if defined(CHILD_DEPENDS) || defined(LIB_DEPENDS) || defined(RUN_DEPENDS) || defined(DEPENDS)
@${PACKAGE-DEPENDS-LIST}
.endif
@@ -4783,7 +4737,7 @@ PACKAGE-DEPENDS-LIST?= \
done; \
fi; \
checked="${PARENT_CHECKED}"; \
- for dir in $$(${ECHO_CMD} "${LIB_DEPENDS} ${RUN_DEPENDS} ${PERL_RUN_DEPENDS}" | ${SED} -e 'y/ /\n/' | ${CUT} -f 2 -d ':') $$(${ECHO_CMD} ${DEPENDS} | ${SED} -e 'y/ /\n/' | ${CUT} -f 1 -d ':'); do \
+ for dir in $$(${ECHO_CMD} "${LIB_DEPENDS} ${RUN_DEPENDS}" | ${SED} -e 'y/ /\n/' | ${CUT} -f 2 -d ':') $$(${ECHO_CMD} ${DEPENDS} | ${SED} -e 'y/ /\n/' | ${CUT} -f 1 -d ':'); do \
dir=$$(${REALPATH} $$dir); \
if [ -d $$dir ]; then \
if (${ECHO_CMD} $$checked | ${GREP} -qwv "$$dir"); then \
@@ -4851,9 +4805,7 @@ describe:
@rdirs = map((split /:/)[1], split(q{ }, q{${RUN_DEPENDS}})); \
@ddirs = map((split /:/)[0], split(q{ }, q{${DEPENDS}})); \
@ldirs = map((split /:/)[1], split(q{ }, q{${LIB_DEPENDS}})); \
- @prdirs = map((split /:/)[1], split(q{ }, q{${PERL_RUN_DEPENDS}})); \
- @pbdirs = map((split /:/)[1], split(q{ }, q{${PERL_BUILD_DEPENDS}})); \
- for my $$i (\@edirs, \@pdirs, \@fdirs, \@bdirs, \@rdirs, \@ddirs, \@ldirs, \@prdirs, \@pbdirs) { \
+ for my $$i (\@edirs, \@pdirs, \@fdirs, \@bdirs, \@rdirs, \@ddirs, \@ldirs) { \
my @dirs = @$$i; \
@$$i = (); \
for (@dirs) { \
@@ -4877,11 +4829,11 @@ describe:
$$xf{$$_} = 1; \
} \
print join(q{ }, sort keys %xf), q{|}; \
- for (@bdirs, @ddirs, @ldirs, @pbdirs) { \
+ for (@bdirs, @ddirs, @ldirs) { \
$$xb{$$_} = 1; \
} \
print join(q{ }, sort keys %xb), q{|}; \
- for (@rdirs, @ddirs, @ldirs, @prdirs) { \
+ for (@rdirs, @ddirs, @ldirs) { \
$$xr{$$_} = 1; \
} \
print join(q{ }, sort keys %xr), q{|}; \
@@ -4952,8 +4904,7 @@ _PRETTY_PRINT_DEPENDS_LIST=\
pretty-print-build-depends-list:
.if defined(EXTRACT_DEPENDS) || defined(PATCH_DEPENDS) || \
defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || \
- defined(LIB_DEPENDS) || defined(DEPENDS) || \
- defined(PERL_BUILD_DEPENDS)
+ defined(LIB_DEPENDS) || defined(DEPENDS)
@${_PRETTY_PRINT_DEPENDS_LIST}
.endif
.endif
@@ -4961,7 +4912,7 @@ pretty-print-build-depends-list:
.if !target(pretty-print-run-depends-list)
pretty-print-run-depends-list:
.if defined(RUN_DEPENDS) || defined(LIB_DEPENDS) || \
- defined(DEPENDS) || defined(PERL_RUN_DEPENDS)
+ defined(DEPENDS)
@${_PRETTY_PRINT_DEPENDS_LIST}
.endif
.endif
@@ -5123,7 +5074,7 @@ install-rc-script:
.if defined(USE_RC_SUBR) && ${USE_RC_SUBR:U} != "YES"
@${ECHO_CMD} "===> Installing rc.d startup script(s)"
@${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST}
-.if ${OSVERSION} >= 700007
+.if (${OSVERSION} >= 700007 || (${OSVERSION} < 700000 && ${OSVERSION} >= 600101))
@for i in ${USE_RC_SUBR}; do \
${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}; \
${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \