1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Support staging.

Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-05-16 06:37:36 +00:00
parent 5dd533b7da
commit ff342a02c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354195
2 changed files with 4 additions and 9 deletions

View File

@ -18,12 +18,8 @@ WRKSRC= ${WRKDIR}
PLIST_FILES= lib/mysql/plugin/lib_mysqludf_sys.so
PLIST_DIRS= lib/mysql/plugin
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|; s|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/Makefile
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
--- Makefile.orig 2009-01-18 23:11:00.000000000 -1000
+++ Makefile 2011-12-12 13:16:07.000000000 -1000
--- Makefile.orig 2009-01-19 17:11:00.000000000 +0800
+++ Makefile 2014-05-16 14:36:12.368319209 +0800
@@ -1,4 +1,16 @@
-LIBDIR=/usr/lib
+
@ -14,9 +14,8 @@
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)
+ mkdir -p $(DESTDIR)$(LIBDIR)
+ install -o root -g wheel -m 0755 $(PROG) $(DESTDIR)$(LIBDIR)
+
+clean:
+ rm -f $(PROG)
+