socsvn commit: r237931 - in soc2012/scher/par_ports/remote: . Mk
scher at FreeBSD.org
scher at FreeBSD.org
Tue Jun 19 07:00:05 UTC 2012
Author: scher
Date: Tue Jun 19 07:00:01 2012
New Revision: 237931
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=237931
Log:
up-to-date
Added:
soc2012/scher/par_ports/remote/
soc2012/scher/par_ports/remote/Mk/
soc2012/scher/par_ports/remote/Mk/bsd.apache.mk
soc2012/scher/par_ports/remote/Mk/bsd.autotools.mk
soc2012/scher/par_ports/remote/Mk/bsd.cmake.mk
soc2012/scher/par_ports/remote/Mk/bsd.commands.mk
soc2012/scher/par_ports/remote/Mk/bsd.cran.mk
soc2012/scher/par_ports/remote/Mk/bsd.database.mk
soc2012/scher/par_ports/remote/Mk/bsd.destdir.mk
soc2012/scher/par_ports/remote/Mk/bsd.drupal.mk
soc2012/scher/par_ports/remote/Mk/bsd.efl.mk
soc2012/scher/par_ports/remote/Mk/bsd.emacs.mk
soc2012/scher/par_ports/remote/Mk/bsd.fpc.mk
soc2012/scher/par_ports/remote/Mk/bsd.gcc.mk
soc2012/scher/par_ports/remote/Mk/bsd.gecko.mk
soc2012/scher/par_ports/remote/Mk/bsd.gnome.mk
soc2012/scher/par_ports/remote/Mk/bsd.gnustep.mk
soc2012/scher/par_ports/remote/Mk/bsd.gstreamer.mk
soc2012/scher/par_ports/remote/Mk/bsd.java.mk
soc2012/scher/par_ports/remote/Mk/bsd.kde.mk
soc2012/scher/par_ports/remote/Mk/bsd.kde4.mk
soc2012/scher/par_ports/remote/Mk/bsd.ldap.mk
soc2012/scher/par_ports/remote/Mk/bsd.licenses.db.mk
soc2012/scher/par_ports/remote/Mk/bsd.licenses.mk
soc2012/scher/par_ports/remote/Mk/bsd.linux-apps.mk
soc2012/scher/par_ports/remote/Mk/bsd.linux-rpm.mk
soc2012/scher/par_ports/remote/Mk/bsd.local.mk
soc2012/scher/par_ports/remote/Mk/bsd.lua.mk
soc2012/scher/par_ports/remote/Mk/bsd.mail.mk
soc2012/scher/par_ports/remote/Mk/bsd.ncurses.mk
soc2012/scher/par_ports/remote/Mk/bsd.ocaml.mk
soc2012/scher/par_ports/remote/Mk/bsd.octave.mk
soc2012/scher/par_ports/remote/Mk/bsd.openssl.mk
soc2012/scher/par_ports/remote/Mk/bsd.options.desc.mk
soc2012/scher/par_ports/remote/Mk/bsd.options.mk
soc2012/scher/par_ports/remote/Mk/bsd.parallel.mk
soc2012/scher/par_ports/remote/Mk/bsd.perl.mk
soc2012/scher/par_ports/remote/Mk/bsd.php.mk
soc2012/scher/par_ports/remote/Mk/bsd.pkgng.mk
soc2012/scher/par_ports/remote/Mk/bsd.port.mk
soc2012/scher/par_ports/remote/Mk/bsd.port.options.mk
soc2012/scher/par_ports/remote/Mk/bsd.port.post.mk
soc2012/scher/par_ports/remote/Mk/bsd.port.pre.mk
soc2012/scher/par_ports/remote/Mk/bsd.port.subdir.mk
soc2012/scher/par_ports/remote/Mk/bsd.python.mk
soc2012/scher/par_ports/remote/Mk/bsd.qt.mk
soc2012/scher/par_ports/remote/Mk/bsd.ruby.mk
soc2012/scher/par_ports/remote/Mk/bsd.scons.mk
soc2012/scher/par_ports/remote/Mk/bsd.sdl.mk
soc2012/scher/par_ports/remote/Mk/bsd.sites.mk
soc2012/scher/par_ports/remote/Mk/bsd.tcl.mk
soc2012/scher/par_ports/remote/Mk/bsd.wx.mk
soc2012/scher/par_ports/remote/Mk/bsd.xfce.mk
soc2012/scher/par_ports/remote/Mk/bsd.xorg.mk
soc2012/scher/par_ports/remote/Mk/bsd.zenoss.mk
Added: soc2012/scher/par_ports/remote/Mk/bsd.apache.mk
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/scher/par_ports/remote/Mk/bsd.apache.mk Tue Jun 19 07:00:01 2012 (r237931)
@@ -0,0 +1,546 @@
+#-*- tab-width: 4; -*-
+# ex:ts=4
+#
+# $FreeBSD: ports/Mk/bsd.apache.mk,v 1.36 2012/05/23 08:17:48 miwi Exp $
+#
+# bsd.apache.mk - Apache related macros.
+# Author: Clement Laforet <clement at FreeBSD.org>
+# Author: Olli Hauer <ohauer at FreeBSD.org>
+#
+# Please view me with 4 column tabs!
+
+# =========================================================================
+# Parameter APACHE_PORT (user controlled):
+#
+# The parameter APACHE_PORT can be used in /etc/make.conf to
+# overwrite the default apache port.
+#
+# This parameter should never be used in the Makefile of a port!
+#
+# Example entry in /etc/make.conf:
+# APACHE_PORT= www/apache22
+#
+# To get a list of "possible" valid values execute the command:
+# $> egrep 'apache[12]' ports/www/Makefile | awk '{print "www/" $3}'
+#
+# =========================================================================
+#
+# This script will be included if one of the following parameter
+# is defined in the Makefile of the port
+#
+# USE_APACHE - Set apache and apxs as build and run dependency
+# USE_APACHE_BUILD - Set apache and apxs as build dependency
+# USE_APACHE_RUN - Set apache and apxs as run dependency
+#
+# The following example is representative of all three possible
+# parameters to use.
+#
+# Examples:
+# USE_APACHE= 22 # specify exact version
+# USE_APACHE= 20+ # specify [min] version, no [max] version
+# USE_APACHE= 20-22 # specify [min]-[max] range
+# USE_APACHE= -22 # specify [max] version, no [min] version
+#
+# Note:
+# - If "+" is specified and no apache is installed, then
+# ${DEFAULT_APACHE_VERSION} will be used.
+#
+# - Valid version numbers are specified in the variable
+# APACHE_SUPPORTED_VERSION below
+#
+# - The following values for USE_APACHE are reserverd and only valid
+# in apache-server ports!
+# USE_APACHE= common20, and common22
+#
+#
+# The following variables can be used (ro) in ports Makefile
+# =========================================================================
+# - APACHE_VERSION
+# - APACHEETCDIR
+# - APACHEINCLUDEDIR
+# - APACHEMODDIR
+# - DEFAULT_APACHE_VERSION
+#
+#
+# Parameters for building third party apache modules:
+# =========================================================================
+# - AP_FAST_BUILD # automatic module build
+#
+# - AP_GENPLIST # automatic PLIST generation plus add
+# # the module disabled into httpd.conf
+# # (only if no pkg-plist exist)
+#
+# - MODULENAME # default: ${PORTNAME}
+# - SHORTMODNAME # default: ${MODULENAME:S/mod_//}
+# - SRC_FILE # default: ${MODULENAME}.c
+#
+#
+
+.if !defined(Apache_Pre_Include)
+
+Apache_Pre_Include= bsd.apache.mk
+
+DEFAULT_APACHE_VERSION= 22
+APACHE_SUPPORTED_VERSION= 22 20 # preferred version first
+
+# Print warnings
+_ERROR_MSG= : Error from bsd.apache.mk.
+
+# Important Note:
+# Keep apache version in ascending order!
+# The "+" sign is only valid as last sign, not between
+# two versions or in combination with range!
+.if defined(USE_APACHE) && !empty(USE_APACHE)
+. if ${USE_APACHE:Mcommon*} != ""
+AP_PORT_IS_SERVER= YES
+. elif ${USE_APACHE:C/\-//:S/^20//:S/^22//:C/\+$//} == ""
+AP_PORT_IS_MODULE= YES
+. if ${USE_APACHE:C/\-//:S/^20//:S/^22//} == "+"
+AP_PLUS= yes
+. endif
+. else
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE ( ${USE_APACHE} )
+. endif
+# Catch unknown apache versions and silly USE_APACHE constructs
+. if empty(AP_PORT_IS_SERVER) && empty(AP_PORT_IS_MODULE)
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE ( ${USE_APACHE} )
+. endif
+# Catch USE_APACHE [min]-[max]+
+. if defined(AP_PLUS) && ${USE_APACHE:C/[.+0-9]//g} == "-"
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE ( ${USE_APACHE} )
+. endif
+.elif defined(USE_APACHE)
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE ( no version specified )
+.endif # defined(USE_APACHE)
+
+# ===============================================================
+.if defined(AP_PORT_IS_SERVER)
+# For slave ports:
+.if defined(SLAVE_DESIGNED_FOR) && ${PORTVERSION} != ${SLAVE_DESIGNED_FOR}
+IGNORE= Sorry, ${SLAVENAME} and ${PORTNAME} versions are out of sync ${PORTVERSION} != ${SLAVE_DESIGNED_FOR}
+.endif
+
+.if defined(SLAVE_PORT_MODULES)
+DEFAULT_MODULES_CATEGORIES+= SLAVE_PORT
+ALL_MODULES_CATEGORIES+= SLAVE_PORT
+.endif
+
+# Module selection
+.for category in ${DEFAULT_MODULES_CATEGORIES}
+DEFAULT_MODULES+= ${${category}_MODULES}
+WITH_${category}_MODULES= YES
+.endfor
+
+.for category in ${ALL_MODULES_CATEGORIES}
+AVAILABLE_MODULES+= ${${category}_MODULES}
+.endfor
+
+# Setting "@comment " as default.
+.for module in ${AVAILABLE_MODULES}
+${module}_PLIST_SUB= "@comment "
+.endfor
+
+# Configure
+# dirty hacks to make sure all modules are disabled before we select them
+.if ${USE_APACHE} == common13
+CONFIGURE_ARGS+= --disable-module="all"
+.elif ${USE_APACHE} == common20
+CONFIGURE_ARGS+= --disable-access --disable-auth \
+ --disable-charset-lite --disable-include \
+ --disable-log-config --disable-env --disable-setenvif \
+ --disable-mime --disable-status --disable-autoindex \
+ --disable-asis --disable-cgid --disable-cgi \
+ --disable-negotiation --disable-dir --disable-imap \
+ --disable-actions --disable-userdir --disable-alias
+.elif ${USE_APACHE} == common22
+CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \
+ --disable-authz-host --disable-authz-groupfile \
+ --disable-authz-user --disable-authz-default \
+ --disable-auth-basic --disable-charset-lite \
+ --disable-include --disable-log-config --disable-env \
+ --disable-setenvif --disable-mime --disable-status \
+ --disable-autoindex --disable-asis --disable-cgid \
+ --disable-cgi --disable-negotiation --disable-dir \
+ --disable-imagemap --disable-actions --disable-userdir \
+ --disable-alias --disable-filter --disable-substitute \
+ --disable-proxy --disable-proxy-connect \
+ --disable-proxy-ftp --disable-proxy-http \
+ --disable-proxy-ajp --disable-proxy-balancer \
+ --disable-proxy-scgi --disable-reqtimeout
+.endif
+
+.if defined(OPTIONS) && !(make(make-options-list))
+.for module in ${AVAILABLE_MODULES}
+. if defined(WITH_${module:U})
+_APACHE_MODULES+= ${module}
+. endif
+. if defined(WITHOUT_${module:U})
+WITHOUT_MODULES+= ${module}
+. endif
+.endfor
+.elif defined(WITH_MODULES)
+_APACHE_MODULES+= ${WITH_MODULES}
+.else
+.for category in ${ALL_MODULES_CATEGORIES}
+. if defined (WITHOUT_${category}_MODULES) || defined (WITH_CUSTOM_${category})
+. if defined(WITH_${category}_MODULES})
+. undef WITH_${category}_MODULES
+. endif
+. if defined (WITH_CUSTOM_${category})
+_APACHE_MODULES+= ${WITH_CUSTOM_${category}}
+. endif
+. elif defined(WITH_${category}_MODULES)
+_APACHE_MODULES+= ${${category}_MODULES}
+. endif
+.endfor
+.if defined(WITH_EXTRA_MODULES)
+_APACHE_MODULES+= ${WITH_EXTRA_MODULES}
+.endif
+.endif
+
+.if !defined(WITH_STATIC_APACHE)
+. if ${USE_APACHE:Mcommon2*} != ""
+# FYI
+#DYNAMIC_MODULES= so
+CONFIGURE_ARGS+= --enable-so
+. endif
+.else
+. if ${USE_APACHE:Mcommon2*} != ""
+CONFIGURE_ARGS+= --disable-so
+. endif
+WITH_ALL_STATIC_MODULES= YES
+.endif
+
+.if defined(WITH_SUEXEC) || defined(WITH_SUEXEC_MODULES)
+. if ${USE_APACHE} == common13
+SUEXEC_CONFARGS= suexec
+CONFIGURE_ARGS+= --enable-suexec
+. elif ${USE_APACHE:Mcommon2*} != ""
+_APACHE_MODULES+= ${SUEXEC_MODULES}
+SUEXEC_CONFARGS= with-suexec
+. endif
+
+# From now we're defaulting to apache 2.*
+SUEXEC_DOCROOT?= ${PREFIX}/www/data
+SUEXEC_USERDIR?= public_html
+SUEXEC_SAFEPATH?= ${PREFIX}/bin:${LOCALBASE}/bin:/usr/bin:/bin
+SUEXEC_LOGFILE?= /var/log/httpd-suexec.log
+SUEXEC_UIDMIN?= 1000
+SUEXEC_GIDMIN?= 1000
+SUEXEC_CALLER?= ${WWWOWN}
+CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-caller=${SUEXEC_CALLER} \
+ --${SUEXEC_CONFARGS}-uidmin=${SUEXEC_UIDMIN} \
+ --${SUEXEC_CONFARGS}-gidmin=${SUEXEC_GIDMIN} \
+ --${SUEXEC_CONFARGS}-userdir="${SUEXEC_USERDIR}" \
+ --${SUEXEC_CONFARGS}-docroot="${SUEXEC_DOCROOT}" \
+ --${SUEXEC_CONFARGS}-safepath="${SUEXEC_SAFEPATH}" \
+ --${SUEXEC_CONFARGS}-logfile="${SUEXEC_LOGFILE}"
+. if ${USE_APACHE:Mcommon2*} != ""
+CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-bin="${PREFIX}/sbin/suexec"
+. endif
+
+. if defined(WITH_SUEXEC_UMASK)
+CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-umask=${SUEXEC_UMASK}
+. endif
+.endif
+
+.if !defined(WITHOUT_MODULES)
+APACHE_MODULES= ${_APACHE_MODULES}
+.else
+APACHE_MODULES!= \
+ for module in ${_APACHE_MODULES}; do \
+ ${ECHO_CMD} ${WITHOUT_MODULES} | ${GREP} -wq $${module} 2> /dev/null || \
+ ${ECHO_CMD} $${module}; \
+ done
+.endif
+
+.if defined(WITH_STATIC_MODULES)
+. if ${USE_APACHE} == common13
+STATIC_MODULE_CONFARG= --enable-module=$${module}
+DSO_MODULE_CONFARG= --enable-module=$${module} --enable-shared=$${module}
+. else
+STATIC_MODULE_CONFARG= --enable-$${module}
+DSO_MODULE_CONFARG= --enable-$${module}=shared
+. endif
+_CONFIGURE_ARGS!= \
+ for module in ${APACHE_MODULES} ; do \
+ ${ECHO_CMD} ${WITH_STATIC_MODULES} | \
+ ${GREP} -wq $${module} 2> /dev/null ; \
+ if [ "$${?}" = "0" ] ; then \
+ ${ECHO_CMD} "${STATIC_MODULE_CONFARG}"; \
+ else \
+ ${ECHO_CMD} "${DSO_MODULE_CONFARG}"; \
+ fi; done
+CONFIGURE_ARGS+= ${_CONFIGURE_ARGS}
+.elif defined(WITH_STATIC_APACHE) || defined(WITH_ALL_STATIC_MODULES)
+WITH_STATIC_MODULES= ${APACHE_MODULES}
+. if ${USE_APACHE} == common13
+. for module in ${APACHE_MODULES}
+CONFIGURE_ARGS+= --enable-module=${module}
+. endfor
+. else
+CONFIGURE_ARGS+= --enable-modules="${APACHE_MODULES}"
+. endif
+.else
+. if ${USE_APACHE} == common13
+. for module in ${APACHE_MODULES}
+CONFIGURE_ARGS+= --enable-module=${module} --enable-shared=${module}
+. endfor
+. else
+CONFIGURE_ARGS+= --enable-mods-shared="${APACHE_MODULES}"
+. endif
+.endif
+
+.if defined(WITH_STATIC_MODULES)
+_SHARED_MODULES!= \
+ for module in ${APACHE_MODULES} ; do \
+ ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/null || \
+ ${ECHO_CMD} $${module}; \
+ done
+SHARED_MODULES= ${_SHARED_MODULES}
+.elif !defined(WITH_ALL_STATIC_MODULES)
+SHARED_MODULES= ${APACHE_MODULES}
+.endif
+
+.for module in ${SHARED_MODULES}
+${module}_PLIST_SUB= ""
+.endfor
+
+.for module in ${AVAILABLE_MODULES}
+PLIST_SUB+= MOD_${module:U}=${${module}_PLIST_SUB}
+.endfor
+#### End of AP_PORT_IS_SERVER ####
+
+# ===============================================================
+.elif defined(AP_PORT_IS_MODULE) || defined(USE_APACHE_RUN) || defined(USE_APACHE_BUILD)
+APXS?= ${LOCALBASE}/sbin/apxs
+HTTPD?= ${LOCALBASE}/sbin/httpd
+
+MODULENAME?= ${PORTNAME}
+SHORTMODNAME?= ${MODULENAME:S/mod_//}
+SRC_FILE?= ${MODULENAME}.c
+
+.if exists(${HTTPD})
+_APACHE_VERSION!= ${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
+. if ${_APACHE_VERSION} > 13
+APACHE_MPM!= ${APXS} -q MPM_NAME
+. endif
+.elif defined(APACHE_PORT)
+_APACHE_VERSION!= ${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([0-9]*\).*,\1,p'
+.endif
+
+.if defined(USE_APACHE)
+_USE_APACHE:= ${USE_APACHE}
+.elif defined(USE_APACHE_BUILD)
+_USE_APACHE:= ${USE_APACHE_BUILD}
+.elif defined(USE_APACHE_RUN)
+_USE_APACHE:= ${USE_APACHE_RUN}
+.endif
+
+_APACHE_VERSION_CHECK:= ${_USE_APACHE:C/^([1-9][0-9])$/\1-\1/}
+_APACHE_VERSION_MINIMUM_TMP:= ${_APACHE_VERSION_CHECK:C/([1-9][0-9])[-+].*/\1/}
+_APACHE_VERSION_MINIMUM:= ${_APACHE_VERSION_MINIMUM_TMP:M[1-9][0-9]}
+_APACHE_VERSION_MAXIMUM_TMP:= ${_APACHE_VERSION_CHECK:C/.*-([1-9][0-9])/\1/}
+_APACHE_VERSION_MAXIMUM:= ${_APACHE_VERSION_MAXIMUM_TMP:M[1-9][0-9]}
+
+.if defined(_APACHE_VERSION)
+# Validate Apache version whether it meets USE_APACHE version restriction.
+. if !empty(_APACHE_VERSION_MINIMUM) && (${_APACHE_VERSION} < ${_APACHE_VERSION_MINIMUM})
+_APACHE_VERSION_NONSUPPORTED= ${_APACHE_VERSION_MINIMUM} at least
+. elif !empty(_APACHE_VERSION_MAXIMUM) && (${_APACHE_VERSION} > ${_APACHE_VERSION_MAXIMUM})
+_APACHE_VERSION_NONSUPPORTED= ${_APACHE_VERSION_MAXIMUM} at most
+. endif
+
+. if defined(_APACHE_VERSION_NONSUPPORTED) && !defined(AP_IGNORE_VERSION_CHECK)
+IGNORE= ${_ERROR_MSG} apache${_APACHE_VERSION} is installed (or APACHE_PORT is defined) and port requires apache${_APACHE_VERSION_NONSUPPORTED}
+. endif
+.else # defined(_APACHE_VERSION)
+. for ver in ${APACHE_SUPPORTED_VERSION}
+__VER= ${ver}
+. if !defined(_APACHE_VERSION) && \
+ !(!empty(_APACHE_VERSION_MINIMUM) && ( ${__VER} < ${_APACHE_VERSION_MINIMUM} )) && \
+ !(!empty(_APACHE_VERSION_MAXIMUM) && ( ${__VER} > ${_APACHE_VERSION_MAXIMUM} ))
+_APACHE_VERSION= ${ver}
+. endif
+. endfor
+.endif # defined(_APACHE_VERSION)
+
+APACHE_VERSION:= ${_APACHE_VERSION}
+
+.if exists(${APXS})
+APXS_PREFIX!= ${APXS} -q prefix 2> /dev/null || echo NULL
+. if ${APXS_PREFIX} == NULL
+IGNORE= : Your apache does not support DSO modules
+. endif
+. if defined(AP_GENPLIST) && ${APXS_PREFIX} != ${PREFIX}
+IGNORE?= PREFIX must be equal to APXS_PREFIX.
+. endif
+.endif
+
+.if ${APACHE_VERSION} == 20
+AP_BUILDEXT= la
+APACHEMODDIR= libexec/apache2
+APACHEINCLUDEDIR=include/apache2
+APACHEETCDIR= etc/apache2
+APACHE_PORT?= www/apache${APACHE_VERSION}
+.elif ${APACHE_VERSION} >= 22
+AP_BUILDEXT= la
+APACHEMODDIR= libexec/apache${APACHE_VERSION}
+APACHEINCLUDEDIR=include/apache${APACHE_VERSION}
+APACHEETCDIR= etc/apache${APACHE_VERSION}
+APACHE_PORT?= www/apache${APACHE_VERSION}
+.else
+AP_BUILDEXT= so
+APACHEMODDIR= libexec/apache
+APACHEINCLUDEDIR=include/apache
+APACHEETCDIR= etc/apache
+APACHE_PORT?= www/apache13
+.endif
+
+PLIST_SUB+= APACHEMODDIR="${APACHEMODDIR}" \
+ APACHEINCLUDEDIR="${APACHEINCLUDEDIR}" \
+ APACHEETCDIR="${APACHEETCDIR}"
+
+APACHE_PKGNAMEPREFIX= ap${APACHE_VERSION}-
+.if defined(AP_FAST_BUILD)
+PKGNAMEPREFIX?= ${APACHE_PKGNAMEPREFIX}
+.endif
+
+.if defined(USE_APACHE) || defined(USE_APACHE_BUILD)
+BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}
+.endif
+
+.if defined(USE_APACHE) || defined(USE_APACHE_RUN)
+RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT}
+.endif
+
+PLIST_SUB+= AP_NAME="${SHORTMODNAME}"
+PLIST_SUB+= AP_MODULE="${MODULENAME}.so"
+
+.if defined(AP_GENPLIST)
+PLIST?= ${WRKDIR}/ap-plist
+.endif
+
+.if defined(AP_INC)
+AP_EXTRAS+= -I ${AP_INC}
+.endif
+.if defined(AP_LIB)
+AP_EXTRAS+= -L ${AP_LIB}
+.endif
+
+.endif # End of AP_PORT_IS_SERVER / AP_PORT_IS_MOULE
+.endif # End of !Apache_Pre_Include
+
+# ===============================================================
+.if defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include)
+Apache_Post_Include= bsd.apache.mk
+
+.if defined(USE_APACHE_RUN) && !empty(USE_APACHE_RUN)
+. if ${USE_APACHE_RUN:C/\-//:S/^20//:S/^22//:C/\+$//} != ""
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE_RUN ( ${USE_APACHE_RUN} )
+. endif
+.elif defined(USE_APACHE_RUN)
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE_RUN ( no valid version specified )
+.endif
+
+.if defined(USE_APACHE_BUILD) && !empty(USE_APACHE_BUILD)
+. if ${USE_APACHE_BUILD:C/\-//:S/^20//:S/^22//:C/\+$//} != ""
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE_BUILD ( ${USE_APACHE_BUILD} )
+. endif
+.elif defined(USE_APACHE_BUILD)
+IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE_BUILD ( no valid version specified )
+.endif
+
+# Check if USE_APACHE(_BUILD|_RUN) are mixed together
+.if defined(USE_APACHE) && ( defined(USE_APACHE_BUILD) || defined(USE_APACHE_RUN) )
+IGNORE= ${_ERROR_MSG} specify only one of: USE_APACHE USE_APACHE_BUILD USE_APACHE_RUN
+.elif defined(USE_APACHE_BUILD) && defined(USE_APACHE_RUN)
+IGNORE= ${_ERROR_MSG} use USE_APACHE instead of USE_APACHE_BUILD and USE_APACHE_RUN together
+.endif
+
+.if defined(AP_PORT_IS_SERVER)
+.if !target(print-closest-mirrors)
+print-closest-mirrors:
+ @${ECHO_MSG} -n "Fetching list of nearest mirror: " >&2
+ @MIRRORS=`${FETCH_CMD} -T 30 -qo - http://www.apache.org/dyn/closer.cgi/httpd/ 2> /dev/null\
+ | ${GREP} /httpd/ | ${SED} 's/.*href="\(.*\)"><str.*/\1/g' | \
+ ${HEAD} -7 | ${TAIL} -6` ; \
+ ${ECHO_MSG} done >&2; if [ "x$$MIRRORS" != "x" ]; then \
+ ${ECHO_MSG} -n "MASTER_SITE_APACHE_HTTPD?= ";\
+ ${ECHO_MSG} $$MIRRORS; else \
+ ${ECHO_MSG} "No mirrors found!">&2 ; fi
+.endif
+
+.if !target(show-categories)
+show-categories:
+.for category in ${ALL_MODULES_CATEGORIES}
+ @${ECHO_MSG} "${category} contains these modules:"
+ @${ECHO_MSG} " ${${category}_MODULES}"
+.endfor
+.endif
+
+.if !target(show-modules)
+show-modules:
+ @for module in ${AVAILABLE_MODULES} ; do \
+ ${ECHO_MSG} -n "$${module}: "; \
+ if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; \
+ then \
+ ${ECHO_CMD} -n "enabled "; \
+ if ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \
+ ${ECHO_CMD} "(static)" ; \
+ else \
+ ${ECHO_CMD} "(shared)" ;\
+ fi;\
+ else \
+ ${ECHO_CMD} disabled ;\
+ fi;\
+ done
+.endif
+
+.if !target(make-options-list)
+make-options-list:
+ @${ECHO_CMD} OPTIONS+= \\;
+ @for module in ${AVAILABLE_MODULES} ; do \
+ if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; \
+ then \
+ ${PRINTF} "\t `${ECHO_CMD} $${module} | ${TR} '[:lower:]' '[:upper:]'` \"Enable mod_$${module}\" ON \\"; \
+ ${ECHO_CMD}; \
+ else \
+ ${PRINTF} "\t `${ECHO_CMD} $${module} | ${TR} '[:lower:]' '[:upper:]'` \"Enable mod_$${module}\" OFF \\";\
+ ${ECHO_CMD}; \
+ fi;\
+ done; \
+ ${ECHO_CMD};
+.endif
+
+.elif defined(AP_PORT_IS_MODULE)
+
+.if defined(AP_FAST_BUILD)
+.if !target(ap-gen-plist)
+ap-gen-plist:
+.if defined(AP_GENPLIST)
+. if !exists(${PLIST})
+ @${ECHO} "===> Generating apache plist"
+# apache22/20
+ @${ECHO} "@unexec ${SED} -i '' -E '/LoadModule[[:blank:]]+%%AP_NAME%%_module/d' %D/%%APACHEETCDIR%%/httpd.conf" >> ${PLIST}
+ @${ECHO} "%%APACHEMODDIR%%/%%AP_MODULE%%" >> ${PLIST}
+ @${ECHO} "@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F" >> ${PLIST}
+ @${ECHO} "@unexec echo \"Don't forget to remove all ${MODULENAME}-related directives in your httpd.conf\"">> ${PLIST}
+. endif
+.else
+ @${DO_NADA}
+.endif
+.endif
+
+.if !target(do-build)
+do-build: ap-gen-plist
+ @cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
+.endif
+
+.if !target(do-install)
+do-install:
+ @${APXS} -i -A -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}
+.endif
+.endif
+.endif
+.endif # defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include)
Added: soc2012/scher/par_ports/remote/Mk/bsd.autotools.mk
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/scher/par_ports/remote/Mk/bsd.autotools.mk Tue Jun 19 07:00:01 2012 (r237931)
@@ -0,0 +1,418 @@
+#-*- tab-width: 4; -*-
+# ex:ts=4
+#
+# $FreeBSD: ports/Mk/bsd.autotools.mk,v 1.42 2012/05/23 08:17:48 miwi Exp $
+#
+# Please view me with 4 column tabs!
+#
+# IMPORTANT NOTE:
+# Before making any changes to this file, contact portmgr to arrange
+# for an experimental ports run.
+# Untested commits will almost certainly break the tree, incur the
+# wrath of countless folks, and be unceremoniously backed out by
+# the maintainer and/or portmgr.
+
+Autotools_Include_MAINTAINER= autotools at FreeBSD.org
+
+#---------------------------------------------------------------------------
+# USE_AUTOTOOLS= tool[:env] ...
+#
+# 'tool' can currently be one of the following:
+# autoconf, autoheader
+# autoconf213, autoheader213 (legacy version)
+# automake, aclocal
+# automake14, aclocal14 (legacy version)
+# libtool, libtoolize, libltdl
+#
+# ':env' is used to specify that the environmental variables are needed
+# but the relevant tool should NOT be run as part of the
+# 'run-autotools' target
+#
+# In addition, these variables can be set in the port Makefile to be
+# passed to the relevant tools:
+#
+# AUTOMAKE_ARGS=...
+# - Extra arguments passed to automake during configure step
+#
+# ACLOCAL_ARGS=...
+# - Arguments passed to aclocal during configure step
+#
+# AUTOCONF_ARGS=...
+# - Extra arguments passed to autoconf during configure step
+#
+# AUTOHEADER_ARGS=...
+# - Extra arguments passed to autoheader during configure step
+#
+# LIBTOOLFLAGS=<value>
+# - Arguments passed to libtool during configure step
+#
+# LIBTOOLFILES=<list-of-files>
+# - A list of files to patch during libtool pre-configuration
+#
+# AUTOTOOLSFILES=<list-of-files>
+# - A list of files to further patch with derived information
+# post-patching to reduce churn during component updates
+#
+#---------------------------------------------------------------------------
+
+#---------------------------------------------------------------------------
+# NO USER-SERVICABLE PARTS BEYOND THIS POINT. REALLY. WE MEAN IT.
+#---------------------------------------------------------------------------
+
+# Known autotools components
+_AUTOTOOLS_ALL= autoconf autoheader autoconf213 autoheader213 \
+ automake aclocal automake14 aclocal14 \
+ libtool libtoolize libltdl
+
+# Incompatible autotools mixing
+_AUTOTOOLS_IGN_autoconf= autoconf213 autoheader213
+_AUTOTOOLS_IGN_autoheader= autoconf213 autoheader213
+_AUTOTOOLS_IGN_autoconf213= autoconf autoheader
+_AUTOTOOLS_IGN_autoheader213= autoconf autoheader
+_AUTOTOOLS_IGN_automake= automake14 aclocal14
+_AUTOTOOLS_IGN_aclocal= automake14 aclocal14
+_AUTOTOOLS_IGN_automake14= automake aclocal
+_AUTOTOOLS_IGN_aclocal14= automake aclocal
+
+#---------------------------------------------------------------------------
+# Primary magic to break out the USE_AUTOTOOLS stanza into something
+# more useful, along with substantial error checking to prevent
+# foot-shooting
+#---------------------------------------------------------------------------
+
+# Break out the stanza
+#
+_AUTOTOOLS_IMPL=
+.for stanza in ${USE_AUTOTOOLS}
+_AUTOTOOLS_IMPL+= ${stanza:C/^([^:]+).*/\1/}
+_AUTOTOOL_${stanza:C/^([^:]+).*/\1/}= ${stanza:C/^[^:]+:([^:]+)/\1/}
+.endfor
+
+# Verify each component, normalize
+#
+_AUTOTOOLS_NOCOMP=
+.for component in ${_AUTOTOOLS_IMPL}
+. if ${_AUTOTOOLS_ALL:M${component}}==""
+_AUTOTOOLS_NOCOMP+= ${component}
+. endif
+. if ${_AUTOTOOL_${component}}==${component}
+_AUTOTOOL_${component}= yes
+. elsif ${_AUTOTOOL_${component}}!="env" && ${_AUTOTOOL_${component}}!="yes"
+_AUTOTOOLS_BADCOMP+= ${component}:${_AUTOTOOL_${component}}
+. endif
+.endfor
+.if !empty(_AUTOTOOLS_NOCOMP)
+IGNORE+= Unknown autotool: ${_AUTOTOOLS_NOCOMP:O:u}
+.endif
+
+# Check for anything other than 'yes' or 'env'
+#
+_AUTOTOOLS_BADCOMP=
+.for component in ${_AUTOTOOLS_IMPL}
+. if ${_AUTOTOOL_${component}}!="env" && ${_AUTOTOOL_${component}}!="yes"
+_AUTOTOOLS_BADCOMP+= ${component}:${_AUTOTOOL_${component}}
+. endif
+.endfor
+.if !empty(_AUTOTOOLS_BADCOMP)
+IGNORE+= Bad autotool stanza: ${_AUTOTOOLS_BADCOMP:O:u}
+.endif
+
+# Check for incompatible mixes of components
+#
+_AUTOTOOLS_IGN=
+.for component in ${_AUTOTOOLS_IMPL}
+. for ignore in ${_AUTOTOOLS_IGN_${component}}
+. if defined(_AUTOTOOL_${ignore})
+_AUTOTOOLS_IGN+= ${component}
+. endif
+. endfor
+.endfor
+.if !empty(_AUTOTOOLS_IGN)
+IGNORE+= Incompatible autotools: ${_AUTOTOOLS_IGN:O:u}
+.endif
+
+#---------------------------------------------------------------------------
+# automake and aclocal
+#---------------------------------------------------------------------------
+
+.if defined(_AUTOTOOL_aclocal) && ${_AUTOTOOL_aclocal} == "yes"
+_AUTOTOOL_automake?= env
+_AUTOTOOL_rule_aclocal= yes
+GNU_CONFIGURE= yes
+.endif
+
+.if defined(_AUTOTOOL_automake)
+AUTOMAKE_VERSION= 1.12
+AUTOMAKE_APIVER= 1.12
+AUTOMAKE_PORT= devel/automake
+
+. if ${_AUTOTOOL_automake} == "yes"
+_AUTOTOOL_rule_automake= yes
+GNU_CONFIGURE?= yes
+. endif
+.endif
+
+.if defined(_AUTOTOOL_aclocal14) && ${_AUTOTOOL_aclocal14} == "yes"
+_AUTOTOOL_automake14?= env
+_AUTOTOOL_rule_aclocal14= yes
+GNU_CONFIGURE?= yes
+.endif
+
+.if defined(_AUTOTOOL_automake14)
+AUTOMAKE_VERSION= 1.4
+AUTOMAKE_APIVER= 1.4.6
+AUTOMAKE_PORT= devel/automake14
+AUTOMAKE_ARGS+= -i # backwards compatibility shim
+
+. if ${_AUTOTOOL_automake14} == "yes"
+_AUTOTOOL_rule_automake= yes
+GNU_CONFIGURE?= yes
+. endif
+.endif
+
+.if defined(AUTOMAKE_VERSION)
+AUTOMAKE= ${LOCALBASE}/bin/automake-${AUTOMAKE_VERSION}
+AUTOMAKE_DIR= ${LOCALBASE}/share/automake-${AUTOMAKE_VERSION}
+ACLOCAL= ${LOCALBASE}/bin/aclocal-${AUTOMAKE_VERSION}
+ACLOCAL_DIR= ${LOCALBASE}/share/aclocal-${AUTOMAKE_VERSION}
+
+. if defined(_AUTOTOOL_aclocal) || defined(_AUTOTOOL_aclocal14)
+ACLOCAL_ARGS?= --acdir=${ACLOCAL_DIR}
+. endif
+
+AUTOMAKE_VARS= AUTOMAKE=${AUTOMAKE} \
+ AUTOMAKE_DIR=${AUTOMAKE_DIR} \
+ AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
+ AUTOMAKE_APIVER=${AUTOMAKE_APIVER} \
+ ACLOCAL=${ACLOCAL} \
+ ACLOCAL_DIR=${ACLOCAL_DIR}
+
+AUTOMAKE_DEPENDS= ${AUTOMAKE}:${PORTSDIR}/${AUTOMAKE_PORT}
+BUILD_DEPENDS+= ${AUTOMAKE_DEPENDS}
+.endif
+
+#---------------------------------------------------------------------------
+# autoconf and autoheader
+#---------------------------------------------------------------------------
+
+.if defined(_AUTOTOOL_autoheader) && ${_AUTOTOOL_autoheader} == "yes"
+_AUTOTOOL_autoconf= yes
+_AUTOTOOL_rule_autoheader= yes
+GNU_CONFIGURE?= yes
+.endif
+
+.if defined(_AUTOTOOL_autoconf)
+AUTOCONF_VERSION= 2.69
+AUTOCONF_PORT= devel/autoconf
+
+. if ${_AUTOTOOL_autoconf} == "yes"
+_AUTOTOOL_rule_autoconf= yes
+GNU_CONFIGURE?= yes
+. endif
+.endif
+
+.if defined(_AUTOTOOL_autoheader213) && ${_AUTOTOOL_autoheader213} == "yes"
+_AUTOTOOL_autoconf213= yes
+_AUTOTOOL_rule_autoheader= yes
+GNU_CONFIGURE?= yes
+.endif
+
+.if defined(_AUTOTOOL_autoconf213)
+AUTOCONF_VERSION= 2.13
+AUTOCONF_PORT= devel/autoconf213
+AUTOM4TE= ${FALSE} # doesn't exist here
+
+. if ${_AUTOTOOL_autoconf213} == "yes"
+_AUTOTOOL_rule_autoconf= yes
+GNU_CONFIGURE?= yes
+. endif
+.endif
+
+.if defined(AUTOCONF_VERSION)
+AUTOCONF= ${LOCALBASE}/bin/autoconf-${AUTOCONF_VERSION}
+AUTOCONF_DIR= ${LOCALBASE}/share/autoconf-${AUTOCONF_VERSION}
+AUTOHEADER= ${LOCALBASE}/bin/autoheader-${AUTOCONF_VERSION}
+AUTOIFNAMES= ${LOCALBASE}/bin/ifnames-${AUTOCONF_VERSION}
+AUTOM4TE?= ${LOCALBASE}/bin/autom4te-${AUTOCONF_VERSION}
+AUTORECONF= ${LOCALBASE}/bin/autoreconf-${AUTOCONF_VERSION}
+AUTOSCAN= ${LOCALBASE}/bin/autoscan-${AUTOCONF_VERSION}
+AUTOUPDATE= ${LOCALBASE}/bin/autoupdate-${AUTOCONF_VERSION}
+
+AUTOCONF_VARS= AUTOCONF=${AUTOCONF} \
+ AUTOCONF_DIR=${AUTOCONF_DIR} \
+ AUTOHEADER=${AUTOHEADER} \
+ AUTOIFNAMES=${AUTOIFNAMES} \
+ AUTOM4TE=${AUTOM4TE} \
+ AUTORECONF=${AUTORECONF} \
+ AUTOSCAN=${AUTOSCAN} \
+ AUTOUPDATE=${AUTOUPDATE} \
+ AUTOCONF_VERSION=${AUTOCONF_VERSION}
+
+AUTOCONF_DEPENDS= ${AUTOCONF}:${PORTSDIR}/${AUTOCONF_PORT}
+BUILD_DEPENDS+= ${AUTOCONF_DEPENDS}
+.endif
+
+#---------------------------------------------------------------------------
+# libltdl
+#---------------------------------------------------------------------------
+
+.if defined(_AUTOTOOL_libltdl)
+LIB_DEPENDS+= ltdl.7:${PORTSDIR}/devel/libltdl
+.endif
+
+#---------------------------------------------------------------------------
+# libtool/libtoolize
+#---------------------------------------------------------------------------
+
+.if defined(_AUTOTOOL_libtool) || defined(_AUTOTOOL_libtoolize)
+LIBTOOL_VERSION= 2.4
+LIBTOOL_PORT= devel/libtool
+
+. if defined(_AUTOTOOL_libtool) && ${_AUTOTOOL_libtool} == "yes"
+_AUTOTOOL_rule_libtool= yes
+GNU_CONFIGURE?= yes
+. endif
+. if defined(_AUTOTOOL_libtoolize) && ${_AUTOTOOL_libtoolize} == "yes"
+_AUTOTOOL_rule_libtoolize= yes
+GNU_CONFIGURE?= yes
+. endif
+
+.endif
+
+.if defined(LIBTOOL_VERSION)
+LIBTOOL= ${LOCALBASE}/bin/libtool
+LIBTOOLIZE= ${LOCALBASE}/bin/libtoolize
+LIBTOOL_LIBEXECDIR= ${LOCALBASE}/libexec/libtool
+LIBTOOL_SHAREDIR= ${LOCALBASE}/share/libtool
+LIBTOOL_M4= ${LOCALBASE}/share/aclocal/libtool.m4
+LTMAIN= ${LOCALBASE}/share/libtool/config/ltmain.sh
+
+LIBTOOL_VARS= LIBTOOL=${LIBTOOL} \
+ LIBTOOLIZE=${LIBTOOLIZE} \
+ LIBTOOL_LIBEXECDIR=${LIBTOOL_LIBEXECDIR} \
+ LIBTOOL_SHAREDIR=${LIBTOOL_SHAREDIR} \
+ LIBTOOL_M4=${LIBTOOL_M4} \
+ LTMAIN=${LTMAIN}
+
+LIBTOOLFLAGS?= # default to empty
+
+. if defined(_AUTOTOOL_rule_autoconf) || defined(_AUTOTOOL_rule_autoconf213)
+LIBTOOLFILES?= aclocal.m4
+. elif defined(_AUTOTOOL_rule_libtool)
+LIBTOOLFILES?= ${CONFIGURE_SCRIPT}
+. endif
+
+LIBTOOL_DEPENDS= libtool>=2.4:${PORTSDIR}/${LIBTOOL_PORT}
+BUILD_DEPENDS+= ${LIBTOOL_DEPENDS}
+.endif
+
+#---------------------------------------------------------------------------
+# Add to the environment
+#---------------------------------------------------------------------------
+
+AUTOTOOLS_VARS= ${AUTOMAKE_VARS} ${AUTOCONF_VARS} ${LIBTOOL_VARS}
+
+.if defined(AUTOTOOLS_VARS) && !empty(AUTOTOOLS_VARS)
+. for var in AUTOTOOLS CONFIGURE MAKE SCRIPTS
+${var:U}_ENV+= ${AUTOTOOLS_VARS}
+. endfor
+.endif
+
+#---------------------------------------------------------------------------
+# Make targets
+#---------------------------------------------------------------------------
+
+.if !target(run-autotools)
+.ORDER: run-autotools run-autotools-aclocal \
+ patch-autotools-libtool run-autotools-autoheader \
+ run-autotools-libtoolize run-autotools-autoconf \
+ run-autotools-automake
+
+run-autotools:: run-autotools-aclocal \
+ patch-autotools-libtool run-autotools-autoheader \
+ run-autotools-libtoolize run-autotools-autoconf \
+ run-autotools-automake
+.endif
+
+.if !target(run-autotools-aclocal)
+run-autotools-aclocal:
+. if defined(_AUTOTOOL_rule_aclocal)
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \
+ ${ACLOCAL_ARGS})
+. else
+ @${DO_NADA}
+. endif
+.endif
+
+.if !target(run-autotools-automake)
+run-autotools-automake:
+. if defined(_AUTOTOOL_rule_automake)
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} \
+ ${AUTOMAKE_ARGS})
+. else
+ @${DO_NADA}
+. endif
+.endif
+
+.if !target(run-autotools-autoconf)
+run-autotools-autoconf:
+. if defined(_AUTOTOOL_rule_autoconf)
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} \
+ ${AUTOCONF_ARGS})
+. else
+ @${DO_NADA}
+. endif
+.endif
+
+.if !target(run-autotools-autoheader)
+run-autotools-autoheader:
+. if defined(_AUTOTOOL_rule_autoheader)
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} \
+ ${AUTOHEADER_ARGS})
+. else
+ @${DO_NADA}
+. endif
+.endif
+
+.if !target(run-autotools-libtoolize)
+run-autotools-libtoolize:
+. if defined(_AUTOTOOL_rule_libtoolize)
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} \
+ ${LIBTOOLIZE_ARGS})
+. else
+ @${DO_NADA}
+. endif
+.endif
+
+.if !target(patch-autotools-libtool)
+patch-autotools-libtool::
+. if defined(_AUTOTOOL_rule_libtool)
+ @for file in ${LIBTOOLFILES}; do \
+ ${REINPLACE_CMD} -e \
+ "/^ltmain=/!s|\$$ac_aux_dir/ltmain.sh|${LIBTOOLFLAGS} ${LTMAIN}|g; \
+ /^LIBTOOL=/s|\$$(top_builddir)/libtool|${LIBTOOL}|g" \
+ ${PATCH_WRKSRC}/$$file; \
+ done;
+. else
+ @${DO_NADA}
+. endif
+.endif
+
+#---------------------------------------------------------------------------
+# Reduce patch churn by auto-substituting data from AUTOTOOLS_VARS
+# into the correct places. Code shamelessly stolen from PLIST_SUB.
+
+AUTOTOOLSFILES?= # default to empty
+AUTOTOOLS_VARS?= # empty if not already set
+
+.if !target(configure-autotools)
+configure-autotools::
+. if ${AUTOTOOLS_VARS}!="" && ${AUTOTOOLSFILES} != ""
+ @for file in ${AUTOTOOLSFILES}; do \
+ ${REINPLACE_CMD} ${AUTOTOOLS_VARS:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${WRKSRC}/$${file} ; \
+ done
+. else
+ @${DO_NADA}
+. endif
+.endif
Added: soc2012/scher/par_ports/remote/Mk/bsd.cmake.mk
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2012/scher/par_ports/remote/Mk/bsd.cmake.mk Tue Jun 19 07:00:01 2012 (r237931)
@@ -0,0 +1,103 @@
+#-*- tab-width: 4; -*-
+# ex:ts=4
+#
+# USE_CMAKE - If set, this port uses cmake.
+#
+# CMAKE_ENV - Environment passed to cmake.
+# Default: ${CONFIGURE_ENV}
+# CMAKE_ARGS - Arguments passed to cmake
+# Default: see below
+# CMAKE_BUILD_TYPE - Type of build (cmake predefined build types).
+# Projects may have their own build profiles.
+# CMake supports the following types: Debug,
+# Release, RelWithDebInfo and MinSizeRel.
+# Debug and Release profiles respect system
+# CFLAGS, RelWithDebInfo and MinSizeRel will set
+# CFLAGS to "-O2 -g" and "-Os -DNDEBUG".
+# Default: Release, if WITH_DEBUG is not set,
+# Debug otherwise
+# CMAKE_VERBOSE - Verbose build
+# Default: not set
+# CMAKE_OUTSOURCE - Instruct to perform an out-of-source build
+# Default: not set
+# CMAKE_SOURCE_PATH - Path to sourcedir for cmake
+# Default: ${WRKSRC}
+# CMAKE_INSTALL_PREFIX - prefix for cmake to use for installation.
+# Default: ${PREFIX}
+#
*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
More information about the svn-soc-all
mailing list