summaryrefslogtreecommitdiff
path: root/mk/pgsql.buildlink3.mk
diff options
context:
space:
mode:
authortv <tv>2006-06-07 15:25:38 +0000
committertv <tv>2006-06-07 15:25:38 +0000
commit9f8f8b56853fbb6010afc3995ea972f81cfd5f3d (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /mk/pgsql.buildlink3.mk
parent78fd8ab75e985cdaa025217d055b5691eb2bef70 (diff)
downloadpkgsrc-tv_derecurse.tar.gz
EOL the tv-derecurse branch; it has become too outdated. The last livetv_derecurse
revision can be fetched at the tv-derecurse-eol tag.
Diffstat (limited to 'mk/pgsql.buildlink3.mk')
-rw-r--r--mk/pgsql.buildlink3.mk100
1 files changed, 0 insertions, 100 deletions
diff --git a/mk/pgsql.buildlink3.mk b/mk/pgsql.buildlink3.mk
deleted file mode 100644
index 92f894984aa..00000000000
--- a/mk/pgsql.buildlink3.mk
+++ /dev/null
@@ -1,100 +0,0 @@
-# $NetBSD: pgsql.buildlink3.mk,v 1.3.2.3 2005/05/17 18:29:44 tv Exp $
-
-.if !defined(PGVERSION_MK)
-PGVERSION_MK= defined
-
-.include "../../mk/bsd.prefs.mk"
-
-PGSQL_VERSION_DEFAULT?= 74
-PGSQL_VERSIONS_ACCEPTED?= 80 74 73
-
-# transform the list into individual variables
-.for pv in ${PGSQL_VERSIONS_ACCEPTED}
-_PGSQL_VERSION_${pv}_OK= yes
-.endfor
-
-.if ${_OPSYS_SHLIB_TYPE} == "dylib"
-PG_LIB_EXT=dylib
-.else
-PG_LIB_EXT=so
-.endif
-
-# check what is installed
-.if ${OPSYS} == "Darwin"
-.if exists(${LOCALBASE}/lib/libecpg.5.0.dylib)
-_PGSQL_VERSION_80_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.4.1.dylib)
-_PGSQL_VERSION_74_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.3.dylib)
-_PGSQL_VERSION_73_INSTALLED=yes
-.endif
-.else
-.if exists(${LOCALBASE}/lib/libecpg.so.5.0)
-_PGSQL_VERSION_80_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.so.4.1)
-_PGSQL_VERSION_74_INSTALLED= yes
-.endif
-.if exists(${LOCALBASE}/lib/libecpg.so.3)
-_PGSQL_VERSION_73_INSTALLED=yes
-.endif
-.endif
-
-# if a version is explicitely required, take it
-.if defined(PGSQL_VERSION_REQD)
-_PGSQL_VERSION= ${PGSQL_VERSION_REQD}
-.endif
-# if the default is already installed, it is first choice
-.if !defined(_PGSQL_VERSION)
-.if defined(_PGSQL_VERSION_${PGSQL_VERSION_DEFAULT}_OK)
-.if defined(_PGSQL_VERSION_${PGSQL_VERSION_DEFAULT}_INSTALLED)
-_PGSQL_VERSION= ${PGSQL_VERSION_DEFAULT}
-.endif
-.endif
-.endif
-# prefer an already installed version, in order of "accepted"
-.if !defined(_PGSQL_VERSION)
-.for pv in ${PGSQL_VERSIONS_ACCEPTED}
-.if defined(_PGSQL_VERSION_${pv}_INSTALLED)
-_PGSQL_VERSION?= ${pv}
-.else
-# keep information as last resort - see below
-_PGSQL_VERSION_FIRSTACCEPTED?= ${pv}
-.endif
-.endfor
-.endif
-# if the default is OK for the addon pkg, take this
-.if !defined(_PGSQL_VERSION)
-.if defined(_PGSQL_VERSION_${PGSQL_VERSION_DEFAULT}_OK)
-_PGSQL_VERSION= ${PGSQL_VERSION_DEFAULT}
-.endif
-.endif
-# take the first one accepted by the package
-.if !defined(_PGSQL_VERSION)
-_PGSQL_VERSION= ${_PGSQL_VERSION_FIRSTACCEPTED}
-.endif
-
-#
-# set variables for the version we decided to use:
-#
-.if ${_PGSQL_VERSION} == "80"
-PGSQL_TYPE= postgresql80-client
-PGPKGSRCDIR= ../../databases/postgresql80-client
-.elif ${_PGSQL_VERSION} == "74"
-PGSQL_TYPE= postgresql74-lib
-PGPKGSRCDIR= ../../databases/postgresql74-lib
-.elif ${_PGSQL_VERSION} == "73"
-PGSQL_TYPE= postgresql73-lib
-PGPKGSRCDIR= ../../databases/postgresql73-lib
-.else
-# force an error
-PGSQL_TYPE= none
-PKG_SKIP_REASON+= "${_PGSQL_VERSION} is not a valid package"
-.endif
-
-.include "${PGPKGSRCDIR}/buildlink3.mk"
-PGSQL_PREFIX= ${BUILDLINK_PREFIX.${PGSQL_TYPE}}
-
-.endif # PGVERSION_MK