aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-10-02 00:33:52 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-10-02 00:33:52 +0800
commitef3fde868ef19f0a9f9e12b04ed460561ae2a5fd (patch)
treedfec89e451e022680042f93c687d600ede732fbf
parent2068b5a4e11b3dd7ecd0b96e20556426840a59af (diff)
downloadfreebsd-ports-gnome-ef3fde868ef19f0a9f9e12b04ed460561ae2a5fd.tar.gz
freebsd-ports-gnome-ef3fde868ef19f0a9f9e12b04ed460561ae2a5fd.tar.zst
freebsd-ports-gnome-ef3fde868ef19f0a9f9e12b04ed460561ae2a5fd.zip
- Support STAGEDIR
-rw-r--r--databases/leveldb/Makefile25
1 files changed, 12 insertions, 13 deletions
diff --git a/databases/leveldb/Makefile b/databases/leveldb/Makefile
index 9e96d30a4a7c..2060a9d5ffba 100644
--- a/databases/leveldb/Makefile
+++ b/databases/leveldb/Makefile
@@ -13,7 +13,6 @@ OPTIONS_DEFINE= GPERFTOOLS SNAPPY
OPTIONS_DEFAULT=SNAPPY
LDFLAGS+= -L${LOCALBASE}/lib
-NO_STAGE= yes
USE_LDCONFIG= yes
USES= gmake
@@ -49,21 +48,21 @@ post-patch:
.endif
do-install:
- ${MKDIR} ${PREFIX}/include/leveldb/ ${PREFIX}/include/memenv/ ${DATADIR}/
- ${INSTALL_DATA} ${WRKSRC}/include/leveldb/* ${PREFIX}/include/leveldb/
- ${INSTALL_DATA} ${WRKSRC}/helpers/memenv/memenv.h ${PREFIX}/include/memenv/
- ${INSTALL_LIB} ${WRKSRC}/libleveldb.a ${PREFIX}/lib/
- ${INSTALL_LIB} ${WRKSRC}/libleveldb.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${PREFIX}/lib/
- ${INSTALL_LIB} ${WRKSRC}/libmemenv.a ${PREFIX}/lib/
- ${INSTALL_LIB} ${WRKSRC}/libmemenv.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${PREFIX}/lib/
- ${LN} -s libleveldb.so.${SHLIB_MAJOR} ${PREFIX}/lib/libleveldb.so
- ${LN} -s libleveldb.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${PREFIX}/lib/libleveldb.so.${SHLIB_MAJOR}
- ${LN} -s libmemenv.so.${SHLIB_MAJOR} ${PREFIX}/lib/libmemenv.so
- ${LN} -s libmemenv.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${PREFIX}/lib/libmemenv.so.${SHLIB_MAJOR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/include/leveldb/ ${STAGEDIR}${PREFIX}/include/memenv/ ${STAGEDIR}${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/include/leveldb/* ${STAGEDIR}${PREFIX}/include/leveldb/
+ ${INSTALL_DATA} ${WRKSRC}/helpers/memenv/memenv.h ${STAGEDIR}${PREFIX}/include/memenv/
+ ${INSTALL_LIB} ${WRKSRC}/libleveldb.a ${STAGEDIR}${PREFIX}/lib/
+ ${INSTALL_LIB} ${WRKSRC}/libleveldb.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/
+ ${INSTALL_LIB} ${WRKSRC}/libmemenv.a ${STAGEDIR}${PREFIX}/lib/
+ ${INSTALL_LIB} ${WRKSRC}/libmemenv.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/
+ ${LN} -s libleveldb.so.${SHLIB_MAJOR} ${STAGEDIR}${PREFIX}/lib/libleveldb.so
+ ${LN} -s libleveldb.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libleveldb.so.${SHLIB_MAJOR}
+ ${LN} -s libmemenv.so.${SHLIB_MAJOR} ${STAGEDIR}${PREFIX}/lib/libmemenv.so
+ ${LN} -s libmemenv.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libmemenv.so.${SHLIB_MAJOR}
# backward compatibility
${ECHO} "SNAPPY=${SNAPPY}" >> ${WRKSRC}/build_config.mk
${GREP} '^PLATFORM_CXXFLAGS=' ${WRKSRC}/build_config.mk | ${SED} 's|PLATFORM_CXXFLAGS|PORT_CFLAGS|' >> ${WRKSRC}/build_config.mk
${GREP} '^PLATFORM_CXXFLAGS=' ${WRKSRC}/build_config.mk | ${SED} 's|PLATFORM_CXXFLAGS|PLATFORM_CFLAGS|' >> ${WRKSRC}/build_config.mk
- ${INSTALL_DATA} ${WRKSRC}/build_config.mk ${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/build_config.mk ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>