summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finance/libstocks/Makefile4
-rw-r--r--finance/libstocks/files/Makefile.client2
-rw-r--r--finance/libstocks/files/Makefile.lib6
3 files changed, 6 insertions, 6 deletions
diff --git a/finance/libstocks/Makefile b/finance/libstocks/Makefile
index 0a9a528ad280..0a3741180a6a 100644
--- a/finance/libstocks/Makefile
+++ b/finance/libstocks/Makefile
@@ -12,15 +12,15 @@ COMMENT= A C library which can be used to fetch stocks quotes
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 \
diff --git a/finance/libstocks/files/Makefile.client b/finance/libstocks/files/Makefile.client
index 79a359c6c50f..206073fbc215 100644
--- a/finance/libstocks/files/Makefile.client
+++ b/finance/libstocks/files/Makefile.client
@@ -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
diff --git a/finance/libstocks/files/Makefile.lib b/finance/libstocks/files/Makefile.lib
index 04853c049c27..0a97c014939f 100644
--- a/finance/libstocks/files/Makefile.lib
+++ b/finance/libstocks/files/Makefile.lib
@@ -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