freebsd-ports/databases/mysac/files/patch-Makefile
Pawel Pekala d5f91b2971 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

PR:		ports/163767
Submitted by:	Jake Smith <jake@xz.cx>
2012-01-05 23:34:56 +00:00

35 lines
1.1 KiB
Plaintext

--- 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