1e3237105f
to do so. 1) FASTEST option build fails because -fforce-addr doesn't exist, so just remove it from CFLAGS. 2) disabling SHARED broke build The post-install, as well as the plist, never handled the case when SHARED was disabled. By using OPTIONS_SUB and post-install-SHARED-on, it now works. 3) DEBUG and LZMA were incompatible Building with debugging symbols against the external liblzma from ports caused the build to fail. Mark these as incompatible with each other. 4) PROFILE prevents .so from being built Building with profiling enabled disables shared objects from being built, so simply mark these as mutually exclusive. 5) The extra patching for the DOCS option is not needed, so just remove that whole business. It would be advisable to have better descriptions for the LZMA and LZO options, because lzma and lzo support are still enabled with those options deselected: it just uses the libraries from base instead. All of this is comitted under just-fix-it.
86 lines
1.9 KiB
Makefile
86 lines
1.9 KiB
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tokyocabinet
|
|
PORTVERSION= 1.4.48
|
|
CATEGORIES= databases
|
|
MASTER_SITES= LOCAL/kuriyama \
|
|
http://fallabs.com/${PORTNAME}/
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Modern implementation of DBM
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DEBUG DEVEL FASTEST LZMA LZO PTHREAD PROFILE SHARED SWAB UYIELD DOCS
|
|
OPTIONS_DEFAULT= PTHREAD SHARED
|
|
OPTIONS_SUB= yes
|
|
|
|
DEBUG_DESC= Debugging support
|
|
DEVEL_DESC= Development build
|
|
FASTEST_DESC= Fastest run
|
|
LZMA_DESC= LZMA codec
|
|
LZO_DESC= LZO codec
|
|
PTHREAD_DESC= Enable POSIX thread support
|
|
PROFILE_DESC= Profiling build
|
|
SHARED_DESC= Shared build
|
|
SWAB_DESC= Swapping byte-orders build
|
|
UYIELD_DESC= Detecting race conditions
|
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
DEBUG_PREVENTS= LZMA
|
|
|
|
DEVEL_CONFIGURE_ENABLE= devel
|
|
|
|
FASTEST_CONFIGURE_ENABLE= fastest
|
|
|
|
# to not confuse with system liblzma
|
|
LZMA_CONFIGURE_ENABLE= exlzma
|
|
LZMA_LIB_DEPENDS= liblzma.so.1:archivers/lzmalib
|
|
LZMA_PREVENTS= DEBUG
|
|
|
|
LZO_CONFIGURE_ENABLE= exlzo
|
|
LZO_LIB_DEPENDS= liblzo2.so:archivers/lzo2
|
|
|
|
PTHREAD_CONFIGURE_ENABLE= pthread
|
|
|
|
PROFILE_CONFIGURE_ENABLE= profile
|
|
PROFILE_PREVENTS= SHARED
|
|
|
|
SHARED_CONFIGURE_ENABLE= shared
|
|
SHARED_PREVENTS= PROFILE
|
|
|
|
SWAB_CONFIGURE_ENABLE= swab
|
|
|
|
UYIELD_CONFIGURE_ENABLE= uyield
|
|
|
|
SHLIB_VER= 9.11.0
|
|
SHLIB_VER_MAJ= 9
|
|
|
|
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:
|
|
${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|' \
|
|
-e 's|@datarootdir@|@datarootdir@/doc|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-patch-FASTEST-on:
|
|
${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/libexec/tcawmgr.cgi
|
|
|
|
post-install-SHARED-on:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
|
|
|
|
.include <bsd.port.mk>
|