2010-08-06 06:51:23 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2010/08/06 04:51:23 obache Exp $
|
2009-05-24 14:40:31 +02:00
|
|
|
#
|
|
|
|
|
2010-06-18 12:01:28 +02:00
|
|
|
DISTNAME= tokyocabinet-java-1.23
|
2009-05-24 14:40:31 +02:00
|
|
|
PKGNAME= java-${DISTNAME:S/-java//}
|
|
|
|
CATEGORIES= databases
|
2010-03-12 11:21:54 +01:00
|
|
|
MASTER_SITES= ${HOMEPAGE:S/javadoc/javapkg/}
|
2009-05-24 14:40:31 +02:00
|
|
|
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
2010-08-06 06:51:23 +02:00
|
|
|
HOMEPAGE= http://fallabs.com/tokyocabinet/javadoc/
|
2009-05-24 14:40:31 +02:00
|
|
|
COMMENT= Java binding of Tokyo Cabinet
|
|
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c
|
|
|
|
|
2009-11-30 22:59:37 +01:00
|
|
|
MAKE_ENV+= INCLUDEDIR=${BUILDLINK_PREFIX.tokyocabinet}/include
|
|
|
|
|
2009-05-24 14:40:31 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= share/tokyocabinet/doc/java
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/index.html \
|
|
|
|
${DESTDIR}${PREFIX}/share/tokyocabinet/doc/java/index.html
|
|
|
|
|
2009-07-09 13:30:29 +02:00
|
|
|
BUILDLINK_API_DEPENDS.tokyocabinet+= tokyocabinet>=1.4.29
|
2009-05-24 14:40:31 +02:00
|
|
|
.include "../../databases/tokyocabinet/buildlink3.mk"
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
|
|
|
|
SUBST_CLASSES+= pthread
|
|
|
|
SUBST_STAGE.pthread= pre-configure
|
|
|
|
SUBST_FILES.pthread= configure
|
|
|
|
SUBST_SED.pthread= -e 's|-lpthread|${PTHREAD_LIBS}|'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|