| 1 | # $Id$ |
|---|
| 2 | NAME = freetds |
|---|
| 3 | VERSION = 0.91 |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Implementation of the TDS protocol used by MS SQL Server and Sybase |
|---|
| 7 | define BLURB |
|---|
| 8 | FreeTDS is a set of libraries for Unix and Linux that allows your programs |
|---|
| 9 | to natively talk to Microsoft SQL Server and Sybase databases. |
|---|
| 10 | endef |
|---|
| 11 | |
|---|
| 12 | MASTER_SITES += http://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/ |
|---|
| 13 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 14 | |
|---|
| 15 | VENDOR_URL = http://www.freetds.org/ |
|---|
| 16 | |
|---|
| 17 | BUILD_DEP_PKGS += CSWlibreadline-dev |
|---|
| 18 | BUILD_DEP_PKGS += CSWlibncurses-dev |
|---|
| 19 | BUILD_DEP_PKGS += CSWunixodbc-dev |
|---|
| 20 | |
|---|
| 21 | PACKAGES = CSWfreetds |
|---|
| 22 | SPKG_DESC_CSWfreetds = $(DESCRIPTION) |
|---|
| 23 | # PKGFILES is catchall |
|---|
| 24 | RUNTIME_DEP_PKGS_CSWfreetds += CSWlibodbc2 |
|---|
| 25 | RUNTIME_DEP_PKGS_CSWfreetds += CSWlibiconv2 |
|---|
| 26 | RUNTIME_DEP_PKGS_CSWfreetds += CSWlibncurses5 |
|---|
| 27 | RUNTIME_DEP_PKGS_CSWfreetds += CSWlibreadline6 |
|---|
| 28 | RUNTIME_DEP_PKGS_CSWfreetds += CSWlibsybdb5 |
|---|
| 29 | # This is just an example |
|---|
| 30 | CHECKPKG_OVERRIDES_CSWfreetds += file-with-bad-content|/usr/local|root/opt/csw/bin/osql |
|---|
| 31 | |
|---|
| 32 | PACKAGES += CSWlibct4 |
|---|
| 33 | SPKG_DESC_CSWlibct4 = FreeTDS library, libct.so.4 |
|---|
| 34 | PKGFILES_CSWlibct4 += $(call pkgfiles_lib,libct.so.4) |
|---|
| 35 | RUNTIME_DEP_PKGS_CSWlibct4 += CSWlibiconv2 |
|---|
| 36 | |
|---|
| 37 | PACKAGES += CSWlibsybdb5 |
|---|
| 38 | SPKG_DESC_CSWlibsybdb5 += FreeTDS library, libsybdb.so.5 |
|---|
| 39 | PKGFILES_CSWlibsybdb5 += $(call pkgfiles_lib,libsybdb.so.5) |
|---|
| 40 | RUNTIME_DEP_PKGS_CSWlibsybdb5 += CSWlibiconv2 |
|---|
| 41 | |
|---|
| 42 | PACKAGES += CSWlibtdsodbc0 |
|---|
| 43 | SPKG_DESC_CSWlibtdsodbc0 = FreeTDS library, libtdsodbc.so.0 |
|---|
| 44 | PKGFILES_CSWlibtdsodbc0 += $(call pkgfiles_lib,libtdsodbc.so.0) |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWlibtdsodbc0 += CSWlibodbcinst2 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibtdsodbc0 += CSWlibiconv2 |
|---|
| 47 | |
|---|
| 48 | PACKAGES += CSWfreetds-dev |
|---|
| 49 | SPKG_DESC_CSWfreetds-dev = Development files for libct.so.4, libsybdb.so.5 and libtdsodbc.so.0 |
|---|
| 50 | PKGFILES_CSWfreetds-dev += $(PKGFILES_DEVEL) |
|---|
| 51 | PKGFILES_CSWfreetds-dev += $(docdir)/.* |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWfreetds-dev += CSWlibsybdb5 |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWfreetds-dev += CSWlibct4 |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWfreetds-dev += CSWlibtdsodbc0 |
|---|
| 55 | OBSOLETED_BY_CSWfreetds-dev += CSWfreetdsdoc |
|---|
| 56 | CATALOGNAME_CSWfreetdsdoc = freetds_doc_stub |
|---|
| 57 | # There are lots of examples which would need careful adjustment, contributions welcome! |
|---|
| 58 | CHECKPKG_OVERRIDES_CSWfreetds-dev += file-with-bad-content |
|---|
| 59 | |
|---|
| 60 | # Make sure library is self-sufficient |
|---|
| 61 | EXTRA_LINKER_FLAGS = -liconv |
|---|
| 62 | |
|---|
| 63 | BUILD64_LIBS_ONLY = 1 |
|---|
| 64 | |
|---|
| 65 | # Testsuite needs a running Sybase/SQLServer database |
|---|
| 66 | SKIPTEST ?= 1 |
|---|
| 67 | |
|---|
| 68 | EXTRA_PAX_ARGS = -s ',.*{}$$,,p' -s ',/doc/$(NAME)-$(VERSION),/doc/$(NAME),p' |
|---|
| 69 | |
|---|
| 70 | PRESERVECONF = $(addprefix $(sysconfdir)/,freetds.conf locales.conf pool.conf) |
|---|
| 71 | MIGRATE_FILES_CSWfreetds = freetds.conf locales.conf pool.conf |
|---|
| 72 | |
|---|
| 73 | include gar/category.mk |
|---|