aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlx <lx@FreeBSD.org>2012-02-21 06:47:17 +0800
committerlx <lx@FreeBSD.org>2012-02-21 06:47:17 +0800
commitf16e53971daf8100e79d3bf87d3d01849ca078cc (patch)
tree825bf9b76ae84146d0e971161673a86408fed368
parent9b419d8b152c3ca25179fe4df95477b69007932f (diff)
downloadfreebsd-ports-gnome-f16e53971daf8100e79d3bf87d3d01849ca078cc.tar.gz
freebsd-ports-gnome-f16e53971daf8100e79d3bf87d3d01849ca078cc.tar.zst
freebsd-ports-gnome-f16e53971daf8100e79d3bf87d3d01849ca078cc.zip
Fix library arch mismatch on amd64, hopefully fix powerpc as well.
-rw-r--r--security/nacl/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/security/nacl/Makefile b/security/nacl/Makefile
index 0cfb20725264..76b5cb9857dc 100644
--- a/security/nacl/Makefile
+++ b/security/nacl/Makefile
@@ -29,9 +29,21 @@ do-install:
${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/bin/nacl-sha512 \
${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/lib/*/* \
+.if ${ARCH} == "i386"
+ @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/lib/x86/* \
${PREFIX}/lib
- @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/include/*/* \
+ @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/include/x86/* \
${PREFIX}/include
+.elif ${ARCH} == "powerpc"
+ @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/lib/ppc/* \
+ ${PREFIX}/lib
+ @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/include/ppc/* \
+ ${PREFIX}/include
+.else
+ @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/lib/${ARCH}/* \
+ ${PREFIX}/lib
+ @${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/include/${ARCH}/* \
+ ${PREFIX}/include
+.endif
.include <bsd.port.post.mk>