936a36e30d
which restores compatibility with old databases (version 1.8) and some later versions which were built without mmap(2) support. Due to shlib version change, bump port revisions of the consumer ports. PR: 233059 Exp-run by: antoine Approved by: maintainer (johans, numerous timeouts)
42 lines
952 B
Makefile
42 lines
952 B
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gdbm
|
|
PORTVERSION= ${RUBY_PORTVERSION}
|
|
PORTREVISION= 4
|
|
PORTEPOCH= 1
|
|
CATEGORIES= databases ruby
|
|
MASTER_SITES= # none
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTFILES= # none
|
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
|
COMMENT= Ruby extension to GDBM library
|
|
|
|
LICENSE= BSD2CLAUSE RUBY
|
|
LICENSE_COMB= dual
|
|
|
|
FETCH_DEPENDS= ${NONEXISTENT}:${RUBY_PORT}:patch
|
|
LIB_DEPENDS= libgdbm.so:databases/gdbm
|
|
|
|
PLIST_FILES= %%RUBY_ARCHLIBDIR%%/gdbm.so
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAKE_ARGS= sitelibdir='$$(rubylibdir)' \
|
|
INSTALL_PROG="${INSTALL_PROGRAM}" \
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${RUBY_VER} >= 2.4
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/\/include\/ruby.h/d' ${WRKSRC}/depend
|
|
.endif
|
|
|
|
do-extract:
|
|
${MKDIR} ${WRKDIR}
|
|
${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
|
|
|
|
.include <bsd.port.post.mk>
|