From 2ccafd6e07fe534906d6af7beeb8863fd0c5944b Mon Sep 17 00:00:00 2001 From: linimon Date: Fri, 16 Dec 2005 02:45:53 +0000 Subject: These now lag their ports/Mk counterparts and are thus OBE. --- ports-mgmt/portmk/Mk/bsd.apache.mk | 353 --------------------- ports-mgmt/portmk/Mk/bsd.database.mk | 231 -------------- ports-mgmt/portmk/Mk/bsd.java.mk | 591 ----------------------------------- ports-mgmt/portmk/Mk/bsd.tcl.mk | 145 --------- 4 files changed, 1320 deletions(-) delete mode 100644 ports-mgmt/portmk/Mk/bsd.apache.mk delete mode 100644 ports-mgmt/portmk/Mk/bsd.database.mk delete mode 100644 ports-mgmt/portmk/Mk/bsd.java.mk delete mode 100644 ports-mgmt/portmk/Mk/bsd.tcl.mk (limited to 'ports-mgmt') diff --git a/ports-mgmt/portmk/Mk/bsd.apache.mk b/ports-mgmt/portmk/Mk/bsd.apache.mk deleted file mode 100644 index ec1bb0d3c353..000000000000 --- a/ports-mgmt/portmk/Mk/bsd.apache.mk +++ /dev/null @@ -1,353 +0,0 @@ -#-*- mode: makefile; tab-width: 4; -*- -# ex:ts=4 -# -# $FreeBSD$ -# -# bsd.apache.mk - Apache related macros. -# Author: Clement Laforet -# -# Please view me with 4 column tabs! - -########################################################################## -# -# Variables definition -# USE_APACHE: Call this script. Values can be: -# : 1.3/13/2.0/20/2.1/1.3+/2.0+/2.1+ -# common*: common13, common20 and common21 -# apr: deal with apr stuff ;-) -# -.if defined(APACHE_COMPAT) -USE_APACHE=yes -.endif - -# Print warnings -_ERROR_MSG= : Error from bsd.apache.mk. -APACHE_SUPPORTED_VERSION= 13 20 21 -.if ${USE_APACHE:Mcommon*} != "" -AP_PORT_IS_SERVER= YES -.elif ${USE_APACHE:L} == apr -APR_DEPS= YES -.elif ${USE_APACHE:C/\.//:C/\+//:M[12][310]} != "" -AP_PORT_IS_MODULE= YES - -#### for backward compatibility -.elif ${USE_APACHE:L} == yes -. if defined(WITH_APACHE2) -APACHE_PORT?= www/apache20 -. else -APACHE_PORT?= www/apache13 -. endif -APXS?= ${LOCALBASE}/sbin/apxs -.if !defined(APACHE_COMPAT) -BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} -RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} -.endif -#### End of backward compatibility - -.else -IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE -.endif - -.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" -.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} == common21 -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-imap --disable-actions --disable-userdir \ - --disable-alias -.endif - -.if 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*} != "" -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} -_APACHE_MODULES+= ${SUEXEC_MODULES} -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}" \ - --${SUEXEC_CONFARGS}-bin="${PREFIX}/sbin/suexec" -. if defined(WITH_SUEXEC_UMASK) -CONFIGURE_ARGS+= --${SUEXEC_CONFARGS}-umask=${WITH_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 PORT_IS_SERVER #### - -.elif defined(APR_DEPS) -IGNORE= ${_ERROR_MSG} apr support is not yet implemented - -.elif defined(AP_PORT_IS_MODULE) -AP_VERSION= ${USE_APACHE:C/\.//} - -APXS?= ${LOCALBASE}/sbin/apxs -HTTPD?= ${LOCALBASE}/sbin/httpd - -MODULENAME?= ${PORTNAME} -SHORTMODNAME?= ${MODULENAME:S/mod_//} -SRC_FILE?= ${MODULENAME}.c -OVERRIDABLE_VARS= SRC_FILE MODULENAME SHORTMODNAME WRKSRC \ - PKGNAMESUFFIX - -.if exists(${HTTPD}) -AP_CUR_VERSION!= ${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p' -. if ${AP_CUR_VERSION} > 13 -APACHE_MPM!= ${APXS} -q MPM_NAME -. endif -.elif defined(APACHE_PORT) -AP_CUR_VERSION!= ${ECHO_CMD} ${APACHE_PORT} | ${SED} -ne 's,.*/apache\([0-9]*\).*,\1,p' -.endif - -.if defined(AP_CUR_VERSION) -VERSION_CHECK!= eval `${ECHO_CMD} "[ ${AP_VERSION} -eq ${AP_CUR_VERSION} ]" | ${SED} -e 's/- -eq/ -ge/ ; s/+ -eq/ -le/' ` ; ${ECHO_CMD} $${?} -. if ${VERSION_CHECK} == 1 -IGNORE= ${_ERROR_MSG} apache${AP_CUR_VERSION} is installed (or APACHE_PORT is defined) and port requires ${USE_APACHE} -. endif -APACHE_VERSION= ${AP_CUR_VERSION} -.else -AP_CUR_VERSION= none -. if !defined(APACHE_PORT) -#Fallback to smallest version... -APACHE_VERSION= ${AP_VERSION:C/\+//} -. endif -.endif - -.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 egal to APXS_PREFIX. -. endif -.endif - -.if ${APACHE_VERSION} == "20" -AP_BUILDEXT= la -PLIST_SUB+= APACHEMODDIR="libexec/apache2" \ - APACHEINCLUDEDIR="include/apache2" -# XXX We postpone www/apache2 => www/apache20 migration -#APACHE_PORT= www/apache${APACHE_VERSION} -APACHE_PORT= www/apache2 -.elif ${APACHE_VERSION} == "21" -AP_BUILDEXT= la -PLIST_SUB+= APACHEMODDIR="libexec/apache${APACHE_VERSION}" \ - APACHEINCLUDEDIR="include/apache${APACHE_VERSION}" -APACHE_PORT= www/apache${APACHE_VERSION} -.else -AP_BUILDEXT= so -PLIST_SUB+= APACHEMODDIR="libexec/apache" \ - APACHEINCLUDEDIR="include/apache" -APACHE_PORT?= www/apache13 -.endif -.for VAR in ${OVERRIDABLE_VARS} -. if defined(AP${APACHE_VERSION}_${VAR}) -${VAR} =${AP${APACHE_VERSION}_${VAR}} -. endif -.endfor - -BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} -RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} -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 - -.if defined(AP_PORT_IS_SERVER) -.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" - @${ECHO} "@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%%" > ${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 diff --git a/ports-mgmt/portmk/Mk/bsd.database.mk b/ports-mgmt/portmk/Mk/bsd.database.mk deleted file mode 100644 index 02b07bd0c291..000000000000 --- a/ports-mgmt/portmk/Mk/bsd.database.mk +++ /dev/null @@ -1,231 +0,0 @@ -# -*- mode: Makefile; tab-width: 4; -*- -# ex: ts=4 -# -# $FreeBSD$ -# - -.if defined(_POSTMKINCLUDED) && !defined(Database_Post_Include) - -Database_Post_Include= bsd.database.mk -Database_Include_MAINTAINER= vsevolod@FreeBSD.org - -# This file contains some routines to interact with different databases, such -# as mysql, postgresql and berkley DB. For including this file define macro -# USE_[DATABASE], for example USE_MYSQL. Defining macro like USE_[DATABASE]_VER -# or WANT_[DATABSE]_VER will include this file too. -# -## -# USE_MYSQL - Add MySQL client dependency. -# If no version is given (by the maintainer via the port or -# by the user via defined variable), try to find the -# currently installed version. Fall back to default if -# necessary (MySQL4.1 = 41). -# DEFAULT_MYSQL_VER -# - MySQL default version. Can be overriden within a port. -# Default: 41. -# WANT_MYSQL_VER -# - Maintainer can set an arbitrary version of MySQL by using it. -# BROKEN_WITH_MYSQL -# - This variable can be defined if the ports doesn't support -# one or more version of MySQL. -# MYSQL_VER - Internal variable for MySQL version. -# WITH_MYSQL_VER -# - User defined variable to set MySQL version. -## -# USE_PGSQL - Add PostgreSQL client dependency. -# If no version is given (by the maintainer via the port or -# by the user via defined variable), try to find the -# currently installed version. Fall back to default if -# necessary (PostgreSQL-7.4 = 74). -# DEFAULT_PGSQL_VER -# - PostgreSQL default version. Can be overridden within a port. -# Default: 74. -# WANT_PGSQL_VER -# - Maintainer can set an arbitrary version of PostgreSQL by -# using it. -# BROKEN_WITH_PGSQL -# - This variable can be defined if the ports doesn't support -# one or more versions of PostgreSQL. -## -# USE_BDB - Add Berkley DB library dependency. -# If no version is given (by the maintainer via the port or -# by the user via defined variable), try to find the -# currently installed version. Fall back to default if -# necessary (db41+). -## -# USE_SQLITE - Add dependency on sqlite library. Valid values are: -# 3 and 2. If version is not specified directly then -# sqlite3 is used (if USE_SQLITE= yes). - -.if defined(USE_MYSQL) -DEFAULT_MYSQL_VER?= 41 -# MySQL client version currently supported. -MYSQL323_LIBVER= 10 -MYSQL40_LIBVER= 12 -MYSQL41_LIBVER= 14 -MYSQL50_LIBVER= 15 - -# Setting/finding MySQL version we want. -.if exists(${LOCALBASE}/bin/mysql) -_MYSQL_VER!= ${LOCALBASE}/bin/mysql --version | ${SED} -e 's/.*Distrib \([0-9]\)\.\([0-9]*\).*/\1\2/' -.endif - -.if defined(WANT_MYSQL_VER) -.if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER} != ${WANT_MYSQL_VER} -BROKEN= The port wants mysql${WANT_MYSQL_VER}-client and you try to install mysql${WITH_MYSQL_VER}-client. -.endif -MYSQL_VER= ${WANT_MYSQL_VER} -.elif defined(WITH_MYSQL_VER) -MYSQL_VER= ${WITH_MYSQL_VER} -.else -.if defined(_MYSQL_VER) -MYSQL_VER= ${_MYSQL_VER} -.else -MYSQL_VER= ${DEFAULT_MYSQL_VER} -.endif -.endif # WANT_MYSQL_VER - -.if defined(_MYSQL_VER) -.if ${_MYSQL_VER} != ${MYSQL_VER} -BROKEN= MySQL versions mismatch: mysql${_MYSQL_VER}-client is installed and wanted version is mysql${MYSQL_VER}-client -.endif -.endif - -# And now we are checking if we can use it -.if defined(MYSQL${MYSQL_VER}_LIBVER) -.if defined(BROKEN_WITH_MYSQL) -. for VER in ${BROKEN_WITH_MYSQL} -. if (${MYSQL_VER} == "${VER}") -IGNORE= "Doesn't work with MySQL version : ${MYSQL_VER} (Doesn't support MySQL ${BROKEN_WITH_MYSQL})" -. endif -. endfor -.endif # BROKEN_WITH_MYSQL -LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client -.else -IGNORE= "Unknown MySQL version: ${MYSQL_VER}" -.endif # Check for correct libs -.endif # USE_MYSQL - -.if defined(USE_PGSQL) -DEFAULT_PGSQL_VER?= 74 -PGSQL73_LIBVER= 3 -PGSQL74_LIBVER= 3 -PGSQL80_LIBVER= 4 -PGSQL81_LIBVER= 4 - -# Setting/finding PostgreSQL version we want. -.if exists(${LOCALBASE}/bin/pg_config) -_PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)[^0-9].*/\1\2/p' -.endif - -.if defined(WANT_PGSQL_VER) && defined(_PGSQL_VER) && ${WANT_PGSQL_VER} != ${_PGSQL_VER} -BROKEN= the port wants postgresql${WANT_PGSQL_VER}-client but you have postgresql${_PGSQL_VER}-client installed -.endif - -.if defined(_PGSQL_VER) -PGSQL_VER= ${_PGSQL_VER} -.elif defined(WANT_PGSQL_VER) -PGSQL_VER= ${WANT_PGSQL_VER} -.else -PGSQL_VER= ${DEFAULT_PGSQL_VER} -.endif - -# And now we are checking if we can use it -.if defined(PGSQL${PGSQL_VER}_LIBVER) -.if defined(BROKEN_WITH_PGSQL) -. for VER in ${BROKEN_WITH_PGSQL} -. if (${PGSQL_VER} == "${VER}") -IGNORE= "Does not work with postgresql${PGSQL_VER}-client PostgresSQL \(${BROKEN_WITH_PGSQL} not supported\)" -. endif -. endfor -.endif # BROKEN_WITH_PGSQL -LIB_DEPENDS+= pq.${PGSQL${PGSQL_VER}_LIBVER}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client -.else -IGNORE= "Unknown PostgreSQL version: ${PGSQL_VER}" -.endif # Check for correct version -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -.endif # USE_PGSQL - - -.if defined(USE_BDB) - -_DB_PORTS= 2 3 40 41 42 43 40+ 41+ 42+ 43+ -# Dependence lines for different db versions -db2_DEPENDS= db2.0:${PORTSDIR}/databases/db2 -db3_DEPENDS= db3.3:${PORTSDIR}/databases/db3 -db40_DEPENDS= db4.0:${PORTSDIR}/databases/db4 -db41_DEPENDS= db41.1:${PORTSDIR}/databases/db41 -db42_DEPENDS= db-4.2.2:${PORTSDIR}/databases/db42 -db43_DEPENDS= db-4.3.0:${PORTSDIR}/databases/db43 -# Detect db4 versions by finding some files -db40_FIND= ${PREFIX}/include/db4/db.h -db41_FIND= ${PREFIX}/include/db41/db.h -db42_FIND= ${PREFIX}/include/db42/db.h -db43_FIND= ${PREFIX}/include/db43/db.h - -# For specifying 40+ 41+ 42+ -_DB_40P= 40 41 42 43 -_DB_41P= 41 42 43 -_DB_42P= 42 43 - -_WANT_BDB_VER= ${USE_BDB} - -# Assume the default bdb version as 41 -.if ${USE_BDB} == "yes" -_WANT_BDB_VER= 41+ -.endif - -# Detect bdb version -_FOUND= no - -.for bdb in ${_DB_PORTS} -.if ${_WANT_BDB_VER} == "${bdb}" && ${_FOUND} == "no" -_MATCHED_DB_VER:= ${bdb:S/+//} -. if ${_MATCHED_DB_VER} == "${bdb}" -# USE_BDB is exactly specified -LIB_DEPENDS+= ${db${bdb}_DEPENDS} -_FOUND= yes -.else -# USE_BDB is specified as VER+ -. for db4 in ${_DB_${_MATCHED_DB_VER}P} -. if exists(${db${db4}_FIND}) && ${_FOUND} == "no" -LIB_DEPENDS+= ${db${db4}_DEPENDS} -_FOUND= yes -. endif -. endfor -. if ${_FOUND} == "no" -# No existing db4 version is detected in system -LIB_DEPENDS+= ${db${_MATCHED_DB_VER}_DEPENDS} -_FOUND= yes -. endif -. endif -.endif -.endfor - -# USE_BDB is specified incorrectly, so mark this as BROKEN -.if ${_FOUND} == "no" -IGNORE= "Unknown bdb version: ${USE_BDB}" -.endif - -.endif # USE_BDB - -# Handling sqlite dependency -.if defined(USE_SQLITE) - -.if ${USE_SQLITE} == "yes" -_SQLITE_VER= 3 -.else -_SQLITE_VER= ${USE_SQLITE} -.endif - -.if ${_SQLITE_VER} != "3" && ${_SQLITE_VER} != "2" -IGNORE= "Unknown sqlite version: ${_SQLITE_VER}" -.endif - -LIB_DEPENDS+= sqlite${_SQLITE_VER}:${PORTSDIR}/databases/sqlite${_SQLITE_VER} - -.endif # defined(USE_SQLITE) - -.endif # defined(_POSTMKINCLUDED) && !defined(Database_Post_Include) diff --git a/ports-mgmt/portmk/Mk/bsd.java.mk b/ports-mgmt/portmk/Mk/bsd.java.mk deleted file mode 100644 index 114a8a6047f4..000000000000 --- a/ports-mgmt/portmk/Mk/bsd.java.mk +++ /dev/null @@ -1,591 +0,0 @@ -#-*- mode: Fundamental; tab-width: 4; -*- -# ex:ts=4 -# -# bsd.java.mk - Support for Java-based ports. -# -# Created by: Ernst de Haan -# -# For FreeBSD committers: -# Please send all suggested changes to the maintainer instead of committing -# them to CVS yourself. -# -# $FreeBSD$ -# - -.if !defined(Java_Include) - -Java_Include= bsd.java.mk -Java_Include_MAINTAINER= glewis@FreeBSD.org hq@FreeBSD.org - -#------------------------------------------------------------------------------- -# Variables that each port can define: -# -# USE_JAVA Should be defined to the remaining variables to have any -# effect -# -# JAVA_VERSION List of space-separated suitable java versions for the -# port. An optional "+" allows you to specify a range of -# versions. (allowed values: 1.1[+] 1.2[+] 1.3[+] 1.4[+]) -# -# JAVA_OS List of space-separated suitable JDK port operating systems -# for the port. (allowed values: native linux) -# -# JAVA_VENDOR List of space-separated suitable JDK port vendors for the -# port. (allowed values: freebsd bsdjava sun ibm blackdown) -# -# JAVA_BUILD When set, it means that the selected JDK port should be -# added to build dependencies for the port. -# -# JAVA_RUN This variable works exactly the same as JAVA_BUILD but -# regarding run dependencies. -# -# USE_JIKES Whether the port should or should not use jikes(1) to build. -# See Stage 6 header for further detail. -# -# USE_ANT Should be defined when the port uses Apache Ant. Ant is thus -# considered to be the sub-make command. When no 'do-build' -# target is defined by the port, a default one will be set -# that simply runs Ant according to MAKE_ENV, MAKE_ARGS and -# ALL_TARGET. Read the documentation in bsd.port.mk for more -# information. -# -#------------------------------------------------------------------------------- -# Variables defined for the port: -# -# JAVA_PORT The name of the JDK port. (e.g. 'java/jdk14') -# -# JAVA_PORT_VERSION The version of the JDK port. (e.g. '1.4') -# -# JAVA_PORT_OS The operating system used by the JDK port. (e.g. 'linux') -# -# JAVA_PORT_VENDOR The vendor of the JDK port. (e.g. 'sun') -# -# JAVA_PORT_OS_DESCRIPTION Description of the operating system used by the -# JDK port. (e.g. 'Linux') -# -# JAVA_PORT_VENDOR_DESCRIPTION Description of the vendor of the JDK port. -# (e.g. 'FreeBSD Foundation') -# -# JAVA_HOME Path to the installation directory of the JDK. (e.g. -# '/usr/local/jdk1.3.1') -# -# JAVAC Path to the Java compiler to use. (e.g. -# '/usr/local/jdk1.1.8/bin/javac' or '/usr/local/bin/jikes') -# -# JAR Path to the JAR tool to use. (e.g. -# '/usr/local/jdk1.2.2/bin/jar' or '/usr/local/bin/fastjar') -# -# APPLETVIEWER Path to the appletviewer utility. (e.g. -# '/usr/local/linux-jdk1.2.2/bin/appletviewer') -# -# JAVA Path to the java executable. Use this for executing Java -# programs. (e.g. '/usr/local/jdk1.3.1/bin/java') -# -# JAVADOC Path to the javadoc utility program. -# -# JAVAH Path to the javah program. -# -# JAVAP Path to the javap program. -# -# JAVA_KEYTOOL Path to the keytool utility program. This settings is -# availble only if the JDK is Java 1.2 or higher. -# -# JAVA_N2A Path to the native2ascii tool. -# -# JAVA_POLICYTOOL Path to the policytool program. This variable is available -# only if the JDK is Java 1.2 or higher. -# -# JAVA_SERIALVER Path to the serialver utility program. -# -# RMIC Path to the RMI stub/skeleton generator, rmic. -# -# RMIREGISTRY Path to the RMI registry program, rmiregistry. -# -# RMID Path to the RMI daemon program. This settings is only -# available if the JDK is Java 1.2 or higher. -# -# JAVA_CLASSES Path to the archive that contains the JDK class files. On -# JDK 1.2 or later, this is ${JAVA_HOME}/jre/lib/rt.jar. -# Earlier JDK's use ${JAVA_HOME}/lib/classes.zip. -# -# JAVASHAREDIR The base directory for all shared Java resources. -# -# JAVAJARDIR The directory where a port should install JAR files. -# -# JAVALIBDIR The directory where JAR files installed by other ports -# are located. -# -# HAVE_JIKES Defined and set to "yes" whenever the port will effectively -# use Jikes. See stage 6 header for further detail. -# -#------------------------------------------------------------------------------- -# Porter's hints -# -# To retrieve the Major version number from JAVA_PORT_VERSION (e.g. "1.3"): -# -> ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} -# -#------------------------------------------------------------------------------- -# There are the following stages: -# -# Stage 1: Define constants -# Stage 2: bsd.java.mk 1.0 backward compatibility -# Stage 3: Determine which JDK ports are installed and which JDK ports are -# suitable -# Stage 4: (merged in stage 3) -# Stage 5: Decide the exact JDK to use (or install) -# Stage 6: Add any dependencies if necessary -# Stage 7: Define all settings for the port to use -# - -. if defined(USE_JAVA) - - -#------------------------------------------------------------------------------- -# Stage 1: Define constants -# - -# System-global directories -# NB: If the value of JAVALIBDIR is altered here it must also be altered -# in java/javavmwrapper/Makefile. -JAVASHAREDIR?= ${PREFIX}/share/java -JAVAJARDIR?= ${JAVASHAREDIR}/classes -JAVALIBDIR?= ${LOCALBASE}/share/java/classes - -# Add appropriate substitutions to PLIST_SUB and LIST_SUB -PLIST_SUB+= JAVASHAREDIR="${JAVASHAREDIR:S,^${PREFIX}/,,}" \ - JAVAJARDIR="${JAVAJARDIR:S,^${PREFIX}/,,}" -SUB_LIST+= JAVASHAREDIR="${JAVASHAREDIR}" \ - JAVAJARDIR="${JAVAJARDIR}" \ - JAVALIBDIR="${JAVALIBDIR}" -. if defined(JAVA_VERSION) -SUB_LIST+= JAVA_VERSION="${JAVA_VERSION}" -. endif -. if defined(JAVA_VENDOR) -SUB_LIST+= JAVA_VENDOR="${JAVA_VENDOR}" -. endif -. if defined(JAVA_OS) -SUB_LIST+= JAVA_OS="${JAVA_OS}" -. endif - -# The complete list of Java versions, os and vendors supported. -__JAVA_VERSION_LIST= 1.1 1.2 1.3 1.4 1.5 -_JAVA_VERSION_LIST= ${__JAVA_VERSION_LIST} ${__JAVA_VERSION_LIST:S/$/+/} -_JAVA_OS_LIST= native linux -_JAVA_VENDOR_LIST= freebsd bsdjava sun blackdown ibm - -# Set all meta-information about JDK ports: -# port location, corresponding JAVA_HOME, JDK version, OS, vendor -_JAVA_PORT_NATIVE_FREEBSD_JDK_1_3_INFO= PORT=java/diablo-jdk13 HOME=${LOCALBASE}/diablo-jdk1.3.1 \ - VERSION=1.3.1 OS=native VENDOR=freebsd -_JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1_INFO= PORT=java/jdk11 HOME=${LOCALBASE}/jdk1.1.8 \ - VERSION=1.1.8 OS=native VENDOR=bsdjava -_JAVA_PORT_NATIVE_BSDJAVA_JDK_1_2_INFO= PORT=java/jdk12 HOME=${LOCALBASE}/jdk1.2.2 \ - VERSION=1.2.2 OS=native VENDOR=bsdjava -_JAVA_PORT_NATIVE_BSDJAVA_JDK_1_3_INFO= PORT=java/jdk13 HOME=${LOCALBASE}/jdk1.3.1 \ - VERSION=1.3.1 OS=native VENDOR=bsdjava -_JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4_INFO= PORT=java/jdk14 HOME=${LOCALBASE}/jdk1.4.2 \ - VERSION=1.4.2 OS=native VENDOR=bsdjava -_JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5_INFO= PORT=java/jdk15 HOME=${LOCALBASE}/jdk1.5.0 \ - VERSION=1.5.0 OS=native VENDOR=bsdjava -_JAVA_PORT_LINUX_BLACKDOWN_JDK_1_2_INFO= PORT=java/linux-blackdown-jdk12 HOME=${LOCALBASE}/linux-blackdown-jdk1.2.2 \ - VERSION=1.2.2 OS=linux VENDOR=blackdown -_JAVA_PORT_LINUX_BLACKDOWN_JDK_1_3_INFO= PORT=java/linux-blackdown-jdk13 HOME=${LOCALBASE}/linux-blackdown-jdk1.3.1 \ - VERSION=1.3.1 OS=linux VENDOR=blackdown -_JAVA_PORT_LINUX_BLACKDOWN_JDK_1_4_INFO= PORT=java/linux-blackdown-jdk14 HOME=${LOCALBASE}/linux-blackdown-jdk1.4.2 \ - VERSION=1.4.2 OS=linux VENDOR=blackdown -_JAVA_PORT_LINUX_IBM_JDK_1_3_INFO= PORT=java/linux-ibm-jdk13 HOME=${LOCALBASE}/linux-ibm-jdk1.3.1 \ - VERSION=1.3.1 OS=linux VENDOR=ibm -_JAVA_PORT_LINUX_IBM_JDK_1_4_INFO= PORT=java/linux-ibm-jdk14 HOME=${LOCALBASE}/linux-ibm-jdk1.4.2 \ - VERSION=1.4.1 OS=linux VENDOR=ibm -_JAVA_PORT_LINUX_SUN_JDK_1_2_INFO= PORT=java/linux-sun-jdk12 HOME=${LOCALBASE}/linux-sun-jdk1.2.2 \ - VERSION=1.2.2 OS=linux VENDOR=sun -_JAVA_PORT_LINUX_SUN_JDK_1_3_INFO= PORT=java/linux-sun-jdk13 HOME=${LOCALBASE}/linux-sun-jdk1.3.1 \ - VERSION=1.3.1 OS=linux VENDOR=sun -_JAVA_PORT_LINUX_SUN_JDK_1_4_INFO= PORT=java/linux-sun-jdk14 HOME=${LOCALBASE}/linux-sun-jdk1.4.2 \ - VERSION=1.4.2 OS=linux VENDOR=sun - -# Verbose description for each VENDOR -_JAVA_VENDOR_freebsd= "FreeBSD Foundation" -_JAVA_VENDOR_bsdjava= "BSD Java Porting Team" -_JAVA_VENDOR_blackdown= Blackdown -_JAVA_VENDOR_ibm= IBM -_JAVA_VENDOR_sun= Sun - -# Verbose description for each OS -_JAVA_OS_native= Native -_JAVA_OS_linux= Linux - -# Enforce preferred Java ports according to OS -. if ${ARCH} == "amd64" -_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 -. else -_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4 -. endif - -# List all JDK ports -__JAVA_PORTS_ALL= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 \ - JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4 \ - JAVA_PORT_NATIVE_BSDJAVA_JDK_1_3 \ - JAVA_PORT_NATIVE_FREEBSD_JDK_1_3 \ - JAVA_PORT_NATIVE_BSDJAVA_JDK_1_2 \ - JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1 \ - JAVA_PORT_LINUX_SUN_JDK_1_4 \ - JAVA_PORT_LINUX_SUN_JDK_1_3 \ - JAVA_PORT_LINUX_SUN_JDK_1_2 \ - JAVA_PORT_LINUX_BLACKDOWN_JDK_1_4 \ - JAVA_PORT_LINUX_BLACKDOWN_JDK_1_3 \ - JAVA_PORT_LINUX_BLACKDOWN_JDK_1_2 \ - JAVA_PORT_LINUX_IBM_JDK_1_4 \ - JAVA_PORT_LINUX_IBM_JDK_1_3 -_JAVA_PORTS_ALL= ${JAVA_PREFERRED_PORTS} \ - ${_JAVA_PREFERRED_PORTS} \ - ${__JAVA_PORTS_ALL} - -# Set the name of the file that indicates that a JDK is indeed installed, as a -# relative path within the JAVA_HOME directory. -_JDK_FILE=bin/javac - -# Set the path to Jikes and define the Jikes dependency -_JIKES_PATH= ${LOCALBASE}/bin/jikes -DEPEND_JIKES= ${_JIKES_PATH}:${PORTSDIR}/java/jikes - - -#------------------------------------------------------------------------------- -# Stage 2: bsd.java.mk 1.0 backward compatibility -# - -# First detect if we are using bsd.java.mk v1.0 -_USE_BSD_JAVA_MK_1_0!= ${ECHO_CMD} "${_JAVA_VERSION_LIST}" \ - | ${TR} " " "\n" \ - | ${GREP} -q "^${USE_JAVA}$$" && ${ECHO_CMD} "yes" || ${ECHO_CMD} "no" -. if (${_USE_BSD_JAVA_MK_1_0} == "yes") -# Then affect the variables so that we may use v2.0 -# USE_JAVA --> JAVA_VERSION -. if !defined(JAVA_VERSION) -JAVA_VERSION= ${USE_JAVA} -. else -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: The port is using bsd.java.mk 1.0 but sets a value for JAVA_VERSION. This may cause problems." - @${FALSE} -. endif -# NO_{BUILD|RUN}_DEPENDS_JAVA --> JAVA_{BUILD|RUN} -. if defined(NO_BUILD_DEPENDS_JAVA) && defined(NO_RUN_DEPENDS_JAVA) -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: NO_BUILD_DEPENDS_JAVA and NO_RUN_DEPENDS_JAVA cannot be set at the same time."; - @${FALSE} -. else -. if !defined(NO_BUILD_DEPENDS_JAVA) && !defined(NO_BUILD) -JAVA_BUILD= jdk -. endif -. if !defined(NO_RUN_DEPENDS_JAVA) -JAVA_RUN= jdk -. endif -. endif -# NEED_JAVAC --> JAVA_{BUILD|RUN}={jdk|jre} -. if defined(NEED_JAVAC) -. if (${NEED_JAVAC:U} == "YES") -JAVA_BUILD= jdk -. elif (${NEED_JAVAC:U} == "NO") -JAVA_BUILD= jre -. else -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: \"${NEED_JAVAC}\" is not a valid value for NEED_JAVAC. It should be YES or NO, or it should be undefined."; - @${FALSE} -. endif -. endif -. endif - - -#------------------------------------------------------------------------------- -# Stage 3: Determine which JDK ports are suitable and which JDK ports are -# suitable -# - -# From here, the port is using bsd.java.mk v2.0 - -# Error checking: defined JAVA_{HOME,PORT,PORT_VERSION,PORT_VENDOR,PORT_OS} -. for variable in JAVA_HOME JAVA_PORT JAVA_PORT_VERSION JAVA_PORT_VENDOR JAVA_PORT_OS -. if defined(${variable}) -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Environment error: \"${variable}\" should not be defined." - @${FALSE} -. endif -. endfor - -# Error checking: JAVA_VERSION -_JAVA_VERSION_LIST_REGEXP!= ${ECHO_CMD} "${_JAVA_VERSION_LIST}" | ${SED} "s/ /\\\|/g" -_ERROR_CHECKING_JAVA_VERSION!= ${ECHO_CMD} "${JAVA_VERSION}" | ${TR} " " "\n" \ - | ${GREP} -v "${_JAVA_VERSION_LIST_REGEXP}" || true -. if (${_ERROR_CHECKING_JAVA_VERSION} != "") -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: \"${JAVA_VERSION}\" is not a valid value for JAVA_VERSION. It should be one or more of: ${__JAVA_VERSION_LIST} (with an optional \"+\" suffix.)"; - @${FALSE} -. endif - -# Error checking: JAVA_VENDOR -_JAVA_VENDOR_LIST_REGEXP!= ${ECHO_CMD} "${_JAVA_VENDOR_LIST}" | ${SED} "s/ /\\\|/g" -_ERROR_CHECKING_JAVA_VENDOR!= ${ECHO_CMD} "${JAVA_VENDOR}" | ${TR} " " "\n" \ - | ${GREP} -v "${_JAVA_VENDOR_LIST_REGEXP}" || true -. if (${_ERROR_CHECKING_JAVA_VENDOR} != "") -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: \"${JAVA_VENDOR}\" is not a valid value for JAVA_VENDOR. It should be one or more of: ${_JAVA_VENDOR_LIST}"; - @${FALSE} -. endif - -# Error checking: JAVA_OS -_JAVA_OS_LIST_REGEXP!= ${ECHO_CMD} "${_JAVA_OS_LIST}" | ${SED} "s/ /\\\|/g" -_ERROR_CHECKING_JAVA_OS!= ${ECHO_CMD} "${JAVA_OS}" | ${TR} " " "\n" \ - | ${GREP} -v "${_JAVA_OS_LIST_REGEXP}" || true -. if (${_ERROR_CHECKING_JAVA_OS} != "") -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: \"${JAVA_OS}\" is not a valid value for JAVA_OS. It should be one or more of: ${_JAVA_OS_LIST}"; - @${FALSE} -. endif - -# Set default values for JAVA_BUILD and JAVA_RUN -# When nothing is set, assume JAVA_BUILD=jdk and JAVA_RUN=jre -# (unless NO_BUILD is set) -. if !defined(JAVA_EXTRACT) && !defined(JAVA_BUILD) && !defined(JAVA_RUN) -. if !defined(NO_BUILD) -JAVA_BUILD= jdk -. endif -JAVA_RUN= jre -. endif - -# JDK dependency setting -. undef _JAVA_PORTS_INSTALLED -. undef _JAVA_PORTS_POSSIBLE -. if defined(JAVA_VERSION) -_JAVA_VERSION= ${JAVA_VERSION:S/1.1+/1.1 1.2 1.3 1.4 1.5/:S/1.2+/1.2 1.3 1.4 1.5/:S/1.3+/1.3 1.4 1.5/:S/1.4+/1.4 1.5/:S/1.5+/1.5/} -. else -_JAVA_VERSION= ${__JAVA_VERSION_LIST} -. endif -. if defined(JAVA_OS) -_JAVA_OS= ${JAVA_OS} -. else -_JAVA_OS= ${_JAVA_OS_LIST} -. endif -. if defined(JAVA_VENDOR) -_JAVA_VENDOR= ${JAVA_VENDOR} -. else -_JAVA_VENDOR= ${_JAVA_VENDOR_LIST} -. endif - -. for A_JAVA_PORT in ${_JAVA_PORTS_ALL} -A_JAVA_PORT_INFO:= ${A_JAVA_PORT:S/^/\${_/:S/$/_INFO}/} -A_JAVA_PORT_HOME= ${A_JAVA_PORT_INFO:MHOME=*:S,HOME=,,} -A_JAVA_PORT_VERSION= ${A_JAVA_PORT_INFO:MVERSION=*:C/VERSION=([0-9])\.([0-9])(.*)/\1.\2/} -A_JAVA_PORT_OS= ${A_JAVA_PORT_INFO:MOS=*:S,OS=,,} -A_JAVA_PORT_VENDOR= ${A_JAVA_PORT_INFO:MVENDOR=*:S,VENDOR=,,} -A_JAVA_PORT_INSTALLED!= ${TEST} -x "${A_JAVA_PORT_HOME}/${_JDK_FILE}" \ - && ${ECHO_CMD} "${A_JAVA_PORT}" \ - || ${TRUE} -__JAVA_PORTS_INSTALLED!= ${ECHO_CMD} "${__JAVA_PORTS_INSTALLED} ${A_JAVA_PORT_INSTALLED}" -A_JAVA_PORT_POSSIBLE!= ${ECHO_CMD} "${_JAVA_VERSION}" | ${GREP} -q "${A_JAVA_PORT_VERSION}" \ - && ${ECHO_CMD} "${_JAVA_OS}" | ${GREP} -q "${A_JAVA_PORT_OS}" \ - && ${ECHO_CMD} "${_JAVA_VENDOR}" | ${GREP} -q "${A_JAVA_PORT_VENDOR}" \ - && ${ECHO_CMD} "${A_JAVA_PORT}" \ - || ${TRUE} -__JAVA_PORTS_POSSIBLE!= ${ECHO_CMD} "${__JAVA_PORTS_POSSIBLE} ${A_JAVA_PORT_POSSIBLE}" -. endfor -_JAVA_PORTS_INSTALLED= ${__JAVA_PORTS_INSTALLED:C/ [ ]+/ /g} -_JAVA_PORTS_POSSIBLE= ${__JAVA_PORTS_POSSIBLE:C/ [ ]+/ /g} - - -#------------------------------------------------------------------------------- -# Stage 5: Decide the exact JDK to use (or install) -# - -# Find an installed JDK port that matches the requirements of the port - -. undef _JAVA_PORTS_INSTALLED_POSSIBLE - -. for A_JAVA_PORT in ${_JAVA_PORTS_POSSIBLE} -A_JAVA_PORT_INSTALLED_POSSIBLE!= ${ECHO_CMD} "${_JAVA_PORTS_INSTALLED}" | ${GREP} -q "${A_JAVA_PORT}" \ - && ${ECHO_CMD} "${A_JAVA_PORT}" || ${TRUE} -__JAVA_PORTS_INSTALLED_POSSIBLE!= ${ECHO_CMD} "${__JAVA_PORTS_INSTALLED_POSSIBLE} ${A_JAVA_PORT_INSTALLED_POSSIBLE}" -. endfor -_JAVA_PORTS_INSTALLED_POSSIBLE= ${__JAVA_PORTS_INSTALLED_POSSIBLE:C/ [ ]+/ /g} - -. if ${_JAVA_PORTS_INSTALLED_POSSIBLE} != "" -_JAVA_PORT!= ${ECHO_CMD} "${_JAVA_PORTS_INSTALLED_POSSIBLE}" \ - | ${AWK} '{ print $$1 }' - -# If no installed JDK port fits, then pick one from the list of possible ones -. else -_JAVA_PORT!= ${ECHO_CMD} "${_JAVA_PORTS_POSSIBLE}" \ - | ${AWK} '{ print $$1 }' -. endif - -_JAVA_PORT_INFO:= ${_JAVA_PORT:S/^/\${_/:S/$/_INFO}/} -JAVA_PORT= ${_JAVA_PORT_INFO:MPORT=*:S,PORT=,,} -JAVA_HOME= ${_JAVA_PORT_INFO:MHOME=*:S,HOME=,,} -JAVA_PORT_VERSION= ${_JAVA_PORT_INFO:MVERSION=*:S,VERSION=,,} -JAVA_PORT_OS= ${_JAVA_PORT_INFO:MOS=*:S,OS=,,} -JAVA_PORT_VENDOR= ${_JAVA_PORT_INFO:MVENDOR=*:S,VENDOR=,,} - -JAVA_PORT_VENDOR_DESCRIPTION:= ${JAVA_PORT_VENDOR:S/^/\${_JAVA_VENDOR_/:S/$/}/} -JAVA_PORT_OS_DESCRIPTION:= ${JAVA_PORT_OS:S/^/\${_JAVA_OS_/:S/$/}/} - -#------------------------------------------------------------------------------- -# Stage 6: Add any dependencies if necessary -# - -# Jikes support: If USE_JIKES is set to YES, then use Jikes. If USE_JIKES is -# set to NO, then don't use it. If it is set to a different value, then fail -# with an error message. Otherwise USE_JIKES is not set, in which case it is -# checked if Jikes is already installed. If it is, then it will be used, -# otherwise it will not be used. -# -# As a result, HAVE_JIKES is defined and set to "yes" when Jikes is used by the -# port according to the above policy. - -. undef HAVE_JIKES - -# Enforce USE_JIKES=NO if not defined and using Java 1.5 -# XXX: This is a temporary fix to be removed when Jikes supports Java 1.5 -. if ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} == "1.5" -USE_JIKES?= NO -. endif -# First test if USE_JIKES has a valid value -. if defined(USE_JIKES) && !(${USE_JIKES:U} == "YES") && !(${USE_JIKES:U} == "NO") -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: \"${USE_JIKES}\" is not a valid value for USE_JIKES. It should be YES or NO, or it should be undefined."; - @${FALSE} -. endif -# Then test if jikes is needed or available: -> HAVE_JIKES=yes -. if (exists(${_JIKES_PATH}) && (!defined(USE_JIKES) || (${USE_JIKES:U} == "YES"))) \ - || (defined(USE_JIKES) && (${USE_JIKES:U} == "YES")) -HAVE_JIKES= yes -. endif - -# Add jikes port to the dependencies if needed -. if !defined(NO_BUILD) && defined(HAVE_JIKES) -BUILD_DEPENDS+= ${DEPEND_JIKES} -. endif - -# Ant Support: USE_ANT --> JAVA_BUILD=jdk -. if defined(USE_ANT) -JAVA_BUILD= jdk -. endif - -# Add the JDK port to the dependencies -DEPEND_JAVA= ${JAVA}:${PORTSDIR}/${JAVA_PORT} -. if defined(JAVA_EXTRACT) -EXTRACT_DEPENDS+= ${DEPEND_JAVA} -. endif -. if defined(JAVA_BUILD) -. if defined(NO_BUILD) -check-makevars:: - @${ECHO_CMD} "${PKGNAME}: Makefile error: JAVA_BUILD and NO_BUILD cannot be set at the same time."; - @${FALSE} -. endif -BUILD_DEPENDS+= ${DEPEND_JAVA} -. endif -. if defined(JAVA_RUN) -RUN_DEPENDS+= ${DEPEND_JAVA} -. endif - -# Ant support: default do-build target -. if defined(USE_ANT) -ANT?= ${LOCALBASE}/bin/ant -MAKE_ENV+= JAVA_HOME=${JAVA_HOME} -. if defined(HAVE_JIKES) -MAKE_ARGS+= -Dbuild.compiler=jikes -. endif -BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant -ALL_TARGET?= -. if !target(do-build) -do-build: - @(cd ${BUILD_WRKSRC}; \ - ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET}) -. endif -. endif - -#----------------------------------------------------------------------------- -# Stage 7: Define all settings for the port to use -# -# At this stage both JAVA_HOME and JAVA_PORT are definitely given a value. -# -# Define the location of the Java compiler. If HAVE_JIKES is defined, then -# use Jikes. - -# Only define JAVAC if a JDK is needed or USE_JIKES=yes -. undef JAVAC - -# Then test if a JAVAC has to be set (JAVA_BUILD==jdk) -. if defined(JAVA_BUILD) -. if (${JAVA_BUILD:U} == "JDK") && !defined(JAVAC) -# Use jikes if available and not explicitly forbidden (see Stage 6) -. if defined(HAVE_JIKES) -JAVAC?= ${_JIKES_PATH} -bootclasspath ${JAVA_CLASSES} -# Otherwise use 'javac' -. else -JAVAC?= ${JAVA_HOME}/bin/javac -. endif -. endif -. endif - -# Define the location of some more executables. -APPLETVIEWER?= ${JAVA_HOME}/bin/appletviewer -JAR?= ${JAVA_HOME}/bin/jar -JAVA?= ${JAVA_HOME}/bin/java -JAVADOC?= ${JAVA_HOME}/bin/javadoc -JAVAH?= ${JAVA_HOME}/bin/javah -JAVAP?= ${JAVA_HOME}/bin/javap -JAVA_N2A?= ${JAVA_HOME}/bin/native2ascii -JAVA_SERIALVER?=${JAVA_HOME}/bin/serialver -RMIC?= ${JAVA_HOME}/bin/rmic -RMIREGISTRY?= ${JAVA_HOME}/bin/rmiregistry - -# Some executables only exists in JDK 1.2 and up -. if ${_JAVA_PORT} != "JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1" -JAVA_KEYTOOL?= ${JAVA_HOME}/bin/keytool -JAVA_POLICYTOOL?= ${JAVA_HOME}/bin/policytool -RMID?= ${JAVA_HOME}/bin/rmid -. endif - -# Set the location of the ZIP or JAR file with all standard Java classes. -. if ${_JAVA_PORT} == "JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1" -JAVA_CLASSES= ${JAVA_HOME}/lib/classes.zip -. else -JAVA_CLASSES= ${JAVA_HOME}/jre/lib/rt.jar -. endif - - -#------------------------------------------------------------------------------- -# Additional Java support - -# Debug target -# Use it to check Java dependency while porting -java-debug: - @${ECHO_CMD} "_USE_BSD_JAVA_MK_1_0= ${_USE_BSD_JAVA_MK_1_0}" - @${ECHO_CMD} - @${ECHO_CMD} "# User specified parameters:" - @${ECHO_CMD} "JAVA_VERSION= ${JAVA_VERSION} (${_JAVA_VERSION})" - @${ECHO_CMD} "JAVA_OS= ${JAVA_OS} (${_JAVA_OS})" - @${ECHO_CMD} "JAVA_VENDOR= ${JAVA_VENDOR} (${_JAVA_VENDOR})" - @${ECHO_CMD} "JAVA_BUILD= ${JAVA_BUILD}" - @${ECHO_CMD} "JAVA_RUN= ${JAVA_RUN}" - @${ECHO_CMD} "JAVA_EXTRACT= ${JAVA_EXTRACT}" - @${ECHO_CMD} - @${ECHO_CMD} "# JDK port dependency selection process:" - @${ECHO_CMD} "_JAVA_PORTS_POSSIBLE= ${_JAVA_PORTS_POSSIBLE}" - @${ECHO_CMD} "_JAVA_PORTS_INSTALLED= ${_JAVA_PORTS_INSTALLED}" - @${ECHO_CMD} "_JAVA_PORTS_INSTALLED_POSSIBLE= ${_JAVA_PORTS_INSTALLED_POSSIBLE}" - @${ECHO_CMD} "_JAVA_PORT= ${_JAVA_PORT}" - @${ECHO_CMD} "_JAVA_PORT_INFO= ${_JAVA_PORT_INFO:S/\t/ /}" - @${ECHO_CMD} - @${ECHO_CMD} "# Selected JDK port:" - @${ECHO_CMD} "JAVA_PORT= ${JAVA_PORT}" - @${ECHO_CMD} "JAVA_HOME= ${JAVA_HOME}" - @${ECHO_CMD} "JAVA_PORT_VERSION= ${JAVA_PORT_VERSION}" - @${ECHO_CMD} "JAVA_PORT_OS= ${JAVA_PORT_OS} (${JAVA_PORT_OS_DESCRIPTION})" - @${ECHO_CMD} "JAVA_PORT_VENDOR= ${JAVA_PORT_VENDOR} (${JAVA_PORT_VENDOR_DESCRIPTION})" - @${ECHO_CMD} - @${ECHO_CMD} "# Additional variables:" - @${ECHO_CMD} "JAVAC= ${JAVAC}" - @${ECHO_CMD} "JAVA_CLASSES= ${JAVA_CLASSES}" - -. endif -.endif diff --git a/ports-mgmt/portmk/Mk/bsd.tcl.mk b/ports-mgmt/portmk/Mk/bsd.tcl.mk deleted file mode 100644 index c0bfed148156..000000000000 --- a/ports-mgmt/portmk/Mk/bsd.tcl.mk +++ /dev/null @@ -1,145 +0,0 @@ -# -*- mode: Makefile; tab-width: 4; -*- -# ex: ts=4 -# -# $FreeBSD$ -# - -.if !defined(_POSTMKINCLUDED) && !defined(Tcl_Pre_Include) - -Tcl_Pre_Include= bsd.tcl.mk -Tcl_Include_MAINTAINER= vsevolod@FreeBSD.org - -# USE_TCL: Depend on tcl to run. In case of incompatible APIs of different -# TCL versions the version can be specified directly. If version -# is not specified (USE_TCL=yes) then the latest version is -# used (8.4 currently). -# Available values are: 84, 83, 82, 81 and 80. -# -# USE_TK: Depend on tk to run. In case of incompatible APIs of different -# TK versions the version can be specified directly. If version -# is not specified (USE_TK=yes) then the latest version is -# used (8.4 currently). -# Available values are: 84, 83, 82, 81 and 80. -## -# TCL_LIBDIR: Path where tcl libraries can be found -# -# TCL_INCLUDEDIR: Path where tcl C headers can be found -## -# TK_LIBDIR: Path where tk libraries can be found -# -# TK_INCLUDEDIR: Path where tk C headers can be found -## -# TCLSH: Path to tclsh executable respecting tcl version -# -# WISH: Path to wish executable respecting tk version -## -# PATCH_TCL_SCRIPTS: List of tcl scripts that need to be patched to replace tclsh -# calls to tclsh${TK_VER} calls. Note that this implies USE_REINPLACE -# as REINPLACE_CMD is used for patching. Also note that post-patch -# target is used. -# -# PATCH_TK_SCRIPTS: List of tcl scripts that need to be patched to replace wish -# calls to wish${TK_VER} calls. Note that this implies USE_REINPLACE -# as REINPLACE_CMD is used for patching. Also note that post-patch -# target is used. - -.if defined(USE_TCL) || defined(USE_TCL_BUILD) - -_TCL_VERSIONS= 84 83 82 81 80 - -.if defined(USE_TCL_BUILD) -USE_TCL= ${USE_TCL_BUILD} -_BUILD= yes -.endif - -.if ${USE_TCL} == "yes" -USE_TCL= 84 -.endif - -TCL_VER:= ${USE_TCL:S/8/8./} - -# Special case -.if ${USE_TCL} == "81" -USE_TCL= tcl81-thread -.endif - -_FOUND= no -.for ver in ${_TCL_VERSIONS} -. if ${USE_TCL} == ${ver} -_FOUND= yes -. if defined(_BUILD) -BUILD_DEPENDS+= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${USE_TCL} -. else -RUN_DEPENDS+= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${USE_TCL} -. endif -TCL_INCLUDEDIR= ${LOCALBASE}/include/tcl${TCL_VER} -TCL_LIBDIR= ${LOCALBASE}/lib/tcl${TCL_VER} -TCLSH= ${LOCALBASE}/bin/tclsh${TCL_VER} -. endif -.endfor - -.if ${_FOUND} == "no" -IGNORE= "Unknown TCL version specified: ${USE_TCL}" -.endif -.endif # defined(USE_TCL) - -.if defined(USE_TK) - -_TK_VERSIONS= 84 83 82 81 80 - -.if ${USE_TK} == "yes" -USE_TK= 84 -.endif - -TK_VER:= ${USE_TK:S/8/8./} - -.if defined(USE_TCL) && ${TCL_VER} != ${TK_VER} -IGNORE= "TCL and TK versions must be equal (${TCL_VER} vs ${TK_VER})" -.endif - -_FOUND= no -.for ver in ${_TK_VERSIONS} -. if ${USE_TK} == ${ver} -_FOUND= yes -RUN_DEPENDS+= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${USE_TK} -TCL_INCLUDEDIR= ${LOCALBASE}/include/tcl${TK_VER} -TCL_LIBDIR= ${LOCALBASE}/lib/tcl${TK_VER} -TK_INCLUDEDIR= ${LOCALBASE}/include/tk${TK_VER} -TK_LIBDIR= ${LOCALBASE}/lib/tk${TK_VER} -TCLSH= ${LOCALBASE}/bin/tclsh${TK_VER} -WISH= ${LOCALBASE}/bin/wish${TK_VER} -. endif -.endfor - -.if ${_FOUND} == "no" -IGNORE= "Unknown TK version specified: ${USE_TK}" -.endif -.endif # defined(USE_TK) - -.if defined(PATCH_TCL_SCRIPTS) || defined (PATCH_TK_SCRIPTS) -USE_REINPLACE= yes -.endif - -.endif # !defined(_POSTMKINCLUDED) && !defined(Tcl_Pre_Include) - -.if defined(_POSTMKINCLUDED) && !defined(Tcl_Post_Include) - -Tcl_Post_Include= bsd.tcl.mk - -.if defined(PATCH_TCL_SCRIPTS) || defined (PATCH_TK_SCRIPTS) -.if !target(post-patch) -post-patch: -.if defined(PATCH_TCL_SCRIPTS) && defined(TCLSH) -. for tcl_script in ${PATCH_TCL_SCRIPTS} - @${REINPLACE_CMD} -e 's,tclsh,${TCLSH},' ${WRKSRC}/${tcl_script} -. endfor -.endif -.if defined(PATCH_TK_SCRIPTS) && defined(WISH) -. for tk_script in ${PATCH_TK_SCRIPTS} - @${REINPLACE_CMD} -e 's,wish,${WISH},' ${WRKSRC}/${tk_script} -. endfor -.endif -.endif # !target(post-patch) -.endif # defined(PATCH_TCL_SCRIPTS) || defined (PATCH_TK_SCRIPTS) - -.endif # defined(_POSTMKINCLUDED) && !defined(Tcl_Post_Include) -- cgit