opnsense-ports/databases/mysac/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

34 lines
1.1 KiB
Text

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