pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/p5-DBD-Sybase allow linking against the nati...
details: https://anonhg.NetBSD.org/pkgsrc/rev/66096d2bf9a1
branches: trunk
changeset: 471591:66096d2bf9a1
user: grant <grant%pkgsrc.org@localhost>
date: Mon Mar 29 09:58:28 2004 +0000
description:
allow linking against the native Sybase Open Client by defining
USE_SYBASE_OPENCLIENT and setting SYBASE to the root of the Sybase
Open Client installation.
diffstat:
databases/p5-DBD-Sybase/Makefile | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 400b14611bd0 -r 66096d2bf9a1 databases/p5-DBD-Sybase/Makefile
--- a/databases/p5-DBD-Sybase/Makefile Mon Mar 29 09:54:58 2004 +0000
+++ b/databases/p5-DBD-Sybase/Makefile Mon Mar 29 09:58:28 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2003/07/21 16:39:07 martti Exp $
+# $NetBSD: Makefile,v 1.14 2004/03/29 09:58:28 grant Exp $
#
DISTNAME= DBD-Sybase-0.94
@@ -15,10 +15,27 @@
USE_BUILDLINK2= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/DBD/Sybase/.packlist
-PERL5_LDFLAGS+= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.freetds}/freetds/lib
-MAKE_ENV+= SYBASE=${BUILDLINK_PREFIX.freetds}/freetds
+BUILD_DEFS+= USE_SYBASE_OPENCLIENT
+BUILD_DEFS+= SYBASE
-.include "../../databases/freetds/buildlink2.mk"
+.if defined(USE_SYBASE_OPENCLIENT) && empty(USE_SYBASE_OPENCLIENT:M[Nn][Oo])
+. if defined(SYBASE) || exists(${SYBASE}/lib/libct.so)
+BUILDLINK_PASSTHRU_DIRS=${SYBASE}
+_SYBASE= ${SYBASE}
+. else
+PKG_FAIL_REASON+= "You must define SYBASE to the base directory of your Open Client."
+. endif
+.else
+_SYBASE= ${BUILDLINK_PREFIX.freetds}/freetds
+.endif
+
+PERL5_LDFLAGS+= -Wl,${RPATH_FLAG}${_SYBASE}/lib
+MAKE_ENV+= SYBASE=${_SYBASE}
+
+.if !defined(USE_SYBASE_OPENCLIENT)
+. include "../../databases/freetds/buildlink2.mk"
+.endif
+
.include "../../databases/p5-DBI/buildlink2.mk"
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index