diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2010-05-07 16:56:42 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2010-05-07 16:56:42 +0000 |
commit | 119751ae1c65f9eb6b8f98b50171acd43c035030 (patch) | |
tree | 740e479b8d5a7aa8055b06e0b78d10428a74bbb4 /databases/kyotocabinet | |
parent | 0b7ca78468b1fbe4b932fdc990748aa659698305 (diff) | |
download | ports-119751ae1c65f9eb6b8f98b50171acd43c035030.tar.gz ports-119751ae1c65f9eb6b8f98b50171acd43c035030.zip |
Notes
Diffstat (limited to 'databases/kyotocabinet')
-rw-r--r-- | databases/kyotocabinet/Makefile | 15 | ||||
-rw-r--r-- | databases/kyotocabinet/files/pkg-message.i386 | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/databases/kyotocabinet/Makefile b/databases/kyotocabinet/Makefile index 2efbf3647db3..4c13dc8f304b 100644 --- a/databases/kyotocabinet/Makefile +++ b/databases/kyotocabinet/Makefile @@ -21,6 +21,16 @@ USE_GMAKE= yes USE_LDCONFIG= yes MAKE_ARGS= PCDIR="${PREFIX}/libdata/pkgconfig" +.include <bsd.port.pre.mk> + +.if ${ARCH} == "i386" && !defined(CPUTYPE) +CONFIGURE_TARGET= i586-portbld-freebsd${OSREL} +CPUTYPE= i586 +PKGMESSAGE= ${FILESDIR}/pkg-message.${ARCH} +# _CPUCFLAGS will somehow show up twice in CFLAGS but who cares.. +.include <bsd.cpu.mk> +.endif + .if !defined(NOPORTDOCS) PORTDOCS= * .endif @@ -47,5 +57,8 @@ post-install: ${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${COPYTREE_SHARE} "COPYING ChangeLog THANKS doc" ${DOCSDIR}/ .endif +.if exists(${PKGMESSAGE}) + @${CAT} ${PKGMESSAGE} +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/databases/kyotocabinet/files/pkg-message.i386 b/databases/kyotocabinet/files/pkg-message.i386 new file mode 100644 index 000000000000..e2731fcea01e --- /dev/null +++ b/databases/kyotocabinet/files/pkg-message.i386 @@ -0,0 +1,5 @@ +======================================================================== +This binary package is built for i586 and higher, because Kyoto Cabinet +relies on some kinds of CPU instructions that i386 and i486 do not have. +Do not use this package on those CPUs. +======================================================================== |