aboutsummaryrefslogtreecommitdiff
path: root/databases/ruby-cdb
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2011-05-03 03:05:04 +0000
committerSteve Wills <swills@FreeBSD.org>2011-05-03 03:05:04 +0000
commit5c01404c74dbb38104ed6aef736c8f2534cfcd51 (patch)
treeb2f1714a664598de795c664ed638068f218a16f7 /databases/ruby-cdb
parent49696a0dc279e6eb25845c597bbaa7291ab21b39 (diff)
downloadports-5c01404c74dbb38104ed6aef736c8f2534cfcd51.tar.gz
ports-5c01404c74dbb38104ed6aef736c8f2534cfcd51.zip
Notes
Diffstat (limited to 'databases/ruby-cdb')
-rw-r--r--databases/ruby-cdb/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/databases/ruby-cdb/Makefile b/databases/ruby-cdb/Makefile
index 40b9b57891a8..27b6579214d8 100644
--- a/databases/ruby-cdb/Makefile
+++ b/databases/ruby-cdb/Makefile
@@ -28,6 +28,12 @@ INSTALL_TARGET= site-install
.include <bsd.port.pre.mk>
+post-patch:
+ ${REINPLACE_CMD} -E \
+ -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' \
+ -e 's|RSTRING\(([^)]+)\)->ptr|RSTRING_PTR(\1)|g' \
+ ${WRKSRC}/cdb.c
+
post-extract:
${RM} -f ${WRKSRC}/cdb
${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb