diff options
author | knu <knu@FreeBSD.org> | 2010-05-08 00:56:42 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2010-05-08 00:56:42 +0800 |
commit | 20f5e658cf5f98319d00bf80b62295cdbd5660d5 (patch) | |
tree | 0956699be987336633be030e75c6bf1cc63a6be3 /databases/kyotocabinet | |
parent | ade210ffa917bfe1fb6b7409ddade3b2ee5b0697 (diff) | |
download | freebsd-ports-graphics-20f5e658cf5f98319d00bf80b62295cdbd5660d5.tar.gz freebsd-ports-graphics-20f5e658cf5f98319d00bf80b62295cdbd5660d5.tar.zst freebsd-ports-graphics-20f5e658cf5f98319d00bf80b62295cdbd5660d5.zip |
Unbreak for i386 by forcing CPUTYPE=i586 if not defined.
Give caution to user using PKGMESSAGE that this library relies on some
kinds of CPU instructions that i386 and i486 do not have.
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 2efbf3647db..4c13dc8f304 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 00000000000..e2731fcea01 --- /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. +======================================================================== |