44 lines
1 KiB
Makefile
44 lines
1 KiB
Makefile
# Created by: Wen Heping <wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hamsterdb
|
|
PORTVERSION= 2.1.11
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://files.hamsterdb.com/dl/
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= Lightweight Embedded Database Engine
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-boost=${LOCALBASE}
|
|
INSTALL_TARGET= install-strip
|
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
USES= alias gmake libtool
|
|
USE_LDCONFIG= yes
|
|
|
|
HAM_DOCS= README INSTALL ChangeLog TODO AUTHORS CREDITS
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 900000
|
|
BROKEN= fails to compile on 8.x
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/configure
|
|
${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/unittests/Makefile.in
|
|
${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/tools/ham_bench/Makefile.in
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${HAM_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|