summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/db/buildlink2.mk60
-rw-r--r--databases/freetds/buildlink2.mk24
-rw-r--r--databases/mysql-client/buildlink2.mk26
-rw-r--r--databases/p5-DBI/buildlink2.mk21
-rw-r--r--databases/postgresql-lib/buildlink2.mk28
-rw-r--r--devel/ncurses/buildlink2.mk153
-rw-r--r--devel/pth/buildlink2.mk21
-rw-r--r--devel/zlib/buildlink2.mk121
-rw-r--r--fonts/Xft2/buildlink2.mk32
-rw-r--r--fonts/fontconfig/buildlink2.mk118
-rw-r--r--graphics/MesaLib/buildlink2.mk41
-rw-r--r--graphics/freetype2/buildlink2.mk139
-rw-r--r--graphics/glu/buildlink2.mk31
-rw-r--r--graphics/jpeg/buildlink2.mk22
-rw-r--r--graphics/lcms/buildlink2.mk33
-rw-r--r--graphics/mng/buildlink2.mk25
-rw-r--r--graphics/png/buildlink2.mk22
-rw-r--r--lang/gcc/buildlink2.mk53
-rw-r--r--lang/gcc3-c++/buildlink2.mk45
-rw-r--r--lang/gcc3-c/buildlink2.mk40
-rw-r--r--lang/gcc3-f77/buildlink2.mk36
-rw-r--r--lang/gcc3-java/buildlink2.mk35
-rw-r--r--lang/gcc3-objc/buildlink2.mk35
-rw-r--r--lang/perl5/buildlink2.mk73
-rw-r--r--security/openssl/buildlink2.mk178
-rw-r--r--security/rsaref/buildlink2.mk19
-rw-r--r--textproc/expat/buildlink2.mk19
-rw-r--r--x11/XFree86-libs/buildlink2.mk75
-rw-r--r--x11/Xfixes/buildlink2.mk23
-rw-r--r--x11/Xrandr-mixedcase/buildlink2.mk35
-rw-r--r--x11/Xrender/buildlink2.mk148
-rw-r--r--x11/fixesext/buildlink2.mk22
-rw-r--r--x11/qt3-libs/buildlink2.mk49
-rw-r--r--x11/randrext/buildlink2.mk34
-rw-r--r--x11/render/buildlink2.mk91
-rw-r--r--x11/xcursor/buildlink2.mk103
36 files changed, 0 insertions, 2030 deletions
diff --git a/databases/db/buildlink2.mk b/databases/db/buildlink2.mk
deleted file mode 100644
index 299722efb3f..00000000000
--- a/databases/db/buildlink2.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.12 2004/02/05 07:17:14 jlam Exp $
-
-.if !defined(DB_BUILDLINK2_MK)
-DB_BUILDLINK2_MK= # defined
-
-BUILDLINK_DEPENDS.db?= db>=2.7.3
-BUILDLINK_PKGSRCDIR.db?= ../../databases/db
-
-_NEED_DB2= YES
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(USE_DB185)
-. if exists(/usr/include/db.h) # NetBSD, Darwin
-# See if /usr/include/db.h belongs to db3 or db4
-_IS_DB34!= ${GREP} -c 'DB_VERSION_MAJOR.*[34]$$' /usr/include/db.h || ${TRUE}
-. if ${_IS_DB34} == "0"
-BUILDLINK_PREFIX.db= /usr
-BUILDLINK_FILES.db= include/db.h
-BUILDLINK_FILES.db+= include/mpool.h
-BUILDLINK_CPPFLAGS.db= # empty
-BUILDLINK_LDFLAGS.db= # empty
-BUILDLINK_LIBS.db= # empty
-_NEED_DB2= NO
-. endif
-. elif exists(/usr/include/db1/db.h)
-# Linux
-BUILDLINK_PREFIX.db= /usr
-BUILDLINK_FILES.db= include/db1/*
-BUILDLINK_CPPFLAGS.db= -I${BUILDLINK_PREFIX.db}/include/db1
-BUILDLINK_LDFLAGS.db= # empty
-BUILDLINK_LIBS.db= -ldb1
-BUILDLINK_TRANSFORM+= l:db:db1
-_NEED_DB2= NO
-. endif
-.endif
-
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \
- !empty(PREFER_PKGSRC:Mdb)
-_NEED_DB2= YES
-.endif
-
-.if ${_NEED_DB2} == "YES"
-BUILDLINK_PACKAGES+= db
-EVAL_PREFIX+= BUILDLINK_PREFIX.db=db
-BUILDLINK_PREFIX.db_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.db= include/db2/*
-BUILDLINK_FILES.db+= lib/libdb2.*
-BUILDLINK_CPPFLAGS.db= -I${BUILDLINK_PREFIX.db}/include/db2
-BUILDLINK_LDFLAGS.db= -L${BUILDLINK_PREFIX.db}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib
-BUILDLINK_LIBS.db= -ldb2
-BUILDLINK_TRANSFORM+= l:db:db2
-.endif
-CPPFLAGS+= ${BUILDLINK_CPPFLAGS.db}
-
-BUILDLINK_TARGETS+= db-buildlink
-
-db-buildlink: _BUILDLINK_USE
-
-.endif # DB_BUILDLINK2_MK
diff --git a/databases/freetds/buildlink2.mk b/databases/freetds/buildlink2.mk
deleted file mode 100644
index cc44a329926..00000000000
--- a/databases/freetds/buildlink2.mk
+++ /dev/null
@@ -1,24 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.8 2003/07/13 13:50:55 wiz Exp $
-
-.if !defined(FREETDS_BUILDLINK2_MK)
-FREETDS_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= freetds
-BUILDLINK_DEPENDS.freetds?= freetds>=0.61nb1
-BUILDLINK_PKGSRCDIR.freetds?= ../../databases/freetds
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.freetds=freetds
-BUILDLINK_PREFIX.freetds_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.freetds= freetds/include/*
-BUILDLINK_FILES.freetds+= freetds/lib/*
-
-BUILDLINK_CPPFLAGS.freetds= -I${BUILDLINK_PREFIX.freetds}/freetds/include
-BUILDLINK_LDFLAGS.freetds= -L${BUILDLINK_PREFIX.freetds}/freetds/lib
-BUILDLINK_LDFLAGS.freetds+= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.freetds}/freetds/lib
-FIX_RPATH+= BUILDLINK_LDFLAGS.freetds
-
-BUILDLINK_TARGETS+= freetds-buildlink
-
-freetds-buildlink: _BUILDLINK_USE
-
-.endif # FREETDS_BUILDLINK2_MK
diff --git a/databases/mysql-client/buildlink2.mk b/databases/mysql-client/buildlink2.mk
deleted file mode 100644
index c2e4218e147..00000000000
--- a/databases/mysql-client/buildlink2.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.7 2003/10/05 17:55:13 martti Exp $
-
-.if !defined(MYSQL_CLIENT_BUILDLINK2_MK)
-MYSQL_CLIENT_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= mysql-client
-BUILDLINK_DEPENDS.mysql-client?= mysql-client>=3.23.58
-BUILDLINK_PKGSRCDIR.mysql-client?= ../../databases/mysql-client
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.mysql-client=mysql-client
-BUILDLINK_PREFIX.mysql-client_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.mysql-client= include/mysql/*.h
-BUILDLINK_FILES.mysql-client+= lib/mysql/libmysqlclient.*
-
-FIX_RPATH+= BUILDLINK_LDFLAGS.mysql-client
-BUILDLINK_LDFLAGS.mysql-client= \
- -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
- -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql
-
-.include "../../devel/zlib/buildlink2.mk"
-
-BUILDLINK_TARGETS+= mysql-client-buildlink
-
-mysql-client-buildlink: _BUILDLINK_USE
-
-.endif # MYSQL_CLIENT_BUILDLINK2_MK
diff --git a/databases/p5-DBI/buildlink2.mk b/databases/p5-DBI/buildlink2.mk
deleted file mode 100644
index e6a0585fc28..00000000000
--- a/databases/p5-DBI/buildlink2.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/03/12 22:01:08 heinz Exp $
-
-.if !defined(P5_DBI_BUILDLINK2_MK)
-P5_DBI_BUILDLINK2_MK= # defined
-
-PERL5_REQD+= 5.6.0
-BUILDLINK_PACKAGES+= p5-DBI
-BUILDLINK_DEPENDS.p5-DBI?= p5-DBI>=1.30
-BUILDLINK_PKGSRCDIR.p5-DBI?= ../../databases/p5-DBI
-
-.include "../../lang/perl5/buildlink2.mk"
-
-BUILDLINK_PREFIX.p5-DBI= ${BUILDLINK_PREFIX.perl}
-BUILDLINK_FILES.p5-DBI= \
- ${PERL5_SITEARCH:S/^${BUILDLINK_PREFIX.perl}\///}/auto/DBI/*
-
-BUILDLINK_TARGETS+= p5-DBI-buildlink
-
-p5-DBI-buildlink: _BUILDLINK_USE
-
-.endif # P5_DBI_BUILDLINK2_MK
diff --git a/databases/postgresql-lib/buildlink2.mk b/databases/postgresql-lib/buildlink2.mk
deleted file mode 100644
index 1b16965a4c8..00000000000
--- a/databases/postgresql-lib/buildlink2.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.4 2004/03/26 02:27:37 wiz Exp $
-
-.if !defined(POSTGRESQL_LIB_BUILDLINK2_MK)
-POSTGRESQL_LIB_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= postgresql-lib
-BUILDLINK_DEPENDS.postgresql-lib?= postgresql-lib>=7.3.1
-BUILDLINK_RECOMMENDED.postgresql-lib?= postgresql-lib>=7.3.4nb2
-BUILDLINK_PKGSRCDIR.postgresql-lib?= ../../databases/postgresql-lib
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.postgresql-lib=postgresql-lib
-BUILDLINK_PREFIX.postgresql-lib_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.postgresql-lib= include/postgresql/*/*/*.h
-BUILDLINK_FILES.postgresql-lib+= include/postgresql/*/*.h
-BUILDLINK_FILES.postgresql-lib+= include/postgresql/*.h
-BUILDLINK_FILES.postgresql-lib+= include/pgsql/*/*/*.h
-BUILDLINK_FILES.postgresql-lib+= include/pgsql/*/*.h
-BUILDLINK_FILES.postgresql-lib+= include/pgsql/*.h
-BUILDLINK_FILES.postgresql-lib+= lib/libecpg.*
-BUILDLINK_FILES.postgresql-lib+= lib/libpq.*
-
-.include "../../security/openssl/buildlink2.mk"
-
-BUILDLINK_TARGETS+= postgresql-lib-buildlink
-
-postgresql-lib-buildlink: _BUILDLINK_USE
-
-.endif # POSTGRESQL_LIB_BUILDLINK2_MK
diff --git a/devel/ncurses/buildlink2.mk b/devel/ncurses/buildlink2.mk
deleted file mode 100644
index 26fda036651..00000000000
--- a/devel/ncurses/buildlink2.mk
+++ /dev/null
@@ -1,153 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.24 2004/02/15 05:57:16 kristerw Exp $
-#
-# Optionally define:
-#
-# USE_NCURSES force use of ncurses
-# INCOMPAT_CURSES specify MACHINE_PLATFORM versions that are missing
-# some needed functions.
-
-.if !defined(NCURSES_BUILDLINK2_MK)
-NCURSES_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.ncurses?= ncurses>=5.3nb1
-BUILDLINK_PKGSRCDIR.ncurses?= ../../devel/ncurses
-
-.if !defined(_BLNK_LIBNCURSES_FOUND)
-_BLNK_LIBNCURSES_FOUND!= \
- if [ "`${ECHO} /usr/lib/libncurses.*`" = "/usr/lib/libncurses.*" ]; then \
- ${ECHO} "NO"; \
- else \
- ${ECHO} "YES"; \
- fi
-MAKEFLAGS+= _BLNK_LIBNCURSES_FOUND=${_BLNK_LIBNCURSES_FOUND}
-.endif
-
-.if !defined(BUILDLINK_IS_BUILTIN.ncurses)
-BUILDLINK_IS_BUILTIN.ncurses= NO
-. if ${_BLNK_LIBNCURSES_FOUND} == "YES"
-BUILDLINK_IS_BUILTIN.ncurses= YES
-. elif exists(${_NCURSES_H})
-BUILDLINK_IS_BUILTIN.ncurses!= \
- if ${GREP} -q "\#define[ ]*NCURSES_VERSION" ${_NCURSES_H}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-#
-# XXX By default, assume that the builtin curses on NetBSD systems
-# XXX supports ncurses.
-#
-. if ${OPSYS} == "NetBSD"
-BUILDLINK_IS_BUILTIN.ncurses= YES
-#
-# These versions of NetBSD didn't have a curses library that was
-# capable of replacing ncurses.
-#
-# XXX In reality, no version of NetBSD has a curses library that can
-# XXX completely replace ncurses; however, some version implement
-# XXX enough of ncurses that some packages are happy.
-#
-_INCOMPAT_CURSES= NetBSD-0.*-* NetBSD-1.[0123]*-*
-_INCOMPAT_CURSES+= NetBSD-1.4.*-* NetBSD-1.4[A-X]-*
-. for _pattern_ in ${_INCOMPAT_CURSES} ${INCOMPAT_CURSES}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-BUILDLINK_IS_BUILTIN.ncurses= NO
-. endif
-. endfor
-. endif
-MAKEFLAGS+= BUILDLINK_IS_BUILTIN.ncurses=${BUILDLINK_IS_BUILTIN.ncurses}
-.endif
-
-.if !empty(BUILDLINK_IS_BUILTIN.ncurses:M[yY][eE][sS])
-_NEED_NCURSES= NO
-.else
-_NEED_NCURSES= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${BUILDLINK_IS_BUILTIN.ncurses} == "YES"
-_NEED_NCURSES= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_NCURSES= YES
-.endif
-.if !empty(PREFER_NATIVE:Mncurses) && \
- ${BUILDLINK_IS_BUILTIN.ncurses} == "YES"
-_NEED_NCURSES= NO
-.endif
-.if !empty(PREFER_PKGSRC:Mncurses)
-_NEED_NCURSES= YES
-.endif
-
-.if defined(USE_NCURSES)
-_NEED_NCURSES= YES
-.endif
-
-.if ${_NEED_NCURSES} == "YES"
-BUILDLINK_PACKAGES+= ncurses
-EVAL_PREFIX+= BUILDLINK_PREFIX.ncurses=ncurses
-BUILDLINK_PREFIX.ncurses_DEFAULT= ${LOCALBASE}
-.else
-BUILDLINK_PREFIX.ncurses= /usr
-.endif
-
-BUILDLINK_FILES.ncurses+= include/curses.h
-BUILDLINK_FILES.ncurses+= include/cursesapp.h
-BUILDLINK_FILES.ncurses+= include/cursesf.h
-BUILDLINK_FILES.ncurses+= include/cursesm.h
-BUILDLINK_FILES.ncurses+= include/cursesp.h
-BUILDLINK_FILES.ncurses+= include/cursesw.h
-BUILDLINK_FILES.ncurses+= include/cursslk.h
-BUILDLINK_FILES.ncurses+= include/eti.h
-BUILDLINK_FILES.ncurses+= include/etip.h
-BUILDLINK_FILES.ncurses+= include/form.h
-BUILDLINK_FILES.ncurses+= include/menu.h
-BUILDLINK_FILES.ncurses+= include/ncurses.h
-BUILDLINK_FILES.ncurses+= include/ncurses_dll.h
-BUILDLINK_FILES.ncurses+= include/panel.h
-BUILDLINK_FILES.ncurses+= include/term.h
-BUILDLINK_FILES.ncurses+= include/termcap.h
-BUILDLINK_FILES.ncurses+= include/unctrl.h
-BUILDLINK_FILES.ncurses+= lib/libform.*
-BUILDLINK_FILES.ncurses+= lib/libmenu.*
-BUILDLINK_FILES.ncurses+= lib/libncurses++.*
-BUILDLINK_FILES.ncurses+= lib/libncurses.*
-BUILDLINK_FILES.ncurses+= lib/libpanel.*
-
-.if ${_NEED_NCURSES} == "NO"
-. if empty(_BLNK_LIBNCURSES_FOUND:M[yY][eE][sS])
-BUILDLINK_FILES.ncurses+= lib/libcurses.*
-BUILDLINK_TRANSFORM.ncurses+= -e "s|/curses.h|/ncurses.h|g"
-BUILDLINK_TRANSFORM+= l:ncurses:curses
-. endif
-.endif
-
-BUILDLINK_TARGETS+= ncurses-buildlink
-BUILDLINK_TARGETS+= ncurses-curses-h
-BUILDLINK_TARGETS+= ncurses-extra-includes-buildlink
-
-ncurses-buildlink: _BUILDLINK_USE
-
-ncurses-extra-includes-buildlink:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- extra_includes=" \
- include/term.h \
- "; \
- for f in $${extra_includes}; do \
- if [ ! -f ${BUILDLINK_DIR}/$${f} ]; then \
- ${ECHO_BUILDLINK_MSG} "Touching extra ncurses header ($${f}) in ${BUILDLINK_DIR}."; \
- ${TOUCH} ${TOUCH_FLAGS} ${BUILDLINK_DIR}/$${f}; \
- fi; \
- done
-
-ncurses-curses-h:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${BUILDLINK_DIR}/include/curses.h ]; then \
- ${ECHO_BUILDLINK_MSG} "Linking curses.h to ncurses.h in ${BUILDLINK_DIR}."; \
- ${LN} -s ${BUILDLINK_PREFIX.ncurses}/include/ncurses.h ${BUILDLINK_DIR}/include/curses.h; \
- fi
-
-.endif # NCURSES_BUILDLINK2_MK
diff --git a/devel/pth/buildlink2.mk b/devel/pth/buildlink2.mk
deleted file mode 100644
index 26ff9b2af86..00000000000
--- a/devel/pth/buildlink2.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.4 2003/05/02 11:49:47 wiz Exp $
-
-.if !defined(PTH_BUILDLINK2_MK)
-PTH_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= pth
-BUILDLINK_DEPENDS.pth?= pth>=2.0.0
-BUILDLINK_PKGSRCDIR.pth?= ../../devel/pth
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.pth=pth
-BUILDLINK_PREFIX.pth_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.pth= include/pth.h
-BUILDLINK_FILES.pth+= include/pthread.h
-BUILDLINK_FILES.pth+= lib/libpth.*
-BUILDLINK_FILES.pth+= lib/libpthread.*
-
-BUILDLINK_TARGETS+= pth-buildlink
-
-pth-buildlink: _BUILDLINK_USE
-
-.endif # PTH_BUILDLINK2_MK
diff --git a/devel/zlib/buildlink2.mk b/devel/zlib/buildlink2.mk
deleted file mode 100644
index 0a156635c07..00000000000
--- a/devel/zlib/buildlink2.mk
+++ /dev/null
@@ -1,121 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.14 2004/02/12 02:35:06 jlam Exp $
-
-.if !defined(ZLIB_BUILDLINK2_MK)
-ZLIB_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.zlib?= zlib>=1.1.4nb1
-BUILDLINK_PKGSRCDIR.zlib?= ../../devel/zlib
-
-_ZLIB_H= /usr/include/zlib.h
-
-.if !defined(BUILDLINK_IS_BUILTIN.zlib)
-BUILDLINK_IS_BUILTIN.zlib= NO
-. if exists(${_ZLIB_H})
-#
-# Create an appropriate name for the built-in package distributed
-# with the system. This package name can be used to check against
-# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc
-# version or if the built-in one is sufficient.
-#
-_ZLIB_VERSION!= \
- ${AWK} '/\#define[ ]*ZLIB_VERSION/ { \
- vers = $$3; \
- gsub("\"", "", vers); \
- print vers; \
- } \
- ' ${_ZLIB_H}
-_ZLIB_PKG= zlib-${_ZLIB_VERSION}
-#
-# If the built-in zlib is 1.1.4, then check whether it has the security
-# fix for CAN-2003-0107, which was a buffer overflow in the gzprintf
-# function. If it does, then treat it as the equivalent of zlib-1.1.4nb1.
-#
-_HAVE_CAN_2003_0107_FIX= NetBSD-1.3[I-Z]*-* NetBSD-1.[456]*-*
-_HAVE_CAN_2003_0107_FIX+= NetBSD-[2-9]*-* NetBSD-1[0-9]*-*
-#
-# XXX These patterns for {Free,Open}BSD are too permissive, but I'm not
-# XXX sure which versions of those OSes provide secure versions of
-# XXX zlib-1.1.4.
-#
-_HAVE_CAN_2003_0107_FIX+= FreeBSD-*-* OpenBSD-*-*
-. if ${_ZLIB_VERSION} == "1.1.4"
-. for _pattern_ in ${_HAVE_CAN_2003_0107_FIX}
-. if !empty(MACHINE_PLATFORM:M${_pattern_})
-_ZLIB_PKG= zlib-1.1.4nb1
-. endif
-. endfor
-. endif
-
-_ZLIB_DEPENDS= ${BUILDLINK_DEPENDS.zlib}
-BUILDLINK_IS_BUILTIN.zlib!= \
- if ${PKG_ADMIN} pmatch '${_ZLIB_DEPENDS}' ${_ZLIB_PKG}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-MAKEFLAGS+= BUILDLINK_IS_BUILTIN.zlib=${BUILDLINK_IS_BUILTIN.zlib}
-.endif
-
-.if !empty(BUILDLINK_IS_BUILTIN.zlib:M[yY][eE][sS])
-BUILDLINK_USE_BUILTIN.zlib= YES
-.else
-BUILDLINK_USE_BUILTIN.zlib= NO
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${BUILDLINK_IS_BUILTIN.zlib} == "YES"
-BUILDLINK_USE_BUILTIN.zlib= YES
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-BUILDLINK_USE_BUILTIN.zlib= NO
-.endif
-.if !empty(PREFER_NATIVE:Mzlib) && \
- ${BUILDLINK_IS_BUILTIN.zlib} == "YES"
-BUILDLINK_USE_BUILTIN.zlib= YES
-.endif
-.if !empty(PREFER_PKGSRC:Mzlib)
-BUILDLINK_USE_BUILTIN.zlib= NO
-.endif
-
-.if defined(USE_ZLIB)
-BUILDLINK_USE_BUILTIN.zlib= NO
-.endif
-
-.if !empty(BUILDLINK_USE_BUILTIN.zlib:M[nN][oO])
-BUILDLINK_PACKAGES+= zlib
-EVAL_PREFIX+= BUILDLINK_PREFIX.zlib=zlib
-BUILDLINK_PREFIX.zlib_DEFAULT= ${LOCALBASE}
-#
-# If we depend on the package, depend on the latest version with a library
-# major number bump.
-#
-BUILDLINK_DEPENDS.zlib= zlib>=1.2.1
-_BLNK_ZLIB_LDFLAGS= -L${BUILDLINK_PREFIX.zlib}/lib -lz
-.else
-BUILDLINK_PREFIX.zlib= /usr
-_BLNK_ZLIB_LDFLAGS= -lz
-.endif
-
-LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
- -e "s|${BUILDLINK_PREFIX.zlib}/lib/libz.la|${_BLNK_ZLIB_LDFLAGS}|g" \
- -e "s|${LOCALBASE}/lib/libz.la|${_BLNK_ZLIB_LDFLAGS}|g"
-
-BUILDLINK_FILES.zlib= include/zconf.h
-BUILDLINK_FILES.zlib+= include/zlib.h
-BUILDLINK_FILES.zlib+= lib/libz.*
-
-BUILDLINK_TARGETS+= zlib-buildlink
-BUILDLINK_TARGETS+= zlib-libz-la
-
-zlib-buildlink: _BUILDLINK_USE
-
-zlib-libz-la:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- lafile="${BUILDLINK_DIR}/lib/libz.la"; \
- libpattern="${BUILDLINK_PREFIX.zlib}/lib/libz.*"; \
- ${BUILDLINK_FAKE_LA}
-
-.endif # ZLIB_BUILDLINK2_MK
diff --git a/fonts/Xft2/buildlink2.mk b/fonts/Xft2/buildlink2.mk
deleted file mode 100644
index a1313be9f3a..00000000000
--- a/fonts/Xft2/buildlink2.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.15 2004/04/15 00:49:29 wiz Exp $
-#
-# This Makefile fragment is included by packages that use Xft2.
-#
-# This file was created automatically using createbuildlink 2.2.
-#
-
-.if !defined(XFT2_BUILDLINK2_MK)
-XFT2_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= Xft2
-BUILDLINK_DEPENDS.Xft2?= Xft2>=2.1nb1
-BUILDLINK_PKGSRCDIR.Xft2?= ../../fonts/Xft2
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.Xft2=Xft2
-BUILDLINK_PREFIX.Xft2_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.Xft2+= bin/xft-config
-BUILDLINK_FILES.Xft2+= include/X11/Xft/*
-BUILDLINK_FILES.Xft2+= lib/libXft.*
-
-BUILDLINK_DEPENDS.Xrender= Xrender>=0.8.2
-BUILDLINK_DEPENDS.render= render>=0.8
-
-.include "../../fonts/fontconfig/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
-.include "../../x11/Xrender/buildlink2.mk"
-
-BUILDLINK_TARGETS+= Xft2-buildlink
-
-Xft2-buildlink: _BUILDLINK_USE
-
-.endif # XFT2_BUILDLINK2_MK
diff --git a/fonts/fontconfig/buildlink2.mk b/fonts/fontconfig/buildlink2.mk
deleted file mode 100644
index 59edbf961fa..00000000000
--- a/fonts/fontconfig/buildlink2.mk
+++ /dev/null
@@ -1,118 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.9 2004/02/18 14:58:37 jlam Exp $
-
-.if !defined(FONTCONFIG_BUILDLINK2_MK)
-FONTCONFIG_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.fontconfig?= fontconfig>=1.0.1
-BUILDLINK_PKGSRCDIR.fontconfig?= ../../fonts/fontconfig
-
-# Check if we got fontconfig distributed with XFree86 4.x or if we need to
-# depend on the fontconfig package.
-#
-_REQUIRE_BUILTIN_FONTCONFIG?= NO
-
-_FONTCONFIG_FONTCONFIG_H= ${X11BASE}/include/fontconfig/fontconfig.h
-_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
-
-.if !defined(_BUILTIN_FONTCONFIG)
-_BUILTIN_FONTCONFIG= NO
-. if exists(${_FONTCONFIG_FONTCONFIG_H}) && exists(${_X11_TMPL})
-_IS_BUILTIN.fontconfig!= \
- if ${GREP} -q BuildFontconfigLibrary ${_X11_TMPL}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-_BUILTIN_FONTCONFIG= ${_IS_BUILTIN.fontconfig}
-. if !empty(_IS_BUILTIN.fontconfig:M[yY][eE][sS])
-#
-# Create an appropriate package name for the built-in fontconfig distributed
-# with the system. This package name can be used to check against
-# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version
-# or if the built-in one is sufficient.
-#
-_FONTCONFIG_MAJOR!= \
- ${AWK} '/\#define[ ]*FC_MAJOR/ { print $$3 }' \
- ${_FONTCONFIG_FONTCONFIG_H}
-_FONTCONFIG_MINOR!= \
- ${AWK} '/\#define[ ]*FC_MINOR/ { print $$3 }' \
- ${_FONTCONFIG_FONTCONFIG_H}
-_FONTCONFIG_REVISION!= \
- ${AWK} '/\#define[ ]*FC_REVISION/ { print $$3 }' \
- ${_FONTCONFIG_FONTCONFIG_H}
-_FONTCONFIG_VERSION= \
- ${_FONTCONFIG_MAJOR}.${_FONTCONFIG_MINOR}.${_FONTCONFIG_REVISION}
-_FONTCONFIG_PKG= fontconfig-${_FONTCONFIG_VERSION}
-
-_BUILTIN_FONTCONFIG?= YES
-. for _depend_ in ${BUILDLINK_DEPENDS.fontconfig}
-. if !empty(_BUILTIN_FONTCONFIG:M[yY][eE][sS])
-_BUILTIN_FONTCONFIG!= \
- if ${PKG_ADMIN} pmatch '${_depend_}' ${_FONTCONFIG_PKG}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-. endfor
-. endif
-. endif
-MAKEFLAGS+= _BUILTIN_FONTCONFIG=${_BUILTIN_FONTCONFIG}
-.endif
-
-.if !empty(_BUILTIN_FONTCONFIG:M[yY][eE][sS])
-_NEED_FONTCONFIG= NO
-.else
-_NEED_FONTCONFIG= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${_BUILTIN_FONTCONFIG} == "YES"
-_NEED_FONTCONFIG= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_FONTCONFIG= YES
-.endif
-.if !empty(PREFER_NATIVE:Mfontconfig) && \
- ${_BUILTIN_FONTCONFIG} == "YES"
-_NEED_FONTCONFIG= NO
-.endif
-.if !empty(PREFER_PKGSRC:Mfontconfig)
-_NEED_FONTCONFIG= YES
-.endif
-
-.if !empty(_REQUIRE_BUILTIN_FONTCONFIG:M[yY][eE][sS])
-_NEED_FONTCONFIG= NO
-.endif
-
-.if ${_NEED_FONTCONFIG} == "YES"
-BUILDLINK_PACKAGES+= fontconfig
-EVAL_PREFIX+= BUILDLINK_PREFIX.fontconfig=fontconfig
-BUILDLINK_PREFIX.fontconfig_DEFAULT= ${X11PREFIX}
-#
-# If we depend on the package, depend on the latest version
-# with a library minor bump.
-#
-BUILDLINK_DEPENDS.fontconfig= fontconfig>=2.1nb2
-.else
-BUILDLINK_PREFIX.fontconfig= ${X11BASE}
-.endif
-
-BUILDLINK_FILES.fontconfig+= include/fontconfig/fcfreetype.h
-BUILDLINK_FILES.fontconfig+= include/fontconfig/fcprivate.h
-BUILDLINK_FILES.fontconfig+= include/fontconfig/fontconfig.h
-BUILDLINK_FILES.fontconfig+= lib/libfontconfig.*
-
-USE_X11= yes
-
-.include "../../devel/zlib/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
-.include "../../textproc/expat/buildlink2.mk"
-
-BUILDLINK_TARGETS+= fontconfig-buildlink
-
-fontconfig-buildlink: _BUILDLINK_USE
-
-.endif # FONTCONFIG_BUILDLINK2_MK
diff --git a/graphics/MesaLib/buildlink2.mk b/graphics/MesaLib/buildlink2.mk
deleted file mode 100644
index 039d188b16e..00000000000
--- a/graphics/MesaLib/buildlink2.mk
+++ /dev/null
@@ -1,41 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.19 2004/01/25 17:26:07 jlam Exp $
-
-.if !defined(MESALIB_BUILDLINK2_MK)
-MESALIB_BUILDLINK2_MK= # defined
-
-BUILDLINK_DEPENDS.MesaLib?= MesaLib>=6.0
-BUILDLINK_PKGSRCDIR.MesaLib?= ../../graphics/MesaLib
-
-BUILDLINK_PACKAGES+= MesaLib
-EVAL_PREFIX+= BUILDLINK_PREFIX.MesaLib=MesaLib
-BUILDLINK_PREFIX.MesaLib_DEFAULT= ${LOCALBASE}
-
-CPPFLAGS+= -DGLX_GLXEXT_LEGACY
-CFLAGS+= -DGLX_GLXEXT_LEGACY
-
-BUILDLINK_FILES.MesaLib+= include/GL/gl.h
-BUILDLINK_FILES.MesaLib+= include/GL/glext.h
-BUILDLINK_FILES.MesaLib+= include/GL/gl_mangle.h
-BUILDLINK_FILES.MesaLib+= include/GL/glx*.h
-BUILDLINK_FILES.MesaLib+= include/GL/osmesa.h
-BUILDLINK_FILES.MesaLib+= include/GL/xmesa.h
-BUILDLINK_FILES.MesaLib+= include/GL/xmesa_x.h
-BUILDLINK_FILES.MesaLib+= include/GL/xmesa_xf86.h
-BUILDLINK_FILES.MesaLib+= lib/libGL.*
-BUILDLINK_FILES.MesaLib+= lib/libGLw.*
-BUILDLINK_FILES.MesaLib+= lib/libOSMesa.*
-
-USE_X11= # defined
-
-BUILDLINK_TARGETS+= MesaLib-buildlink
-BUILDLINK_TARGETS+= MesaLib-libGL-la
-
-MesaLib-buildlink: _BUILDLINK_USE
-
-MesaLib-libGL-la:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- lafile="${BUILDLINK_DIR}/lib/libGL.la"; \
- libpattern="${BUILDLINK_PREFIX.MesaLib}/lib/libGL.*"; \
- ${BUILDLINK_FAKE_LA}
-
-.endif # MESALIB_BUILDLINK2_MK
diff --git a/graphics/freetype2/buildlink2.mk b/graphics/freetype2/buildlink2.mk
deleted file mode 100644
index a06553daa88..00000000000
--- a/graphics/freetype2/buildlink2.mk
+++ /dev/null
@@ -1,139 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.18 2004/05/18 10:21:16 wiz Exp $
-
-.if !defined(FREETYPE2_BUILDLINK2_MK)
-FREETYPE2_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.freetype2?= freetype2>=2.1.8
-BUILDLINK_PKGSRCDIR.freetype2?= ../../graphics/freetype2
-
-# Check if we got FreeType2 distributed with XFree86 4.x or if we need to
-# depend on the freetype2 package.
-#
-_REQUIRE_BUILTIN_FREETYPE2?= NO
-
-_FREETYPE_H= ${X11BASE}/include/freetype2/freetype/freetype.h
-_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
-
-.if !defined(_BUILTIN_FREETYPE2)
-_BUILTIN_FREETYPE2= NO
-. if exists(${_FREETYPE_H}) && exists(${_X11_TMPL})
-#
-# Create an appropriate freetype2 package name for the built-in freetype2
-# distributed with XFree86 4.x. This package name can be used to check
-# against BUILDLINK_DEPENDS.freetype2 to see if we need to install the
-# pkgsrc freetype2 or if the built-in one is sufficient.
-#
-_FREETYPE_MAJOR!= \
- ${AWK} '/.*\#define.*FREETYPE_MAJOR/ { print $$3 }' ${_FREETYPE_H}
-_FREETYPE_MINOR!= \
- ${AWK} '/.*\#define.*FREETYPE_MINOR/ { print "."$$3 }' ${_FREETYPE_H}
-_FREETYPE_PATCH!= \
- ${AWK} 'BEGIN { patch=0; } /.*\#define.*FREETYPE_PATCH/ { patch=$$3; } END { print "."patch; }' ${_FREETYPE_H}
-_FREETYPE_VERSION= ${_FREETYPE_MAJOR}${_FREETYPE_MINOR}${_FREETYPE_PATCH}
-_FREETYPE_PKG= freetype2-${_FREETYPE_VERSION}
-_FREETYPE_DEPENDS= ${BUILDLINK_DEPENDS.freetype2}
-_BUILTIN_FREETYPE2!= \
- if ${PKG_ADMIN} pmatch '${_FREETYPE_DEPENDS}' ${_FREETYPE_PKG}; then \
- if ${GREP} -q BuildFreetype2Library ${_X11_TMPL}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-MAKEFLAGS+= _BUILTIN_FREETYPE2=${_BUILTIN_FREETYPE2}
-.endif
-
-.if !empty(_BUILTIN_FREETYPE2:M[yY][eE][sS])
-_NEED_FREETYPE2= NO
-.else
-_NEED_FREETYPE2= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${_BUILTIN_FREETYPE2} == "YES"
-_NEED_FREETYPE2= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_FREETYPE2= YES
-.endif
-.if !empty(PREFER_NATIVE:Mfreetype2) && \
- ${_BUILTIN_FREETYPE2} == "YES"
-_NEED_FREETYPE2= NO
-.endif
-.if !empty(PREFER_PKGSRC:Mfreetype2)
-_NEED_FREETYPE2= YES
-.endif
-
-.if !empty(_REQUIRE_BUILTIN_FREETYPE2:M[yY][eE][sS])
-_NEED_FREETYPE2= NO
-.endif
-
-.if ${_NEED_FREETYPE2} == "YES"
-BUILDLINK_PACKAGES+= freetype2
-EVAL_PREFIX+= BUILDLINK_PREFIX.freetype2=freetype2
-BUILDLINK_PREFIX.freetype2_DEFAULT= ${LOCALBASE}
-# If we depend on the package, depend on the latest version
-# with a library major bump.
-BUILDLINK_DEPENDS.freetype2= freetype2>=2.1.3
-.else
-BUILDLINK_PREFIX.freetype2= ${X11BASE}
-USE_X11= # defined
-.endif
-
-BUILDLINK_FILES.freetype2= bin/freetype-config
-BUILDLINK_FILES.freetype2+= include/ft2build.h
-BUILDLINK_FILES.freetype2+= include/freetype2/ft2build.h
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/*
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/cache/*
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/config/*
-BUILDLINK_FILES.freetype2+= include/freetype2/freetype/internal/*
-BUILDLINK_FILES.freetype2+= lib/libfreetype.*
-
-BUILDLINK_TARGETS+= freetype2-buildlink
-BUILDLINK_TARGETS+= freetype2-buildlink-config
-BUILDLINK_TARGETS+= freetype2-libfreetype-la
-
-_FREETYPE2_CONFIG= \
- ${BUILDLINK_PREFIX.freetype2}/bin/freetype-config
-_FREETYPE2_BUILDLINK_CONFIG= \
- ${BUILDLINK_DIR}/bin/freetype-config
-
-.if ${_NEED_FREETYPE2} == "NO"
-_BLNK_FREETYPE2_LDFLAGS= -L${BUILDLINK_PREFIX.freetype2}/lib -lfreetype
-LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
- -e "s|${BUILDLINK_PREFIX.freetype2}/lib/libfreetype.la|${_BLNK_FREETYPE2_LDFLAGS}|g" \
- -e "s|${LOCALBASE}/lib/libfreetype.la|${_BLNK_FREETYPE2_LDFLAGS}|g"
-.endif
-
-# packages expect to find the freetype headers in freetype/, so append
-# the right path to CPPFLAGS.
-CPPFLAGS+= -I${BUILDLINK_PREFIX.freetype2}/include/freetype2
-
-freetype2-buildlink: _BUILDLINK_USE
-
-freetype2-buildlink-config:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${_FREETYPE2_CONFIG} ] && \
- [ ! -f ${_FREETYPE2_BUILDLINK_CONFIG} ]; then \
- ${ECHO_BUILDLINK_MSG} "Creating config script ${_FREETYPE_BUILDLINK_CONFIG}."; \
- ${MKDIR} ${_FREETYPE2_BUILDLINK_CONFIG:H}; \
- ${SED} -e "s|@AWK@|${AWK}|g" \
- -e "s|@SED@|${SED}|g" \
- -e "s|@X11BASE@|${X11BASE}|g" \
- ${.CURDIR}/../../graphics/freetype2/buildlink2-freetype-config.in \
- > ${_FREETYPE2_BUILDLINK_CONFIG}; \
- ${CHMOD} +x ${_FREETYPE2_BUILDLINK_CONFIG}; \
- fi
-
-freetype2-libfreetype-la:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- lafile="${BUILDLINK_DIR}/lib/libfreetype.la"; \
- libpattern="${BUILDLINK_PREFIX.freetype2}/lib/libfreetype.*"; \
- ${BUILDLINK_FAKE_LA}
-
-.endif # FREETYPE2_BUILDLINK2_MK
diff --git a/graphics/glu/buildlink2.mk b/graphics/glu/buildlink2.mk
deleted file mode 100644
index 2c3b8307e5f..00000000000
--- a/graphics/glu/buildlink2.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.15 2004/01/25 17:26:07 jlam Exp $
-
-.if !defined(GLU_BUILDLINK2_MK)
-GLU_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= glu
-BUILDLINK_DEPENDS.glu?= glu>=6.0
-BUILDLINK_PKGSRCDIR.glu?= ../../graphics/glu
-EVAL_PREFIX+= BUILDLINK_PREFIX.glu=glu
-BUILDLINK_PREFIX.glu_DEFAULT= ${LOCALBASE}
-
-BUILDLINK_FILES.glu= include/GL/glu.h
-BUILDLINK_FILES.glu+= include/GL/glu_mangle.h
-BUILDLINK_FILES.glu+= lib/libGLU.*
-
-USE_X11= # defined
-
-.include "../../graphics/MesaLib/buildlink2.mk"
-
-BUILDLINK_TARGETS+= glu-buildlink
-BUILDLINK_TARGETS+= glu-libGLU-la
-
-glu-buildlink: _BUILDLINK_USE
-
-glu-libGLU-la:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- lafile="${BUILDLINK_DIR}/lib/libGLU.la"; \
- libpattern="${BUILDLINK_PREFIX.glu}/lib/libGLU.*"; \
- ${BUILDLINK_FAKE_LA}
-
-.endif # GLU_BUILDLINK2_MK
diff --git a/graphics/jpeg/buildlink2.mk b/graphics/jpeg/buildlink2.mk
deleted file mode 100644
index d8c61ec77ca..00000000000
--- a/graphics/jpeg/buildlink2.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.3 2003/10/03 15:35:29 salo Exp $
-
-.if !defined(JPEG_BUILDLINK2_MK)
-JPEG_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= jpeg
-BUILDLINK_DEPENDS.jpeg?= jpeg>=6b
-BUILDLINK_PKGSRCDIR.jpeg?= ../../graphics/jpeg
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.jpeg=jpeg
-BUILDLINK_PREFIX.jpeg_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.jpeg= include/jconfig.h
-BUILDLINK_FILES.jpeg+= include/jpeglib.h
-BUILDLINK_FILES.jpeg+= include/jmorecfg.h
-BUILDLINK_FILES.jpeg+= include/jerror.h
-BUILDLINK_FILES.jpeg+= lib/libjpeg.*
-
-BUILDLINK_TARGETS+= jpeg-buildlink
-
-jpeg-buildlink: _BUILDLINK_USE
-
-.endif # JPEG_BUILDLINK2_MK
diff --git a/graphics/lcms/buildlink2.mk b/graphics/lcms/buildlink2.mk
deleted file mode 100644
index 6a856409bb4..00000000000
--- a/graphics/lcms/buildlink2.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.5 2004/02/11 19:11:32 seb Exp $
-
-.if !defined(LCMS_BUILDLINK2_MK)
-LCMS_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= lcms
-BUILDLINK_DEPENDS.lcms?= lcms>=1.06
-BUILDLINK_PKGSRCDIR.lcms?= ../../graphics/lcms
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.lcms=lcms
-BUILDLINK_PREFIX.lcms_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.lcms= include/icc34.h
-BUILDLINK_FILES.lcms+= include/lcms.h
-BUILDLINK_FILES.lcms+= lib/liblcms.*
-
-BUILDLINK_CPPFLAGS.lcms= -I${BUILDLINK_PREFIX.lcms}/include
-
-BUILDLINK_TARGETS+= lcms-buildlink
-BUILDLINK_TARGETS+= buildlink-include-lcms
-
-lcms-buildlink: _BUILDLINK_USE
-
-buildlink-include-lcms: .PHONY
-.for _h_ in lcms.h icc34.h
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if [ ! -f ${BUILDLINK_DIR}/include/lcms/${_h_} ]; then \
- ${MKDIR} ${BUILDLINK_DIR}/include/lcms; \
- ${ECHO_BUILDLINK_MSG} "Linking lcms/${_h_} to ${_h_} in ${BUILDLINK_DIR}/include"; \
- ${LN} -s ${BUILDLINK_PREFIX.lcms}/include/${_h_} ${BUILDLINK_DIR}/include/lcms/${_h_}; \
- fi
-.endfor
-
-.endif # LCMS_BUILDLINK2_MK
diff --git a/graphics/mng/buildlink2.mk b/graphics/mng/buildlink2.mk
deleted file mode 100644
index 5fcf19a49b4..00000000000
--- a/graphics/mng/buildlink2.mk
+++ /dev/null
@@ -1,25 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:17 jlam Exp $
-
-.if !defined(MNG_BUILDLINK2_MK)
-MNG_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= mng
-BUILDLINK_DEPENDS.mng?= mng>=1.0.0
-BUILDLINK_PKGSRCDIR.mng?= ../../graphics/mng
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.mng=mng
-BUILDLINK_PREFIX.mng_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.mng= include/libmng.h
-BUILDLINK_FILES.mng+= include/libmng_conf.h
-BUILDLINK_FILES.mng+= include/libmng_types.h
-BUILDLINK_FILES.mng+= lib/libmng.*
-
-.include "../../devel/zlib/buildlink2.mk"
-.include "../../graphics/jpeg/buildlink2.mk"
-.include "../../graphics/lcms/buildlink2.mk"
-
-BUILDLINK_TARGETS+= mng-buildlink
-
-mng-buildlink: _BUILDLINK_USE
-
-.endif # MNG_BUILDLINK2_MK
diff --git a/graphics/png/buildlink2.mk b/graphics/png/buildlink2.mk
deleted file mode 100644
index 06bebd52e86..00000000000
--- a/graphics/png/buildlink2.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:21 jlam Exp $
-
-.if !defined(PNG_BUILDLINK2_MK)
-PNG_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= png
-BUILDLINK_DEPENDS.png?= png>=1.2.4
-BUILDLINK_PKGSRCDIR.png?= ../../graphics/png
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.png=png
-BUILDLINK_PREFIX.png_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.png= include/png.h
-BUILDLINK_FILES.png+= include/pngconf.h
-BUILDLINK_FILES.png+= lib/libpng.*
-
-.include "../../devel/zlib/buildlink2.mk"
-
-BUILDLINK_TARGETS+= png-buildlink
-
-png-buildlink: _BUILDLINK_USE
-
-.endif # PNG_BUILDLINK2_MK
diff --git a/lang/gcc/buildlink2.mk b/lang/gcc/buildlink2.mk
deleted file mode 100644
index e407541616f..00000000000
--- a/lang/gcc/buildlink2.mk
+++ /dev/null
@@ -1,53 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.19 2004/02/24 10:02:23 jlam Exp $
-
-# Do not directly include this file in package Makefiles. It is
-# automatically included when required based on USE_GCC2.
-
-.if !defined(GCC2_BUILDLINK2_MK)
-GCC2_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_PACKAGES+= gcc
-BUILDLINK_DEPENDS.gcc?= gcc>=${_GCC_REQD}
-BUILDLINK_PKGSRCDIR.gcc?= ../../lang/gcc
-#
-# Packages that link against shared gcc libraries need a full
-# dependency.
-#
-.if defined(USE_GCC_SHLIB)
-BUILDLINK_DEPMETHOD.gcc+= full
-.else
-BUILDLINK_DEPMETHOD.gcc?= build
-.endif
-
-BUILDLINK_PREFIX.gcc= ${LOCALBASE}
-BUILDLINK_WRAPPER_ENV+= \
- COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
-
-# These files are from gcc>=2.95.3.
-BUILDLINK_FILES.gcc= ${_GCC_SUBPREFIX}include/g++-3/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}include/g++-3/*/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*/*/*/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*/*/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/lib*.*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/specs
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${MACHINE_GNU_PLATFORM}/include/*/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${MACHINE_GNU_PLATFORM}/include/*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/libiberty.*
-BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/libstdc++.*
-
-BUILDLINK_PRE_TARGETS+= gcc-buildlink
-BUILDLINK_TARGETS+= libstdc++-buildlink-la
-
-gcc-buildlink: _BUILDLINK_USE
-
-libstdc++-buildlink-la:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- lafile="${BUILDLINK_DIR}/lib/libstdc++.la"; \
- libpattern="/usr/lib/libstdc++.*"; \
- ${BUILDLINK_FAKE_LA}
-
-.endif # GCC2_BUILDLINK2_MK
diff --git a/lang/gcc3-c++/buildlink2.mk b/lang/gcc3-c++/buildlink2.mk
deleted file mode 100644
index 7d45c203155..00000000000
--- a/lang/gcc3-c++/buildlink2.mk
+++ /dev/null
@@ -1,45 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/03/18 04:19:39 jlam Exp $
-
-.if !defined(GCC3_CXX_BUILDLINK2_MK)
-GCC3_CXX_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(GCC3_INSTALLTO_SUBPREFIX)
-GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
-.endif
-BUILDLINK_PACKAGES+= gcc3-cxx
-BUILDLINK_DEPENDS.gcc3-cxx?= gcc3${GCC3_PKGMODIF}-c++>=${_GCC_REQD}
-BUILDLINK_PKGSRCDIR.gcc3-cxx?= ../../lang/gcc3-c++
-
-# Packages that link against gcc shared libraries need a full
-# dependency.
-#
-.if defined(USE_GCC_SHLIB)
-BUILDLINK_DEPMETHOD.gcc3-cxx+= full
-.else
-BUILDLINK_DEPMETHOD.gcc3-cxx?= build
-.endif
-
-BUILDLINK_PREFIX.gcc3-cxx= ${LOCALBASE}
-BUILDLINK_WRAPPER_ENV+= \
- COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
-
-BUILDLINK_FILES.gcc3-cxx= ${_GCC_SUBPREFIX}include/c++/*/*
-BUILDLINK_FILES.gcc3-cxx+= ${_GCC_SUBPREFIX}include/c++/*/*/*
-BUILDLINK_FILES.gcc3-cxx+= ${_GCC_SUBPREFIX}include/c++/*/*/*/*
-BUILDLINK_FILES.gcc3-cxx+= ${_GCC_SUBPREFIX}lib/libstdc++.*
-BUILDLINK_FILES.gcc3-cxx+= ${_GCC_SUBPREFIX}lib/libsupc++.*
-
-BUILDLINK_TARGETS+= gcc3-cxx-buildlink
-BUILDLINK_TARGETS+= libstdc++-buildlink-la
-
-gcc3-cxx-buildlink: _BUILDLINK_USE
-
-libstdc++-buildlink-la:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- lafile="${BUILDLINK_DIR}/lib/libstdc++.la"; \
- libpattern="/usr/lib/libstdc++.*"; \
- ${BUILDLINK_FAKE_LA}
-
-.endif # GCC3_CXX_BUILDLINK2_MK
diff --git a/lang/gcc3-c/buildlink2.mk b/lang/gcc3-c/buildlink2.mk
deleted file mode 100644
index 316483fde40..00000000000
--- a/lang/gcc3-c/buildlink2.mk
+++ /dev/null
@@ -1,40 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.6 2004/03/18 04:19:39 jlam Exp $
-
-.if !defined(GCC3_C_BUILDLINK2_MK)
-GCC3_C_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(GCC3_INSTALLTO_SUBPREFIX)
-GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
-.endif
-BUILDLINK_PACKAGES+= gcc3-c
-BUILDLINK_DEPENDS.gcc3-c?= gcc3${GCC3_PKGMODIF}-c>=${_GCC_REQD}
-BUILDLINK_PKGSRCDIR.gcc3-c?= ../../lang/gcc3-c
-
-# Packages that link against gcc shared libraries need a full
-# dependency.
-#
-.if defined(USE_GCC_SHLIB)
-BUILDLINK_DEPMETHOD.gcc3-c+= full
-.else
-BUILDLINK_DEPMETHOD.gcc3-c?= build
-.endif
-
-BUILDLINK_PREFIX.gcc3-c= ${LOCALBASE}
-BUILDLINK_WRAPPER_ENV+= \
- COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
-
-BUILDLINK_FILES.gcc3-c= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*/*/*/*
-BUILDLINK_FILES.gcc3-c+=${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*/*/*
-BUILDLINK_FILES.gcc3-c+=${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*/*
-BUILDLINK_FILES.gcc3-c+=${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/*
-BUILDLINK_FILES.gcc3-c+=${_GCC_SUBPREFIX}lib/gcc-lib/*/*/lib*.*
-BUILDLINK_FILES.gcc3-c+=${_GCC_SUBPREFIX}lib/gcc-lib/*/*/specs
-BUILDLINK_FILES.gcc3-c+=${_GCC_SUBPREFIX}lib/libgcc_s.*
-
-BUILDLINK_PRE_TARGETS+= gcc3-c-buildlink
-
-gcc3-c-buildlink: _BUILDLINK_USE
-
-.endif # GCC3_C_BUILDLINK2_MK
diff --git a/lang/gcc3-f77/buildlink2.mk b/lang/gcc3-f77/buildlink2.mk
deleted file mode 100644
index 62600d1fde8..00000000000
--- a/lang/gcc3-f77/buildlink2.mk
+++ /dev/null
@@ -1,36 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.3 2004/03/18 04:19:39 jlam Exp $
-
-.if !defined(GCC3_F77_BUILDLINK2_MK)
-GCC3_F77_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(GCC3_INSTALLTO_SUBPREFIX)
-GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
-.endif
-BUILDLINK_PACKAGES+= gcc3-f77
-BUILDLINK_DEPENDS.gcc3-f77?= gcc3${GCC3_PKGMODIF}-f77>=${_GCC_REQD}
-BUILDLINK_PKGSRCDIR.gcc3-f77?= ../../lang/gcc3-f77
-
-# Packages that link against gcc shared libraries need a full
-# dependency.
-#
-.if defined(USE_GCC_SHLIB)
-BUILDLINK_DEPMETHOD.gcc3-f77+= full
-.else
-BUILDLINK_DEPMETHOD.gcc3-f77?= build
-.endif
-
-BUILDLINK_PREFIX.gcc3-f77= ${LOCALBASE}
-BUILDLINK_WRAPPER_ENV+= \
- COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
-
-BUILDLINK_FILES.gcc3-f77= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/g2c.h
-BUILDLINK_FILES.gcc3-f77+= ${_GCC_SUBPREFIX}lib/libfrtbegin.*
-BUILDLINK_FILES.gcc3-f77+= ${_GCC_SUBPREFIX}lib/libg2c.*
-
-BUILDLINK_TARGETS+= gcc3-f77-buildlink
-
-gcc3-f77-buildlink: _BUILDLINK_USE
-
-.endif # GCC3_F77_BUILDLINK2_MK
diff --git a/lang/gcc3-java/buildlink2.mk b/lang/gcc3-java/buildlink2.mk
deleted file mode 100644
index d7dce811c50..00000000000
--- a/lang/gcc3-java/buildlink2.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/03/18 04:19:39 jlam Exp $
-
-.if !defined(GCC3_JAVA_BUILDLINK2_MK)
-GCC3_JAVA_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(GCC3_INSTALLTO_SUBPREFIX)
-GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
-.endif
-BUILDLINK_PACKAGES+= gcc3-java
-BUILDLINK_DEPENDS.gcc3-java?= gcc3${GCC3_PKGMODIF}-java>=${_GCC_REQD}
-BUILDLINK_PKGSRCDIR.gcc3-java?= ../../lang/gcc3-java
-
-# Packages that link against gcc shared libraries need a full
-# dependency.
-#
-.if defined(USE_GCC_SHLIB)
-BUILDLINK_DEPMETHOD.gcc3-java+= full
-.else
-BUILDLINK_DEPMETHOD.gcc3-java?= build
-.endif
-
-BUILDLINK_PREFIX.gcc3-java= ${LOCALBASE}
-BUILDLINK_WRAPPER_ENV+= \
- COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
-
-BUILDLINK_FILES.gcc3-java= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/java/*
-BUILDLINK_FILES.gcc3-java+= ${_GCC_SUBPREFIX}/lib/libjava.*
-
-BUILDLINK_TARGETS+= gcc3-java-buildlink
-
-gcc3-java-buildlink: _BUILDLINK_USE
-
-.endif # GCC3_JAVA_BUILDLINK2_MK
diff --git a/lang/gcc3-objc/buildlink2.mk b/lang/gcc3-objc/buildlink2.mk
deleted file mode 100644
index 774980952a7..00000000000
--- a/lang/gcc3-objc/buildlink2.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/03/18 04:19:39 jlam Exp $
-
-.if !defined(GCC3_OBJC_BUILDLINK2_MK)
-GCC3_OBJC_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(GCC3_INSTALLTO_SUBPREFIX)
-GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
-.endif
-BUILDLINK_PACKAGES+= gcc3-objc
-BUILDLINK_DEPENDS.gcc3-objc?= gcc3${GCC3_PKGMODIF}-objc>=${_GCC_REQD}
-BUILDLINK_PKGSRCDIR.gcc3-objc?= ../../lang/gcc3-objc
-
-# Packages that link against gcc shared libraries need a full
-# dependency.
-#
-.if defined(USE_GCC_SHLIB)
-BUILDLINK_DEPMETHOD.gcc3-objc+= full
-.else
-BUILDLINK_DEPMETHOD.gcc3-objc?= build
-.endif
-
-BUILDLINK_PREFIX.gcc3-objc= ${LOCALBASE}
-BUILDLINK_WRAPPER_ENV+= \
- COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
-
-BUILDLINK_FILES.gcc3-objc= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/objc/*
-BUILDLINK_FILES.gcc3-objc+= ${_GCC_SUBPREFIX}/lib/libobjc.*
-
-BUILDLINK_TARGETS+= gcc3-objc-buildlink
-
-gcc3-objc-buildlink: _BUILDLINK_USE
-
-.endif # GCC3_OBJC_BUILDLINK2_MK
diff --git a/lang/perl5/buildlink2.mk b/lang/perl5/buildlink2.mk
deleted file mode 100644
index c34d5b2f880..00000000000
--- a/lang/perl5/buildlink2.mk
+++ /dev/null
@@ -1,73 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.13 2004/04/26 04:46:00 jlam Exp $
-
-.if !defined(PERL5_BUILDLINK2_MK)
-PERL5_BUILDLINK2_MK= # defined
-
-USE_PERL5?= run
-
-.include "../../mk/bsd.prefs.mk"
-
-PERL5_REQD+= 5.0
-BUILDLINK_PACKAGES+= perl
-BUILDLINK_DEPENDS.perl?= {perl>=${_PERL5_REQD},perl-thread>=${_PERL5_REQD}}
-BUILDLINK_PKGSRCDIR.perl?= ${PERL5_PKGSRCDIR}
-
-.if ${USE_PERL5} == "build"
-BUILDLINK_DEPMETHOD.perl?= build
-.endif
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.perl=perl
-BUILDLINK_PREFIX.perl_DEFAULT= ${LOCALBASE}
-PERL5?= ${BUILDLINK_PREFIX.perl}/bin/perl
-
-_PERL5_SITEVARS= \
- INSTALLSITEBIN INSTALLSITELIB INSTALLSITEARCH \
- INSTALLSITEMAN1DIR INSTALLSITEMAN3DIR \
- SITELIBEXP SITEARCHEXP
-
-_PERL5_SITEVAR.INSTALLSITEBIN= installsitebin
-_PERL5_SITEVAR.INSTALLSITELIB= installsitelib
-_PERL5_SITEVAR.INSTALLSITEARCH= installsitearch
-_PERL5_SITEVAR.INSTALLSITEMAN1DIR= installsiteman1dir
-_PERL5_SITEVAR.INSTALLSITEMAN3DIR= installsiteman3dir
-_PERL5_SITEVAR.SITELIBEXP= sitelibexp
-_PERL5_SITEVAR.SITEARCHEXP= sitearchexp
-
-.if exists(${PERL5})
-. if !defined(_PERL5_SITEPREFIX)
-_PERL5_PREFIX!= \
- eval `${PERL5} -V:prefix 2>/dev/null`; ${ECHO} $$prefix
-_PERL5_SITEPREFIX!= \
- eval `${PERL5} -V:siteprefix 2>/dev/null`; ${ECHO} $$siteprefix
-MAKEFLAGS+= _PERL5_PREFIX=${_PERL5_PREFIX:Q}
-MAKEFLAGS+= _PERL5_SITEPREFIX=${_PERL5_SITEPREFIX:Q}
-
-. for _var_ in ${_PERL5_SITEVARS}
-PERL5_SUB_${_var_}!= \
- eval `${PERL5} -V:${_PERL5_SITEVAR.${_var_}} 2>/dev/null`; \
- ${ECHO} $${${_PERL5_SITEVAR.${_var_}}} | \
- ${SED} -e "s,^${_PERL5_SITEPREFIX}/,,"
-MAKEFLAGS+= PERL5_SUB_${_var_}=${PERL5_SUB_${_var_}:Q}
-. endfor
-PERL5_SUB_INSTALLARCHLIB!= \
- eval `${PERL5} -V:installarchlib 2>/dev/null`; \
- ${ECHO} $$installarchlib | \
- ${SED} -e "s,^${_PERL5_PREFIX}/,,"
-MAKEFLAGS+= PERL5_SUB_INSTALLARCHLIB=${PERL5_SUB_INSTALLARCHLIB:Q}
-PERL5_SUB_INSTALLSCRIPT!= \
- eval `${PERL5} -V:installscript 2>/dev/null`; \
- ${ECHO} $$installscript | \
- ${SED} -e "s,^${_PERL5_PREFIX}/,,"
-MAKEFLAGS+= PERL5_SUB_INSTALLSCRIPT=${PERL5_SUB_INSTALLSCRIPT:Q}
-. endif
-
-BUILDLINK_FILES.perl= \
- ${PERL5_SUB_INSTALLARCHLIB}/CORE/* \
- ${PERL5_SUB_INSTALLARCHLIB}/auto/DynaLoader/DynaLoader.a
-.endif
-
-BUILDLINK_TARGETS+= perl-buildlink
-
-perl-buildlink: _BUILDLINK_USE
-
-.endif # PERL5_BUILDLINK2_MK
diff --git a/security/openssl/buildlink2.mk b/security/openssl/buildlink2.mk
deleted file mode 100644
index c9a570d0b22..00000000000
--- a/security/openssl/buildlink2.mk
+++ /dev/null
@@ -1,178 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.24 2004/04/07 13:31:54 tron Exp $
-
-.if !defined(OPENSSL_BUILDLINK2_MK)
-OPENSSL_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# This is the ${PKGNAME} of the version of the OpenSSL package installed
-# by pkgsrc.
-#
-_OPENSSL_PKGSRC_PKGNAME= openssl-0.9.6m
-
-BUILDLINK_DEPENDS.openssl?= openssl>=0.9.6m
-BUILDLINK_PKGSRCDIR.openssl?= ../../security/openssl
-
-BUILDLINK_CHECK_BUILTIN.openssl?= NO
-
-_OPENSSL_OPENSSLV_H= /usr/include/openssl/opensslv.h
-
-.if !defined(BUILDLINK_IS_BUILTIN.openssl)
-BUILDLINK_IS_BUILTIN.openssl= NO
-. if exists(${_OPENSSL_OPENSSLV_H})
-#
-# Create an appropriate name for the built-in package distributed
-# with the system. This package name can be used to check against
-# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc
-# version or if the built-in one is sufficient.
-#
-_OPENSSL_MAJOR!= \
- ${AWK} 'BEGIN { hex="0123456789abcdef" } \
- /\#define[ ]*OPENSSL_VERSION_NUMBER/ { \
- i = index(hex, substr($$3, 3, 1)) - 1; \
- print i; \
- exit 0; \
- } \
- ' ${_OPENSSL_OPENSSLV_H}
-_OPENSSL_MINOR!= \
- ${AWK} 'BEGIN { hex="0123456789abcdef" } \
- /\#define[ ]*OPENSSL_VERSION_NUMBER/ { \
- i = 16 * (index(hex, substr($$3, 4, 1)) - 1); \
- i += index(hex, substr($$3, 5, 1)) - 1; \
- print i; \
- exit 0; \
- } \
- ' ${_OPENSSL_OPENSSLV_H}
-_OPENSSL_TEENY!= \
- ${AWK} 'BEGIN { hex="0123456789abcdef" } \
- /\#define[ ]*OPENSSL_VERSION_NUMBER/ { \
- i = 16 * (index(hex, substr($$3, 6, 1)) - 1); \
- i += index(hex, substr($$3, 7, 1)) - 1; \
- print i; \
- exit 0; \
- } \
- ' ${_OPENSSL_OPENSSLV_H}
-_OPENSSL_PATCHLEVEL!= \
- ${AWK} 'BEGIN { hex="0123456789abcdef"; \
- split("abcdefghijklmnopqrstuvwxyz", alpha, ""); \
- } \
- /\#define[ ]*OPENSSL_VERSION_NUMBER/ { \
- i = 16 * (index(hex, substr($$3, 8, 1)) - 1); \
- i += index(hex, substr($$3, 9, 1)) - 1; \
- if (i == 0) { \
- print ""; \
- } else if (i > 26) { \
- print "a"; \
- } else { \
- print alpha[i]; \
- } \
- exit 0; \
- } \
- ' ${_OPENSSL_OPENSSLV_H}
-_OPENSSL_VERSION= ${_OPENSSL_MAJOR}.${_OPENSSL_MINOR}.${_OPENSSL_TEENY}${_OPENSSL_PATCHLEVEL}
-_OPENSSL_PKG= openssl-${_OPENSSL_VERSION}
-#
-# If the built-in OpenSSL software is 0.9.6g, then check whether it
-# contains the security fixes pulled up to netbsd-1-6 on 2004-04-01.
-# If it does, then treat it as the equivalent of openssl-0.9.6m. This
-# is not strictly true, but is good enough since the main differences
-# between 0.9.6g and 0.9.6m are security fixes that NetBSD has already
-# patched into its built-in OpenSSL software.
-#
-_OPENSSL_HAS_FIX!= \
- ${AWK} 'BEGIN { ans = "NO" } \
- /OPENSSL_HAS_20040401_FIX/ { ans = "YES" } \
- END { print ans; exit 0 } \
- ' ${_OPENSSL_OPENSSLV_H}
-. if !empty(_OPENSSL_VERSION:M0\.9\.6g) && (${_OPENSSL_HAS_FIX} == "YES")
-_OPENSSL_PKG= openssl-0.9.6m
-. endif
-
-_OPENSSL_DEPENDS= ${BUILDLINK_DEPENDS.openssl}
-BUILDLINK_IS_BUILTIN.openssl!= \
- if ${PKG_ADMIN} pmatch '${_OPENSSL_DEPENDS}' ${_OPENSSL_PKG}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-MAKEFLAGS+= BUILDLINK_IS_BUILTIN.openssl=${BUILDLINK_IS_BUILTIN.openssl}
-.endif
-
-.if !empty(BUILDLINK_IS_BUILTIN.openssl:M[yY][eE][sS])
-_NEED_OPENSSL= NO
-.else
-_NEED_OPENSSL= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${BUILDLINK_IS_BUILTIN.openssl} == "YES"
-_NEED_OPENSSL= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_OPENSSL= YES
-.endif
-.if !empty(PREFER_NATIVE:Mopenssl) && \
- ${BUILDLINK_IS_BUILTIN.openssl} == "YES"
-_NEED_OPENSSL= NO
-.endif
-.if !empty(PREFER_PKGSRC:Mopenssl)
-_NEED_OPENSSL= YES
-.endif
-
-.if !empty(BUILDLINK_CHECK_BUILTIN.openssl:M[yY][eE][sS])
-_NEED_OPENSSL= NO
-.endif
-
-.if !defined(_NEED_NEWER_OPENSSL)
-_NEED_NEWER_OPENSSL!= \
- if ${PKG_ADMIN} pmatch '${BUILDLINK_DEPENDS.openssl}' ${_OPENSSL_PKGSRC_PKGNAME}; then \
- ${ECHO} "NO"; \
- else \
- ${ECHO} "YES"; \
- fi
-MAKEFLAGS+= _NEED_NEWER_OPENSSL=${_NEED_NEWER_OPENSSL}
-.endif
-
-.if (${_NEED_OPENSSL} == "YES") && (${_NEED_NEWER_OPENSSL} == "YES")
-PKG_SKIP_REASON= "Unable to satisfy dependency: ${BUILDLINK_DEPENDS.openssl}"
-.endif
-
-.if ${_NEED_OPENSSL} == "YES"
-. if defined(USE_RSAREF2) && !empty(USE_RSAREF2:M[yY][eE][sS])
-BUILDLINK_DEPENDS+= rsaref
-. include "../../security/rsaref/buildlink2.mk"
-. endif
-.endif
-
-.if ${_NEED_OPENSSL} == "YES"
-BUILDLINK_PACKAGES+= openssl
-EVAL_PREFIX+= BUILDLINK_PREFIX.openssl=openssl
-BUILDLINK_PREFIX.openssl_DEFAULT= ${LOCALBASE}
-.else
-BUILDLINK_PREFIX.openssl= /usr
-.endif
-SSLBASE= ${BUILDLINK_PREFIX.openssl}
-BUILD_DEFS+= SSLBASE
-
-.if defined(PKG_SYSCONFDIR.openssl)
-SSLCERTS= ${PKG_SYSCONFDIR.openssl}/certs
-.elif ${OPSYS} == "NetBSD"
-SSLCERTS= /etc/openssl/certs
-.elif ${_NEED_OPENSSL} == "NO"
-SSLCERTS= /etc/ssl/certs
-.else
-SSLCERTS= ${PKG_SYSCONFBASEDIR}/openssl/certs
-.endif
-BUILD_DEFS+= SSLCERTS
-
-BUILDLINK_FILES.openssl= include/openssl/*
-BUILDLINK_FILES.openssl+= lib/libRSAglue.*
-BUILDLINK_FILES.openssl+= lib/libcrypto.*
-BUILDLINK_FILES.openssl+= lib/libssl.*
-
-BUILDLINK_TARGETS+= openssl-buildlink
-
-openssl-buildlink: _BUILDLINK_USE
-
-.endif # OPENSSL_BUILDLINK2_MK
diff --git a/security/rsaref/buildlink2.mk b/security/rsaref/buildlink2.mk
deleted file mode 100644
index 7d5a2a45213..00000000000
--- a/security/rsaref/buildlink2.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:57 jlam Exp $
-
-.if !defined(RSAREF_BUILDLINK2_MK)
-RSAREF_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= rsaref
-BUILDLINK_DEPENDS.rsaref?= rsaref-2.0p3
-BUILDLINK_PKGSRCDIR.rsaref?= ../../security/rsaref
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.rsaref=rsaref
-BUILDLINK_PREFIX.rsaref_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.rsaref= include/rsaref/*.h
-BUILDLINK_FILES.rsaref+= lib/librsaref.*
-
-BUILDLINK_TARGETS+= rsaref-buildlink
-
-rsaref-buildlink: _BUILDLINK_USE
-
-.endif # RSAREF_BUILDLINK2_MK
diff --git a/textproc/expat/buildlink2.mk b/textproc/expat/buildlink2.mk
deleted file mode 100644
index af4551c6b88..00000000000
--- a/textproc/expat/buildlink2.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.4 2004/04/08 16:35:21 reed Exp $
-
-.if !defined(EXPAT_BUILDLINK2_MK)
-EXPAT_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= expat
-BUILDLINK_DEPENDS.expat?= expat>=1.95.7
-BUILDLINK_PKGSRCDIR.expat?= ../../textproc/expat
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.expat=expat
-BUILDLINK_PREFIX.expat_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.expat= include/expat.h
-BUILDLINK_FILES.expat+= lib/libexpat.*
-
-BUILDLINK_TARGETS+= expat-buildlink
-
-expat-buildlink: _BUILDLINK_USE
-
-.endif # EXPAT_BUILDLINK2_MK
diff --git a/x11/XFree86-libs/buildlink2.mk b/x11/XFree86-libs/buildlink2.mk
deleted file mode 100644
index 6f213738436..00000000000
--- a/x11/XFree86-libs/buildlink2.mk
+++ /dev/null
@@ -1,75 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.9 2004/04/27 00:52:33 wiz Exp $
-#
-# This Makefile fragment is included by packages that use XFree86-libs.
-#
-# This file was created automatically using createbuildlink 2.6.
-#
-
-.if !defined(XFREE86_LIBS_BUILDLINK2_MK)
-XFREE86_LIBS_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= XFree86-libs
-BUILDLINK_DEPENDS.XFree86-libs?= XFree86-libs>=4.4.0
-BUILDLINK_PKGSRCDIR.XFree86-libs?= ../../x11/XFree86-libs
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.XFree86-libs=XFree86-libs
-BUILDLINK_PREFIX.XFree86-libs_DEFAULT= ${LOCALBASE}/X11R6
-BUILDLINK_FILES.XFree86-libs+= include/DPS/*.h
-BUILDLINK_FILES.XFree86-libs+= include/GL/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/ICE/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/SM/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/Xaw/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/Xcursor/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/Xmu/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/extensions/*.h
-BUILDLINK_FILES.XFree86-libs+= include/X11/fonts/*.h
-BUILDLINK_FILES.XFree86-libs+= include/*.h
-BUILDLINK_FILES.XFree86-libs+= lib/libGLw.*
-BUILDLINK_FILES.XFree86-libs+= lib/libICE.*
-BUILDLINK_FILES.XFree86-libs+= lib/libSM.*
-BUILDLINK_FILES.XFree86-libs+= lib/libX11.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXRes.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXTrap.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXau.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXaw.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXcursor.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXdmcp.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXext.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXfont.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXfontcache.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXi.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXinerama.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXmu.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXmuu.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXp.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXpm.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXss.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXt.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXtst.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXv.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXvMC.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXxf86dga.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXxf86misc.*
-BUILDLINK_FILES.XFree86-libs+= lib/libXxf86vm.*
-BUILDLINK_FILES.XFree86-libs+= lib/libdps.*
-BUILDLINK_FILES.XFree86-libs+= lib/libdpstk.*
-BUILDLINK_FILES.XFree86-libs+= lib/libfntstubs.*
-BUILDLINK_FILES.XFree86-libs+= lib/libfontenc.*
-BUILDLINK_FILES.XFree86-libs+= lib/liboldX.*
-BUILDLINK_FILES.XFree86-libs+= lib/libpsres.*
-BUILDLINK_FILES.XFree86-libs+= lib/libxf86config.*
-BUILDLINK_FILES.XFree86-libs+= lib/libxkbfile.*
-BUILDLINK_FILES.XFree86-libs+= lib/libxkbui.*
-BUILDLINK_FILES.XFree86-libs+= lib/libGL.*
-BUILDLINK_FILES.XFree86-libs+= lib/libGLU.*
-BUILDLINK_FILES.XFree86-libs+= lib/libOSMesa.*
-
-.include "../../fonts/fontconfig/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
-.include "../../textproc/expat/buildlink2.mk"
-BUILDLINK_TARGETS+= XFree86-libs-buildlink
-
-XFree86-libs-buildlink: _BUILDLINK_USE
-
-.endif # XFREE86_LIBS_BUILDLINK2_MK
diff --git a/x11/Xfixes/buildlink2.mk b/x11/Xfixes/buildlink2.mk
deleted file mode 100644
index 3ca24637ab2..00000000000
--- a/x11/Xfixes/buildlink2.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/12/16 08:40:51 recht Exp $
-
-.if !defined(XFIXES_BUILDLINK2_MK)
-XFIXES_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= Xfixes
-BUILDLINK_DEPENDS.Xfixes?= Xfixes>=2.0.0
-BUILDLINK_PKGSRCDIR.Xfixes?= ../../x11/Xfixes
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.Xfixes=Xfixes
-BUILDLINK_PREFIX.Xfixes_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.Xfixes+= include/X11/extensions/Xfixes.h
-BUILDLINK_FILES.Xfixes+= lib/libXfixes.*
-
-USE_X11= yes
-
-.include "../../x11/fixesext/buildlink2.mk"
-
-BUILDLINK_TARGETS+= Xfixes-buildlink
-
-Xfixes-buildlink: _BUILDLINK_USE
-
-.endif # XFIXES_BUILDLINK2_MK
diff --git a/x11/Xrandr-mixedcase/buildlink2.mk b/x11/Xrandr-mixedcase/buildlink2.mk
deleted file mode 100644
index d2b143baef9..00000000000
--- a/x11/Xrandr-mixedcase/buildlink2.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/03/15 17:30:18 recht Exp $
-
-.if !defined(XRANDR_BUILDLINK2_MK)
-XRANDR_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_PACKAGES+= Xrandr
-# Xrandr won't build without the X Extension library which is only present
-# in XFree86>=4.3.
-. if exists(${X11BASE}/include/X11/extensions/extutil.h)
-BUILDLINK_DEPENDS.Xrandr?= Xrandr>=1.0.1
-BUILDLINK_PKGSRCDIR.Xrandr?= ../../x11/Xrandr
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.Xrandr=Xrandr
-BUILDLINK_PREFIX.Xrandr_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.Xrandr+= include/X11/extensions/Xrandr.h
-BUILDLINK_FILES.Xrandr+= lib/libXrandr.*
-
-_IS_BUILTIN_XRANDR= 0
-. else
-BUILDLINK_PREFIX.Xrandr= ${X11BASE}
-BUILDLINK_PREFIX.Xrandr_DEFAULT= ${X11BASE}
-. endif
-
-USE_X11= YES
-
-.include "../../x11/randrext/buildlink2.mk"
-.include "../../x11/Xrender/buildlink2.mk"
-
-BUILDLINK_TARGETS+= Xrandr-buildlink
-
-Xrandr-buildlink: _BUILDLINK_USE
-
-.endif # XRANDR_BUILDLINK2_MK
diff --git a/x11/Xrender/buildlink2.mk b/x11/Xrender/buildlink2.mk
deleted file mode 100644
index ff226257d57..00000000000
--- a/x11/Xrender/buildlink2.mk
+++ /dev/null
@@ -1,148 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.12 2004/02/16 21:03:14 jlam Exp $
-
-.if !defined(XRENDER_BUILDLINK2_MK)
-XRENDER_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.Xrender?= Xrender>=0.2
-BUILDLINK_PKGSRCDIR.Xrender?= ../../x11/Xrender
-
-# Check if we got Xrender distributed with XFree86 4.x or if we need to
-# depend on the Xrender package.
-#
-_REQUIRE_BUILTIN_XRENDER?= NO
-
-_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
-
-.if !defined(_BUILTIN_XRENDER)
-_BUILTIN_XRENDER= NO
-. if exists(${_X11_TMPL})
-_IS_BUILTIN.Xrender!= \
- if ${GREP} -q BuildRenderLibrary ${_X11_TMPL}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-_BUILTIN_XRENDER= ${_IS_BUILTIN.Xrender}
-. if !empty(_IS_BUILTIN.Xrender:M[yY][eE][sS])
-#
-# Create an appropriate package name for the built-in Xrender distributed
-# with the system. This package name can be used to check against
-# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version
-# or if the built-in one is sufficient.
-#
-# Xrender doesn't provide a method of discovering the version number of
-# the software. Match up Xrender versions with XFree86 versions for an
-# approximate determination of the Xrender version.
-#
-_XRENDER_VERSIONS= 0.8.3 0.8.2 0.8.1 0.8 0.2 0.1
-_XRENDER_0.1= 4.0 4.0.* 4.1 4.1.[0-8][0-9]* 4.1.9[0-8]*
-_XRENDER_0.2= 4.1.99.* 4.2 4.2.[0-8][0-9]* 4.2.9[0-8]*
-_XRENDER_0.8= 4.2.99.* 4.3 4.3.[0-8][0-9]* 4.3.9[0-8]*
-. if !defined(_XF86_VERSION)
-_X11_CONFIG_VERSION_DEF= ${X11BASE}/lib/X11/config/version.def
-. if !exists(${_X11_CONFIG_VERSION_DEF})
-_XF86_VERSION= 3.3
-. else
-_XF86_MAJOR!= \
- ${AWK} '/\#define[ ]*XF86_VERSION_MAJOR/ { print $$3 }' \
- ${_X11_CONFIG_VERSION_DEF}
-_XF86_MINOR!= \
- ${AWK} '/\#define[ ]*XF86_VERSION_MINOR/ { print $$3 }' \
- ${_X11_CONFIG_VERSION_DEF}
-_XF86_PATCH!= \
- ${AWK} '/\#define[ ]*XF86_VERSION_PATCH/ { print $$3 }' \
- ${_X11_CONFIG_VERSION_DEF}
-_XF86_SNAP!= \
- ${AWK} '/\#define[ ]*XF86_VERSION_SNAP/ { print $$3 }' \
- ${_X11_CONFIG_VERSION_DEF}
-_XF86_TEENY= ${_XF86_PATCH}.${_XF86_SNAP}
-. if !empty(_XF86_TEENY:M0.0)
-_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}
-. else
-_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}.${_XF86_TEENY}
-. endif
-. endif
-. endif
-. for _xrender_version_ in ${_XRENDER_VERSIONS}
-. for _pattern_ in ${_XRENDER_${_xrender_version_}}
-. if !empty(_XF86_VERSION:M${_pattern_})
-_XRENDER_VERSION?= ${_xrender_version_}
-. endif
-. endfor
-. endfor
-_XRENDER_VERSION?= 0.1
-_XRENDER_PKG= Xrender-${_XRENDER_VERSION}
-
-_BUILTIN_XRENDER?= YES
-. for _depend_ in ${BUILDLINK_DEPENDS.Xrender}
-. if !empty(_BUILTIN_XRENDER:M[yY][eE][sS])
-_BUILTIN_XRENDER!= \
- if ${PKG_ADMIN} pmatch '${_depend_}' ${_XRENDER_PKG}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-. endfor
-. endif
-. endif
-MAKEFLAGS+= _BUILTIN_XRENDER=${_BUILTIN_XRENDER}
-.endif
-
-.if !empty(_BUILTIN_XRENDER:M[yY][eE][sS])
-_NEED_XRENDER= NO
-.else
-_NEED_XRENDER= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${_BUILTIN_XRENDER} == "YES"
-_NEED_XRENDER= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_XRENDER= YES
-.endif
-.if !empty(PREFER_NATIVE:MXrender) && \
- ${_BUILTIN_XRENDER} == "YES"
-_NEED_XRENDER= NO
-.endif
-.if !empty(PREFER_PKGSRC:MXrender)
-_NEED_XRENDER= YES
-.endif
-
-.if !empty(_REQUIRE_BUILTIN_XRENDER:M[yY][eE][sS])
-_NEED_XRENDER= NO
-.endif
-
-.if ${_NEED_XRENDER} == "YES"
-BUILDLINK_PACKAGES+= Xrender
-EVAL_PREFIX+= BUILDLINK_PREFIX.Xrender=Xrender
-BUILDLINK_PREFIX.Xrender_DEFAULT= ${X11PREFIX}
-#
-# If we depend on the package, depend on the latest version
-# with a library minor bump.
-#
-BUILDLINK_DEPENDS.Xrender= Xrender>=0.8.2
-BUILDLINK_DEPENDS.render= render>=0.8
-.else
-BUILDLINK_PREFIX.Xrender= ${X11BASE}
-.endif
-
-BUILDLINK_FILES.Xrender= include/X11/extensions/Xrender.h
-BUILDLINK_FILES.Xrender+= include/X11/extensions/extutil.h
-BUILDLINK_FILES.Xrender+= include/X11/extensions/region.h
-BUILDLINK_FILES.Xrender+= include/X11/extensions/render.h
-BUILDLINK_FILES.Xrender+= include/X11/extensions/renderproto.h
-BUILDLINK_FILES.Xrender+= lib/libXrender.*
-
-USE_X11= yes
-
-.include "../../x11/render/buildlink2.mk"
-
-BUILDLINK_TARGETS+= Xrender-buildlink
-
-Xrender-buildlink: _BUILDLINK_USE
-
-.endif # XRENDER_BUILDLINK2_MK
diff --git a/x11/fixesext/buildlink2.mk b/x11/fixesext/buildlink2.mk
deleted file mode 100644
index 4dc2a311246..00000000000
--- a/x11/fixesext/buildlink2.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/12/16 08:39:24 recht Exp $
-#
-
-.if !defined(FIXESEXT_BUILDLINK2_MK)
-FIXESEXT_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= fixesext
-BUILDLINK_DEPENDS.fixesext?= fixesext>=2.0
-BUILDLINK_PKGSRCDIR.fixesext?= ../../x11/fixesext
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.fixesext=fixesext
-BUILDLINK_PREFIX.fixesext_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.fixesext+= include/X11/extensions/xfixesproto.h
-BUILDLINK_FILES.fixesext+= include/X11/extensions/xfixeswire.h
-
-USE_X11= yes
-
-BUILDLINK_TARGETS+= fixesext-buildlink
-
-fixesext-buildlink: _BUILDLINK_USE
-
-.endif # FIXESEXT_BUILDLINK2_MK
diff --git a/x11/qt3-libs/buildlink2.mk b/x11/qt3-libs/buildlink2.mk
deleted file mode 100644
index 728212a6981..00000000000
--- a/x11/qt3-libs/buildlink2.mk
+++ /dev/null
@@ -1,49 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.18 2004/03/29 09:27:11 recht Exp $
-
-.if !defined(QT3_LIBS_BUILDLINK2_MK)
-QT3_LIBS_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= qt3-libs
-BUILDLINK_DEPENDS.qt3-libs?= qt3-libs>=3.2.3
-BUILDLINK_PKGSRCDIR.qt3-libs?= ../../x11/qt3-libs
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.qt3-libs=qt3-libs
-BUILDLINK_PREFIX.qt3-libs_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.qt3-libs+= qt3/include/*.h
-BUILDLINK_FILES.qt3-libs+= qt3/include/private/*.h
-BUILDLINK_FILES.qt3-libs+= qt3/lib/libqt-mt.*
-
-QTDIR= ${BUILDLINK_PREFIX.qt3-libs}/qt3
-
-BUILDLINK_CPPFLAGS.qt3-libs= -I${QTDIR}/include
-BUILDLINK_LDFLAGS.qt3-libs= -L${QTDIR}/lib -Wl,${RPATH_FLAG}${QTDIR}/lib
-FIX_RPATH+= BUILDLINK_LDFLAGS.qt3-libs
-
-PTHREAD_OPTS+= require
-
-.include "../../devel/zlib/buildlink2.mk"
-.include "../../fonts/Xft2/buildlink2.mk"
-.include "../../graphics/MesaLib/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
-.include "../../graphics/glu/buildlink2.mk"
-.include "../../graphics/jpeg/buildlink2.mk"
-.include "../../graphics/mng/buildlink2.mk"
-.include "../../graphics/png/buildlink2.mk"
-.include "../../x11/Xrandr/buildlink2.mk"
-.include "../../x11/xcursor/buildlink2.mk"
-.include "../../mk/pthread.buildlink2.mk"
-
-CONFIGURE_ENV+= MOC="${QTDIR}/bin/moc"
-MAKE_ENV+= MOC="${QTDIR}/bin/moc"
-LDFLAGS+= -Wl,${RPATH_FLAG}${QTDIR}/lib
-
-.if !defined(BUILD_QT3)
-CONFIGURE_ENV+= QTDIR="${QTDIR}"
-MAKE_ENV+= QTDIR="${QTDIR}"
-.endif
-
-BUILDLINK_TARGETS+= qt3-libs-buildlink
-
-qt3-libs-buildlink: _BUILDLINK_USE
-
-.endif # QT3_LIBS_BUILDLINK2_MK
diff --git a/x11/randrext/buildlink2.mk b/x11/randrext/buildlink2.mk
deleted file mode 100644
index 6ff11f7a6ce..00000000000
--- a/x11/randrext/buildlink2.mk
+++ /dev/null
@@ -1,34 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.3 2004/03/15 17:30:18 recht Exp $
-#
-# This Makefile fragment is included by packages that use randrext.
-#
-# This file was created automatically using createbuildlink 2.8.
-#
-
-.if !defined(RANDREXT_BUILDLINK2_MK)
-RANDREXT_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_PACKAGES+= randrext
-# Xrandr won't build without the X Extension library which is only present
-# in XFree86>=4.3.
-# For this reason we don't need the header files.
-. if exists(${X11BASE}/include/X11/extensions/extutil.h)
-BUILDLINK_DEPENDS.randrext?= randrext>=1.0
-BUILDLINK_PKGSRCDIR.randrext?= ../../x11/randrext
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.randrext=randrext
-BUILDLINK_PREFIX.randrext_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.randrext+= include/X11/extensions/randr.h
-BUILDLINK_FILES.randrext+= include/X11/extensions/randrproto.h
-. else
-BUILDLINK_PREFIX.randrext= ${X11BASE}
-BUILDLINK_PREFIX.randrext_DEFAULT= ${X11BASE}
-. endif
-
-BUILDLINK_TARGETS+= randrext-buildlink
-
-randrext-buildlink: _BUILDLINK_USE
-
-.endif # RANDREXT_BUILDLINK2_MK
diff --git a/x11/render/buildlink2.mk b/x11/render/buildlink2.mk
deleted file mode 100644
index ceb583b3481..00000000000
--- a/x11/render/buildlink2.mk
+++ /dev/null
@@ -1,91 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.2 2004/02/16 12:39:00 jlam Exp $
-
-.if !defined(RENDER_BUILDLINK2_MK)
-RENDER_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.render?= render>=0.2
-BUILDLINK_PKGSRCDIR.render?= ../../x11/render
-BUILDLINK_DEPMETHOD.render?= build
-
-# Check if we got render distributed with XFree86 4.x or if we need to
-# depend on the render package.
-#
-_REQUIRE_BUILTIN_RENDER?= NO
-
-_RENDER_H= ${X11BASE}/include/X11/extensions/render.h
-
-.if !defined(_BUILTIN_RENDER)
-_BUILTIN_RENDER= NO
-. if exists(${_RENDER_H})
-# Create an appropriate render package name for the built-in render
-# distributed with XFree86 4.x. This package name can be used to check
-# against BUILDLINK_DEPENDS.render to see if we need to install the
-# pkgsrc render or if the built-in one is sufficient.
-#
-_RENDER_MAJOR!= \
- ${AWK} '/.*\#define.*RENDER_MAJOR/ { print $$3 }' ${_RENDER_H}
-_RENDER_MINOR!= \
- ${AWK} '/.*\#define.*RENDER_MINOR/ { print "."$$3 }' ${_RENDER_H}
-_RENDER_VERSION= ${_RENDER_MAJOR}${_RENDER_MINOR}
-_RENDER_PKG= render-${_RENDER_VERSION}
-_RENDER_DEPENDS= ${BUILDLINK_DEPENDS.render}
-_BUILTIN_RENDER!= \
- if ${PKG_ADMIN} pmatch '${_RENDER_DEPENDS}' ${_RENDER_PKG}; then \
- if ${GREP} -q BuildRenderLibrary ${_X11_TMPL}; then \
- ${ECHO} "YES"; \
- else \
- ${ECHO} "NO"; \
- fi; \
- else \
- ${ECHO} "NO"; \
- fi
-. endif
-MAKEFLAGS+= _BUILTIN_RENDER=${_BUILTIN_RENDER}
-.endif
-
-.if !empty(_BUILTIN_RENDER:M[yY][eE][sS])
-_NEED_RENDER= NO
-.else
-_NEED_RENDER= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${_BUILTIN_RENDER} == "YES"
-_NEED_RENDER= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_RENDER= YES
-.endif
-.if !empty(PREFER_NATIVE:Mrender) && \
- ${_BUILTIN_RENDER} == "YES"
-_NEED_RENDER= NO
-.endif
-.if !empty(PREFER_PKGSRC:Mrender)
-_NEED_RENDER= YES
-.endif
-
-.if !empty(_REQUIRE_BUILTIN_RENDER:M[yY][eE][sS])
-_NEED_RENDER= NO
-.endif
-
-.if ${_NEED_RENDER} == "YES"
-BUILDLINK_PACKAGES+= render
-EVAL_PREFIX+= BUILDLINK_PREFIX.render=render
-BUILDLINK_PREFIX.render_DEFAULT= ${X11PREFIX}
-BUILDLINK_DEPENDS.render= render>=0.8
-.else
-BUILDLINK_PREFIX.render= ${X11BASE}
-.endif
-
-BUILDLINK_FILES.render= include/X11/extensions/render.h
-BUILDLINK_FILES.render+= include/X11/extensions/renderproto.h
-
-USE_X11= yes
-
-BUILDLINK_TARGETS+= render-buildlink
-
-render-buildlink: _BUILDLINK_USE
-
-.endif # RENDER_BUILDLINK2_MK
diff --git a/x11/xcursor/buildlink2.mk b/x11/xcursor/buildlink2.mk
deleted file mode 100644
index fedc099f288..00000000000
--- a/x11/xcursor/buildlink2.mk
+++ /dev/null
@@ -1,103 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.4 2004/03/15 16:24:24 recht Exp $
-
-.if !defined(XCURSOR_BUILDLINK2_MK)
-XCURSOR_BUILDLINK2_MK= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-BUILDLINK_DEPENDS.xcursor?= xcursor>=1.0
-BUILDLINK_PKGSRCDIR.xcursor?= ../../x11/xcursor
-
-# Check if we got xcursor distributed with XFree86 4.x or if we need to
-# depend on the xcursor package.
-#
-_REQUIRE_BUILTIN_XCURSOR?= NO
-
-_X11_XCURSOR_XCURSOR_H= ${X11BASE}/include/X11/Xcursor/Xcursor.h
-
-.if !defined(_BUILTIN_XCURSOR)
-_BUILTIN_XCURSOR= NO
-. if exists(${_X11_XCURSOR_XCURSOR_H})
-_BUILTIN_XCURSOR= YES
-#
-# Create an appropriate package name for the built-in Xcursor distributed
-# with the system. This package name can be used to check against
-# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version
-# or if the built-in one is sufficient.
-#
-_XCURSOR_MAJOR!= \
- ${AWK} '/\#define[ ]*XCURSOR_MAJOR/ { print $$3 }' \
- ${_X11_XCURSOR_XCURSOR_H}
-_XCURSOR_MINOR!= \
- ${AWK} '/\#define[ ]*XCURSOR_MINOR/ { print "."$$3 }' \
- ${_X11_XCURSOR_XCURSOR_H}
-_XCURSOR_REVISION!= \
- ${AWK} '/\#define[ ]*XCURSOR_MINOR/ { print "."$$3 }' \
- ${_X11_XCURSOR_XCURSOR_H}
-_XCURSOR_VERSION= ${_XCURSOR_MAJOR}${_XCURSOR_MINOR}${_XCURSOR_REVISION}
-_XCURSOR_PKG= xcursor-${_XCURSOR_VERSION}
-
-_BUILTIN_XCURSOR?= YES
-. for _depend_ in ${BUILDLINK_DEPENDS.xcursor}
-. if !empty(_BUILTIN_XCURSOR:M[yY][eE][sS])
-_BUILTIN_XCURSOR!= \
- if ${PKG_ADMIN} pmatch '${_depend_}' ${_XCURSOR_PKG}; then \
- ${ECHO} "yes"; \
- else \
- ${ECHO} "no"; \
- fi
-. endif
-. endfor
-. endif
-MAKEFLAGS+= _BUILTIN_XCURSOR=${_BUILTIN_XCURSOR}
-.endif
-
-.if !empty(_BUILTIN_XCURSOR:M[yY][eE][sS])
-_NEED_XCURSOR= NO
-.else
-_NEED_XCURSOR= YES
-.endif
-
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- ${_BUILTIN_XCURSOR} == "YES"
-_NEED_XCURSOR= NO
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
-_NEED_XCURSOR= YES
-.endif
-.if !empty(PREFER_NATIVE:Mxcursor) && \
- ${_BUILTIN_XCURSOR} == "YES"
-_NEED_XCURSOR= NO
-.endif
-.if !empty(PREFER_PKGSRC:Mxcursor)
-_NEED_XCURSOR= YES
-.endif
-
-.if !empty(_REQUIRE_BUILTIN_XCURSOR:M[yY][eE][sS])
-_NEED_XCURSOR= NO
-.endif
-
-.if ${_NEED_XCURSOR} == "YES"
-BUILDLINK_PACKAGES+= xcursor
-EVAL_PREFIX+= BUILDLINK_PREFIX.xcursor=xcursor
-BUILDLINK_PREFIX.xcursor_DEFAULT= ${LOCALBASE}
-
-BUILDLINK_DEPENDS.xcursor= xcursor>=1.1.1
-BUILDLINK_DEPENDS.Xrender= Xrender>=0.8
-.else
-BUILDLINK_PREFIX.xcursor= ${X11BASE}
-.endif
-
-BUILDLINK_FILES.xcursor+= include/X11/Xcursor/*.h
-BUILDLINK_FILES.xcursor+= lib/libXcursor.*
-
-USE_X11= yes
-
-.include "../../x11/Xfixes/buildlink2.mk"
-.include "../../x11/Xrender/buildlink2.mk"
-
-BUILDLINK_TARGETS+= xcursor-buildlink
-
-xcursor-buildlink: _BUILDLINK_USE
-
-.endif # XCURSOR_BUILDLINK2_MK