summaryrefslogtreecommitdiff
path: root/databases/freetds/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-06-23 03:38:21 +0000
committerjlam <jlam@pkgsrc.org>2002-06-23 03:38:21 +0000
commit7f6b483fc38a005e56b15a461810e9a5f9bb7517 (patch)
treefc2912965091eeff034ed3adaf172a3ecea5eebe /databases/freetds/Makefile
parent7fc61ff015cc796f46a7705e9a07e54712551110 (diff)
downloadpkgsrc-7f6b483fc38a005e56b15a461810e9a5f9bb7517.tar.gz
* Honor PKG_SYSCONFDIR for location of freetds.conf config file.
* Use GNU_CONFIGURE_PREFIX instead of HAS_CONFIGURE workaround.
Diffstat (limited to 'databases/freetds/Makefile')
-rw-r--r--databases/freetds/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile
index 5498b2a58db..9e154e21ac6 100644
--- a/databases/freetds/Makefile
+++ b/databases/freetds/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2002/03/14 23:57:02 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2002/06/23 03:38:21 jlam Exp $
DISTNAME= freetds-0.53
CATEGORIES= databases
@@ -12,14 +12,20 @@ COMMENT= LGPL'd implementation of Sybase's db-lib/ct-lib/ODBC libs
USE_BUILDLINK_ONLY= yes
USE_GMAKE= yes
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX}/freetds
+GNU_CONFIGURE= yes
+GNU_CONFIGURE_PREFIX= ${PREFIX}/freetds
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-tdsver=7.0
USE_LIBTOOL= yes
-LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
-#post-install:
-# ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/doc/db
+EGDIR= ${PREFIX}/share/examples/freetds
+CONF_FILES= ${EGDIR}/freetds.conf ${PKG_SYSCONFDIR}/freetds.conf
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/freetds.conf ${EGDIR}
+
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"