svn commit: r356866 - in head/finance/libstocks: . files
Mikhail Teterin
mi at FreeBSD.org
Fri Jun 6 23:04:52 UTC 2014
Author: mi
Date: Fri Jun 6 23:04:50 2014
New Revision: 356866
URL: http://svnweb.freebsd.org/changeset/ports/356866
QAT: https://qat.redports.org/buildarchive/r356866/
Log:
Add staging support.
Modified:
head/finance/libstocks/Makefile
head/finance/libstocks/files/Makefile.client
head/finance/libstocks/files/Makefile.lib
Modified: head/finance/libstocks/Makefile
==============================================================================
--- head/finance/libstocks/Makefile Fri Jun 6 22:59:54 2014 (r356865)
+++ head/finance/libstocks/Makefile Fri Jun 6 23:04:50 2014 (r356866)
@@ -12,15 +12,15 @@ COMMENT= A C library which can be used t
USE_LDCONFIG= yes
REINPLACE_ARGS= -i ""
MAKE_ENV= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null
+MAKE_ENV+= STAGEDIR="${STAGEDIR}"
+USES= uidfix
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' \
-e 's/__UNIX__/__unix__/' \
$$(${GREP} --mmap -El '<malloc.h>|__UNIX__' \
${WRKSRC}/lib/*.c); \
-
do-build do-install:
.for d in lib client
cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKEFLAGS} -j2 \
Modified: head/finance/libstocks/files/Makefile.client
==============================================================================
--- head/finance/libstocks/files/Makefile.client Fri Jun 6 22:59:54 2014 (r356865)
+++ head/finance/libstocks/files/Makefile.client Fri Jun 6 23:04:50 2014 (r356866)
@@ -2,7 +2,7 @@ PROG= libstocks_client
SRCS= client.c
NO_MAN= 1
PREFIX?=/usr/local
-BINDIR= ${PREFIX}/bin
+BINDIR= ${STAGEDIR}${PREFIX}/bin
CFLAGS+=-I${.CURDIR}/../lib
LDADD+= -L../lib -lstocks
Modified: head/finance/libstocks/files/Makefile.lib
==============================================================================
--- head/finance/libstocks/files/Makefile.lib Fri Jun 6 22:59:54 2014 (r356865)
+++ head/finance/libstocks/files/Makefile.lib Fri Jun 6 23:04:50 2014 (r356866)
@@ -1,13 +1,13 @@
PREFIX?=/usr/local
-LIBDIR= ${PREFIX}/lib
-INCSDIR=${PREFIX}/include
+LIBDIR= ${STAGEDIR}${PREFIX}/lib
+INCSDIR=${STAGEDIR}${PREFIX}/include
INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk
LIB= stocks
SHLIB_MAJOR=0
SHLIB_MINOR=5
-NOPROFILE= True # to avoid building profiled library
+NO_PROFILE= True # to avoid building profiled library
SRCS!= ${MAKE} -f ${.CURDIR}/Makefile.in -V libstocks_a_SOURCES
INCS!= ${MAKE} -f ${.CURDIR}/Makefile.in -V include_HEADERS
More information about the svn-ports-all
mailing list