diff options
author | grant <grant@pkgsrc.org> | 2005-07-31 14:03:28 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-07-31 14:03:28 +0000 |
commit | b4e4ec83192115b85eb18d17511ec5665ea4a56a (patch) | |
tree | a1d419b8d39ea74e54c6ec585f8449772a77afa4 /misc | |
parent | c97345dfe88934e218a7b8fbef568e3965fc8157 (diff) | |
download | pkgsrc-b4e4ec83192115b85eb18d17511ec5665ea4a56a.tar.gz |
- remove hardcoded /usr/pkg in patch, simplify
- honour CPPFLAGS, LDFLAGS, LIBS
- needs -lnsl -lsocket on Solaris
Diffstat (limited to 'misc')
-rw-r--r-- | misc/open2300-mysql/Makefile | 6 | ||||
-rw-r--r-- | misc/open2300/distinfo | 4 | ||||
-rw-r--r-- | misc/open2300/patches/patch-aa | 46 |
3 files changed, 29 insertions, 27 deletions
diff --git a/misc/open2300-mysql/Makefile b/misc/open2300-mysql/Makefile index 8f77c6a3b40..919be8fb329 100644 --- a/misc/open2300-mysql/Makefile +++ b/misc/open2300-mysql/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2005/07/31 13:35:37 grant Exp $ +# $NetBSD: Makefile,v 1.5 2005/07/31 14:03:28 grant Exp $ # PKGNAME= ${DISTNAME:S/-/-mysql-/} @@ -10,5 +10,9 @@ DISTINFO_FILE= ${.CURDIR}/../open2300/distinfo BUILD_TARGET= mysql2300 INSTALL_TARGET= install-mysql +LIBS+= -lmysqlclient +LIBS.SunOS+= -lnsl -lsocket +MAKE_ENV+= LIBS=${LIBS:Q} + .include "../../mk/mysql.buildlink3.mk" .include "../open2300/Makefile.common" diff --git a/misc/open2300/distinfo b/misc/open2300/distinfo index d6c527620a3..09c92f955cb 100644 --- a/misc/open2300/distinfo +++ b/misc/open2300/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.6 2005/02/24 11:02:56 agc Exp $ +$NetBSD: distinfo,v 1.7 2005/07/31 14:03:28 grant Exp $ SHA1 (open2300-1.8.tar.gz) = 86fd2dcdef995498ed17062dd4b8df5db6b3383d RMD160 (open2300-1.8.tar.gz) = d0b7618cfa7d0ea92708d949fd4521311627865f Size (open2300-1.8.tar.gz) = 330320 bytes -SHA1 (patch-aa) = 3f2cc9994e45a77d2bfc6907515e5c7c4a6d13d3 +SHA1 (patch-aa) = 9bdd5011c60b2af676d9f86b96e18d67cad6bf0d SHA1 (patch-ab) = 9437137a36e434fcabde6acc5373be04523357e9 SHA1 (patch-ac) = 48762f4c60ca475031659cad94701a1bc83b6795 diff --git a/misc/open2300/patches/patch-aa b/misc/open2300/patches/patch-aa index 4004f8fb607..8d69da42ebe 100644 --- a/misc/open2300/patches/patch-aa +++ b/misc/open2300/patches/patch-aa @@ -1,44 +1,42 @@ -$NetBSD: patch-aa,v 1.3 2004/11/29 08:22:27 martin Exp $ +$NetBSD: patch-aa,v 1.4 2005/07/31 14:03:28 grant Exp $ ---- Makefile.orig 2004-11-13 01:25:31.000000000 +0100 -+++ Makefile 2004-11-29 09:12:16.000000000 +0100 -@@ -4,7 +4,7 @@ - # Default locations are - # 1. Path to config file including filename given as parameter - # 2. ./open2300.conf --# 3. /usr/local/etc/open2300.conf -+# 3. ${SYSCONFDIR}/open2300.conf - # 4. /etc/open2300.conf - # - # This makefile is made for Linux. -@@ -12,7 +12,7 @@ - # - # You may want to adjust the 3 directories below +--- Makefile.orig 2004-11-13 11:25:31.000000000 +1100 ++++ Makefile +@@ -14,11 +14,11 @@ --prefix = /usr/local -+prefix = ${PREFIX} + prefix = /usr/local exec_prefix = ${prefix} - bindir = ${exec_prefix}/bin +-bindir = ${exec_prefix}/bin ++bindir = ${PREFIX}/bin -@@ -37,7 +37,7 @@ + ######################################### + +-CC = gcc ++#CC = gcc + OBJ = open2300.o rw2300.o linux2300.o win2300.o + LOGOBJ = log2300.o rw2300.o linux2300.o win2300.o + FETCHOBJ = fetch2300.o rw2300.o linux2300.o win2300.o +@@ -37,8 +37,8 @@ MINMAXOBJ = minmax2300.o rw2300.o linux2 VERSION = 1.8 -CFLAGS = -Wall -O3 -DVERSION=\"$(VERSION)\" -+CFLAGS += -DVERSION=\"$(VERSION)\" -DSYSCONFDIR=\"$(PKG_SYSCONFDIR)\" -I /usr/pkg/include/mysql - CC_LDFLAGS = -lm +-CC_LDFLAGS = -lm ++CFLAGS += -DVERSION=\"$(VERSION)\" ${CPPFLAGS} ++CC_LDFLAGS = ${LDFLAGS} ${LIBS} -lm CC_WINFLAG = # For Windows - comment the two line above and un-comment the two lines below. -@@ -80,7 +80,7 @@ + # CC_LDFLAGS = -lwsock32 -fno-exceptions -s +@@ -80,7 +80,7 @@ xml2300 : $(XMLOBJ) $(CC) $(CFLAGS) -o $@ $(XMLOBJ) $(CC_LDFLAGS) $(CC_WINFLAG) mysql2300: $(MYSQLOBJ) - $(CC) $(CFLAGS) -o $@ $(MYSQLOBJ) $(CC_LDFLAGS) $(CC_WINFLAG) -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -+ $(CC) $(CFLAGS) -o $@ $(MYSQLOBJ) $(CC_LDFLAGS) $(CC_WINFLAG) -L/usr/pkg/lib/mysql -Wl,-R/usr/pkg/lib/mysql -lmysqlclient ++ $(CC) $(CFLAGS) -o $@ $(MYSQLOBJ) $(CC_LDFLAGS) $(CC_WINFLAG) light2300: $(LIGHTOBJ) $(CC) $(CFLAGS) -o $@ $(LIGHTOBJ) $(CC_LDFLAGS) -@@ -92,19 +92,23 @@ +@@ -92,19 +92,23 @@ minmax2300: $(MINMAXOBJ) $(CC) $(CFLAGS) -o $@ $(MINMAXOBJ) $(CC_LDFLAGS) $(CC_WINFLAG) install: |