1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/databases/ruby-gdbm/Makefile
Alexey Dokuchaev 936a36e30d Update `databases/gdbm' to version 1.18.1, an important bugfix release
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)
2018-11-11 15:38:50 +00:00

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