Changeset View
Changeset View
Standalone View
Standalone View
databases/tokyocabinet/Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org> | # Created by: Gea-Suan Lin <gslin@gslin.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= tokyocabinet | PORTNAME= tokyocabinet | ||||
PORTVERSION= 1.4.48 | PORTVERSION= 1.4.48 | ||||
CATEGORIES= databases | CATEGORIES= databases | ||||
MASTER_SITES= LOCAL/kuriyama \ | MASTER_SITES= LOCAL/kuriyama \ | ||||
http://fallabs.com/${PORTNAME}/ | http://fallabs.com/${PORTNAME}/ | ||||
MAINTAINER= kuriyama@FreeBSD.org | MAINTAINER= kuriyama@FreeBSD.org | ||||
COMMENT= Modern implementation of DBM | COMMENT= Modern implementation of DBM | ||||
LICENSE= LGPL21 | LICENSE= LGPL21 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USES= gmake | USES= pathfix gmake | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
PORTDOCS= * | PORTDOCS= * | ||||
OPTIONS_DEFINE= DEBUG DEVEL FASTEST LZMA LZO PTHREAD PROFILE SHARED SWAB UYIELD DOCS | OPTIONS_DEFINE= DEBUG DEVEL FASTEST LZMA LZO PTHREAD PROFILE SHARED SWAB UYIELD DOCS | ||||
OPTIONS_DEFAULT= PTHREAD SHARED | OPTIONS_DEFAULT= PTHREAD SHARED | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
Show All 35 Lines | |||||
UYIELD_CONFIGURE_ENABLE= uyield | UYIELD_CONFIGURE_ENABLE= uyield | ||||
SHLIB_VER= 9.11.0 | SHLIB_VER= 9.11.0 | ||||
SHLIB_VER_MAJ= 9 | SHLIB_VER_MAJ= 9 | ||||
PLIST_SUB+= SHLIB_VER=${SHLIB_VER} SHLIB_VER_MAJ=${SHLIB_VER_MAJ} | PLIST_SUB+= SHLIB_VER=${SHLIB_VER} SHLIB_VER_MAJ=${SHLIB_VER_MAJ} | ||||
# Because gnomehack will search "(libdir)" and it doesn't work, we need | |||||
# to patch it manually. | |||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|' \ | ${REINPLACE_CMD} -e 's|@datarootdir@|@datarootdir@/doc|' \ | ||||
-e 's|@datarootdir@|@datarootdir@/doc|' \ | |||||
${WRKSRC}/Makefile.in | ${WRKSRC}/Makefile.in | ||||
post-patch-FASTEST-on: | post-patch-FASTEST-on: | ||||
${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure | ${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure | ||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/libexec/tcawmgr.cgi | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/libexec/tcawmgr.cgi | ||||
post-install-SHARED-on: | post-install-SHARED-on: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |