summaryrefslogtreecommitdiff
path: root/databases/p5-sybperl/Makefile
diff options
context:
space:
mode:
authorgrant <grant>2004-03-29 10:01:33 +0000
committergrant <grant>2004-03-29 10:01:33 +0000
commit0ab9accab317d10e6443fbcd0c87d72e614681c2 (patch)
tree2f3fd2994a6e1b539307057206ae3ea563532aaf /databases/p5-sybperl/Makefile
parent0c0fd12fbae966200be2c0d63347bd9f2586655d (diff)
downloadpkgsrc-0ab9accab317d10e6443fbcd0c87d72e614681c2.tar.gz
Initial import of p5-sybperl-2.16 into the NetBSD packages collection.
sybperl includes four modules: Sybase::DBlib, Sybase::CTlib, Sybase::BCP and Sybase::Sybperl. The first two implement a thin wrapper around the Sybase DB-Library and Client Library APIs, respectively. Sybase::BCP is a specialty module aimed at doing Bulk-Copy operations, and Sybase::Sybperl is a compatibility module with sybperl 1.xx (i.e. with the perl 4.x version). The sybperl modules are thin wrappers around the Sybase APIs. This is both good and bad. It's good because you have greater control, and because the API is (obviously) close to the way the server and the protocol work. It's bad in that it's a proprietary API, and that it is somewhat verbose.
Diffstat (limited to 'databases/p5-sybperl/Makefile')
-rw-r--r--databases/p5-sybperl/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/databases/p5-sybperl/Makefile b/databases/p5-sybperl/Makefile
new file mode 100644
index 00000000000..9a139af7334
--- /dev/null
+++ b/databases/p5-sybperl/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/03/29 10:01:33 grant Exp $
+#
+
+DISTNAME= sybperl-2.16
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= databases perl5
+MASTER_SITES= http://www.peppler.org/downloads/
+
+MAINTAINER= grant@NetBSD.org
+HOMEPAGE= http://www.mbay.net/~mpeppler/
+COMMENT= Perl modules for using Sybase/MS-SQL databases
+
+USE_BUILDLINK2= YES
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Sybase/.packlist
+
+BUILD_DEFS+= USE_SYBASE_OPENCLIENT
+BUILD_DEFS+= SYBASE
+
+.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 "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"