aboutsummaryrefslogtreecommitdiff
path: root/databases/mysac
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-01-05 23:34:56 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-01-05 23:34:56 +0000
commitd5f91b29716e80c0411a9ccbad978f2e156bb82b (patch)
tree073ada8e374380816b7a76cd812e383afd010a4d /databases/mysac
parentcc94b105fb8a0b90c7396da071592ee178e87ae8 (diff)
downloadports-d5f91b29716e80c0411a9ccbad978f2e156bb82b.tar.gz
ports-d5f91b29716e80c0411a9ccbad978f2e156bb82b.zip
Notes
Diffstat (limited to 'databases/mysac')
-rw-r--r--databases/mysac/Makefile39
-rw-r--r--databases/mysac/distinfo2
-rw-r--r--databases/mysac/files/patch-Makefile34
-rw-r--r--databases/mysac/files/patch-mysac.c12
-rw-r--r--databases/mysac/files/patch-mysac_decode_field.c12
-rw-r--r--databases/mysac/pkg-descr8
6 files changed, 107 insertions, 0 deletions
diff --git a/databases/mysac/Makefile b/databases/mysac/Makefile
new file mode 100644
index 000000000000..8e3bf025ecf9
--- /dev/null
+++ b/databases/mysac/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: mysac
+# Date created: 1 January 2012
+# Whom: Jake Smith <jake@xz.cx>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mysac
+PORTVERSION= 1.1.1
+CATEGORIES= databases
+MASTER_SITES= http://www.arpalert.org/src/ \
+ http://xz.cx/downloads/mysac/
+
+MAINTAINER= jake@xz.cx
+COMMENT= MySAC: MySQL Simple Asynchonous Client
+
+USE_LDCONFIG= yes
+USE_MYSQL= yes
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -I${LOCALBASE}/lib
+
+PLIST_FILES= lib/libmysac.so \
+ lib/libmysac.so.0 \
+ lib/libmysac-static.a \
+ include/mysac.h
+
+pre-build:
+ ${TOUCH} ${WRKSRC}/make.deps
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/libmysac.so \
+ ${PREFIX}/lib/libmysac.so
+ ${LN} -sf ${PREFIX}/lib/libmysac.so \
+ ${PREFIX}/lib/libmysac.so.0
+ ${INSTALL_LIB} ${WRKSRC}/libmysac-static.a ${PREFIX}/lib/libmysac-static.a
+ ${INSTALL_DATA} ${WRKSRC}/mysac.h ${PREFIX}/include/mysac.h
+
+.include <bsd.port.mk>
diff --git a/databases/mysac/distinfo b/databases/mysac/distinfo
new file mode 100644
index 000000000000..2f394fece34f
--- /dev/null
+++ b/databases/mysac/distinfo
@@ -0,0 +1,2 @@
+SHA256 (mysac-1.1.1.tar.gz) = 63fb38ca6a6ee8d28bbad0552c7c7d240fbc6ed06ca886ad2ba31cf1ce8596d3
+SIZE (mysac-1.1.1.tar.gz) = 46060
diff --git a/databases/mysac/files/patch-Makefile b/databases/mysac/files/patch-Makefile
new file mode 100644
index 000000000000..19d934fdd2d4
--- /dev/null
+++ b/databases/mysac/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- Makefile.orig 2012-01-02 06:39:03.451282135 +0000
++++ Makefile 2012-01-02 06:40:08.403362273 +0000
+@@ -15,24 +15,26 @@
+ # You should have received a copy of the GNU General Public License
+ # along with MySAC. If not, see <http://www.gnu.org/licenses/>.
+ #
+-SHELL=/bin/bash
++SHELL=/bin/sh
+ # Mysql lib directory
+ # exemple: <path>/mysql-5.1.41/libmysql_r/.libs
+-MYSQL_LIB := /usr/lib
++MYSQL_LIB := $(LOCALBASE)/lib/mysql
+
+ # Mysql include directory
+ # exemple: <path>/mysql-5.1.41/include
+-MYSQL_INC := /usr/include/mysql
++MYSQL_INC := $(LOCALBASE)/include/mysql
+
+ # get build version from the git tree in the form "lasttag-changes",
+ # and use "VERSION" file if unknown.
+ BUILDVER := $(shell ./mysac_ver)
+
+-CFLAGS = -DBUILDVER=$(BUILDVER) -I$(MYSQL_INC) -O0 -g -Wall -Werror -fpic
+-LDFLAGS = -g -L$(MYSQL_LIB) -lmysqlclient_r
++CFLAGS += -DBUILDVER=$(BUILDVER) -I$(MYSQL_INC) -O0 -g -Wall -fpic
++LDFLAGS += -g -L$(MYSQL_LIB) -lmysqlclient_r
+
+ OBJS = mysac.o mysac_net.o mysac_decode_field.o mysac_decode_row.o mysac_encode_values.o mysac_errors.o
+
++all: build
++
+ build: make.deps
+ $(MAKE) lib
+
diff --git a/databases/mysac/files/patch-mysac.c b/databases/mysac/files/patch-mysac.c
new file mode 100644
index 000000000000..01662b9c0164
--- /dev/null
+++ b/databases/mysac/files/patch-mysac.c
@@ -0,0 +1,12 @@
+--- mysac.c.orig 2012-01-02 05:39:13.267796448 +0000
++++ mysac.c 2012-01-02 05:39:23.079360664 +0000
+@@ -22,8 +22,8 @@
+ #include <string.h>
+ #include <stdarg.h>
+ #include <ctype.h>
+-#include <mysql/mysql.h>
+ #include <mysql/my_global.h>
++#include <mysql/mysql.h>
+
+ #include "mysac_decode_field.h"
+ #include "mysac_encode_values.h"
diff --git a/databases/mysac/files/patch-mysac_decode_field.c b/databases/mysac/files/patch-mysac_decode_field.c
new file mode 100644
index 000000000000..2cb3a4398875
--- /dev/null
+++ b/databases/mysac/files/patch-mysac_decode_field.c
@@ -0,0 +1,12 @@
+--- mysac_decode_field.c.orig 2011-06-06 20:58:33.000000000 +0100
++++ mysac_decode_field.c 2012-01-02 05:47:37.837388605 +0000
+@@ -21,8 +21,8 @@
+ #include <stdint.h>
+ #include <string.h>
+ #include <stdarg.h>
+-#include <mysql/mysql.h>
+ #include <mysql/my_global.h>
++#include <mysql/mysql.h>
+
+ #include "mysac_utils.h"
+ #include "mysac.h"
diff --git a/databases/mysac/pkg-descr b/databases/mysac/pkg-descr
new file mode 100644
index 000000000000..b2ea5dbbf58c
--- /dev/null
+++ b/databases/mysac/pkg-descr
@@ -0,0 +1,8 @@
+MySAC: MySQL Simple Asynchonous Client
+
+MySAC is a library that provides mechanisms for making asynchronous
+request to MySQL database. It uses uses the official MySQL client
+library for authentication and network functions. Memory allocation
+must be done in user code, so any memory manager can be used.
+
+WWW: http://cv.arpalert.org/page.sh?mysac