forked from Lainports/freebsd-ports
with the operating system from MySQL:
sys_eval - executes an arbitrary command, and returns it's output.
sys_exec - executes an arbitrary command, and returns it's exit code.
sys_get - gets the value of an environment variable.
sys_set - create an environment variable, or update the value of an
existing environment variable.
Use lib_mysqludf_sys_info() to obtain information about the currently
installed version of lib_mysqludf_sys.
WWW: http://www.mysqludf.org/lib_mysqludf_sys
PR: ports/163216
Submitted by: David Cornejo <dave@dogwood.com>
22 lines
571 B
Text
22 lines
571 B
Text
--- Makefile.orig 2009-01-18 23:11:00.000000000 -1000
|
|
+++ Makefile 2011-12-12 13:16:07.000000000 -1000
|
|
@@ -1,4 +1,16 @@
|
|
-LIBDIR=/usr/lib
|
|
+
|
|
+LIBDIR= %%PREFIX%%/lib/mysql/plugin
|
|
+INCDIR= %%LOCALBASE%%/include/mysql
|
|
+PROG= lib_mysqludf_sys.so
|
|
+
|
|
+all: lib_mysql_udf.so
|
|
+
|
|
+lib_mysql_udf.so:
|
|
+ $(CC) -fPIC -Wall -I$(INCDIR) -I. -shared lib_mysqludf_sys.c -o $(PROG)
|
|
|
|
install:
|
|
- gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so
|
|
+ mkdir -p $(LIBDIR)
|
|
+ install -o root -g wheel -m 0755 $(PROG) $(LIBDIR)
|
|
+
|
|
+clean:
|
|
+ rm -f $(PROG)
|
|
+
|