aboutsummaryrefslogtreecommitdiffstats
path: root/databases/freetds-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/freetds-devel/Makefile')
-rw-r--r--databases/freetds-devel/Makefile39
1 files changed, 11 insertions, 28 deletions
diff --git a/databases/freetds-devel/Makefile b/databases/freetds-devel/Makefile
index dd7eae9053ab..48eef8dec70d 100644
--- a/databases/freetds-devel/Makefile
+++ b/databases/freetds-devel/Makefile
@@ -5,17 +5,16 @@
# $FreeBSD$
PORTNAME= freetds
-PORTVERSION= 0.82.1
+PORTVERSION= 0.64
+PORTREVISION= 2
+PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= ALPHA/${PORTNAME}/stable
-DISTNAME= freetds-patched
-EXTRACT_SUFX= .tgz
-MAINTAINER???= cowbert@gmail.com
+MAINTAINER?= cowbert@gmail.com
COMMENT= Sybase/Microsoft TDS protocol library
-WRKSRC= ${WRKDIR}/freetds-0.82.1.dev.20081111
TDS_VER?= 5.0
USE_ICONV= yes
@@ -27,19 +26,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CONFIGURE_ARGS= --with-tdsver=${TDS_VER}
USE_LDCONFIG= yes
-PORTDOCS= *
-
-MAN1= datacopy.1 freebcp.1 tsql.1 bsqldb.1 bsqlodbc.1 \
- defncopy.1 fisql.1 osql.1
-
-MAN5= freetds.conf.5
-
-OPTIONS= OPENSSL "Use OpenSSL" off \
- IODBC "Use libiodbc (Mutually Exclusive)" off \
- UNIXODBC "Use unixODBC (Mutually Exclusive)" off \
- MSDBLIB "MS SQL Server support (breaks databases/sybtcl)" off
-
-.include <bsd.port.pre.mk>
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
+MAN1= datacopy.1 freebcp.1 tsql.1 bsqldb.1 defncopy.1
.if defined(WITH_OPENSSL)
USE_OPENSSL= yes
@@ -56,10 +44,6 @@ LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE}
.endif
-.if defined(WITH_IODBC) && defined(WITH_UNIXODBC)
-IGNORE= selected mutually exclusive options: WITH_IODBC and WITH_UNIXODBC
-.endif
-
.if defined(WITH_IODBC) || defined(WITH_UNIXODBC)
PLIST_SUB+= ODBC=""
.else
@@ -70,7 +54,10 @@ PLIST_SUB+= ODBC="@comment "
# relies on sybase-style dblib
.if defined(WITH_MSDBLIB)
CONFIGURE_ARGS+= --enable-msdblib
-TDS_VER?= 7.0
+.endif
+
+.if defined(NOPORTDOCS)
+EXTRA_PATCHES= ${PATCHDIR}/noportdocs-patch-doc__Makefile.in
.endif
post-extract:
@@ -87,13 +74,9 @@ post-patch:
s| common.h||g'
post-install:
-.if !defined(NOPORTDOCS)
- @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${DOCSDIR}
- @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} doc ${DOCSDIR}
-.endif
@${MKDIR} ${PREFIX}/etc/freetds
@${INSTALL_DATA} ${WRKSRC}/interfaces ${PREFIX}/etc/freetds/interfaces.dist
@${ECHO_CMD} "Sample configuration files have been installed in ${PREFIX}/etc"
@${ECHO_CMD} "You should edit them and remove the .dist-suffix from their names"
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>