1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

Add staging support.

This commit is contained in:
Mikhail Teterin 2014-06-06 23:04:50 +00:00
parent 37dda854d9
commit 55639d43fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356866
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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