summaryrefslogtreecommitdiff
path: root/databases/tcl-fbsql
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-12-08 10:20:43 +0000
committerjoerg <joerg@pkgsrc.org>2009-12-08 10:20:43 +0000
commit69f2f6e6f29a493cef72bf966085b0e9753771d2 (patch)
treef572a29e81b7ef8adefbd46ba16f3497ecd87e1c /databases/tcl-fbsql
parentd8f0294f58ee159d2eede2a2ec981d19c022ef2c (diff)
downloadpkgsrc-69f2f6e6f29a493cef72bf966085b0e9753771d2.tar.gz
Correctly build the module using the libtool approach. It worked more by
luck than intentional before. Bump revision.
Diffstat (limited to 'databases/tcl-fbsql')
-rw-r--r--databases/tcl-fbsql/Makefile6
-rw-r--r--databases/tcl-fbsql/PLIST4
-rw-r--r--databases/tcl-fbsql/files/Makefile8
3 files changed, 9 insertions, 9 deletions
diff --git a/databases/tcl-fbsql/Makefile b/databases/tcl-fbsql/Makefile
index c95c905f7b1..dc56d423a69 100644
--- a/databases/tcl-fbsql/Makefile
+++ b/databases/tcl-fbsql/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.22 2008/03/03 15:21:07 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2009/12/08 10:20:43 joerg Exp $
DISTNAME= fbsql.c
PKGNAME= tcl-fbsql-1.06
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://www.fastbase.co.nz/fbsql/
EXTRACT_SUFX=
@@ -24,7 +24,7 @@ do-extract:
${CP} ${_DISTDIR}/fbsql.c ${WRKSRC}/
do-install:
- ${INSTALL_LIB} ${WRKSRC}/fbsql.so ${DESTDIR}${PREFIX}/lib/tcl
+ libtool --mode=install ${INSTALL_LIB} ${WRKSRC}/fbsql.la ${DESTDIR}${PREFIX}/lib/tcl
.include "../../mk/mysql.buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
diff --git a/databases/tcl-fbsql/PLIST b/databases/tcl-fbsql/PLIST
index 0c6cde3a8ca..39bd31a9a0b 100644
--- a/databases/tcl-fbsql/PLIST
+++ b/databases/tcl-fbsql/PLIST
@@ -1,2 +1,2 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/07 16:17:49 bouyer Exp $
-lib/tcl/fbsql.so
+@comment $NetBSD: PLIST,v 1.2 2009/12/08 10:20:44 joerg Exp $
+lib/tcl/fbsql.la
diff --git a/databases/tcl-fbsql/files/Makefile b/databases/tcl-fbsql/files/Makefile
index 0cfe1e287ef..989ed63316d 100644
--- a/databases/tcl-fbsql/files/Makefile
+++ b/databases/tcl-fbsql/files/Makefile
@@ -5,14 +5,14 @@ PIC = -fPIC
INCLUDES = -I${PREFIX}/include/tcl -I$(MYSQLINCDIR)
CFLAGS += -Wall $(PIC) $(INCLUDES)
-LDFLAGS = -lz $(MYSQLLIBDIR)/libmysqlclient.la
+LDFLAGS = -lz $(MYSQLLIBDIR)/libmysqlclient.la -L$(PREFIX)/lib -ltcl
-all: fbsql.so
+all: fbsql.la
fbsql.lo: fbsql.c
$(LIBTOOL) --mode=compile ${CC} ${CFLAGS} -c fbsql.c
-fbsql.so: fbsql.lo
- $(LIBTOOL) --mode=link ${CC} -shared -o $@ fbsql.lo $(LDFLAGS)
+fbsql.la: fbsql.lo
+ $(LIBTOOL) --mode=link ${CC} -module -rpath ${PREFIX}/lib/tcl -o fbsql.la fbsql.lo $(LDFLAGS)
clean:
-rm -f core *.o fbsql.so