summaryrefslogtreecommitdiff
path: root/databases/iodbc
diff options
context:
space:
mode:
authorsnj <snj>2004-05-05 03:16:02 +0000
committersnj <snj>2004-05-05 03:16:02 +0000
commitcdfb5285f6db65f96c669dab9ca7effb431b686d (patch)
tree6b2e85043dcbe6824880b441065c65fa0734939f /databases/iodbc
parent9c65ebf9ab72cd2b6937d88bc8abe21c0b1da165 (diff)
downloadpkgsrc-cdfb5285f6db65f96c669dab9ca7effb431b686d.tar.gz
Convert to buildlink3.
Diffstat (limited to 'databases/iodbc')
-rw-r--r--databases/iodbc/Makefile3
-rw-r--r--databases/iodbc/buildlink2.mk24
-rw-r--r--databases/iodbc/buildlink3.mk18
3 files changed, 20 insertions, 25 deletions
diff --git a/databases/iodbc/Makefile b/databases/iodbc/Makefile
index 8ff2454eb0a..8ccd98333bf 100644
--- a/databases/iodbc/Makefile
+++ b/databases/iodbc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2004/04/24 22:46:09 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2004/05/05 03:16:02 snj Exp $
#
DISTNAME= libiodbc-2.50.3
@@ -13,6 +13,7 @@ COMMENT= ODBC 2.x driver manager
CONFLICTS+= unixodbc-[0-9]*
GNU_CONFIGURE= yes
+USE_BUILDLINK3= yes
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
diff --git a/databases/iodbc/buildlink2.mk b/databases/iodbc/buildlink2.mk
deleted file mode 100644
index 1c3373bcf78..00000000000
--- a/databases/iodbc/buildlink2.mk
+++ /dev/null
@@ -1,24 +0,0 @@
-# $NetBSD: buildlink2.mk,v 1.1 2003/04/13 15:26:31 cjep Exp $
-
-.if !defined(IODBC_BUILDLINK2_MK)
-IODBC_BUILDLINK2_MK= # defined
-
-BUILDLINK_PACKAGES+= iodbc
-BUILDLINK_DEPENDS.iodbc?= iodbc>=2.50.3
-BUILDLINK_PKGSRCDIR.iodbc?= ../../databases/iodbc
-
-EVAL_PREFIX+= BUILDLINK_PREFIX.iodbc=iodbc
-BUILDLINK_PREFIX.iodbc_DEFAULT= ${LOCALBASE}
-BUILDLINK_FILES.iodbc= include/isql.h
-BUILDLINK_FILES.iodbc+= include/isqlext.h
-BUILDLINK_FILES.iodbc+= include/isqltypes.h
-BUILDLINK_FILES.iodbc+= include/sql.h
-BUILDLINK_FILES.iodbc+= include/sqlext.h
-BUILDLINK_FILES.iodbc+= include/sqltypes.h
-BUILDLINK_FILES.iodbc+= lib/libiodbc.*
-
-BUILDLINK_TARGETS+= iodbc-buildlink
-
-iodbc-buildlink: _BUILDLINK_USE
-
-.endif # IODBC_LIB_BUILDLINK2_MK
diff --git a/databases/iodbc/buildlink3.mk b/databases/iodbc/buildlink3.mk
new file mode 100644
index 00000000000..f727fa5f68d
--- /dev/null
+++ b/databases/iodbc/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/05/05 03:16:02 snj Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+IODBC_BUILDLINK3_MK:= ${IODBC_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= iodbc
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Niodbc}
+BUILDLINK_PACKAGES+= iodbc
+
+.if !empty(IODBC_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.iodbc+= iodbc>=2.50.3
+BUILDLINK_PKGSRCDIR.iodbc?= ../../databases/iodbc
+.endif # IODBC_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}