1 # $NetBSD: Makefile,v 1.12 2012/08/14 22:08:09 gdt Exp $
4 DISTNAME= libotr-${VERSION}
5 CATEGORIES= chat security
6 MASTER_SITES= http://www.cypherpunks.ca/otr/
8 MAINTAINER= nathanw@NetBSD.org
10 HOMEPAGE= http://www.cypherpunks.ca/otr/
11 COMMENT= Library for Off-The-Record encrypted messaging
14 PKG_DESTDIR_SUPPORT= user-destdir
17 CONFIGURE_ARGS+= --with-pic
21 # There's an apparent bug in gcc 4.1.3 on i386 (as shipped in
22 # netbsd-5). With -O2 and the stack protector (SSP) feature, the
23 # function otrl_auth_handle_revealsig is badly miscompiled.
24 # Therefore, we turn down optimization, since that seems better than
25 # turning off the stack protector.
27 #Not apparently relevant, but makes -S output easier to follow.
29 #A way to avoid the bug.
32 # Avoid optimization/SSP bug.
33 CONFIGURE_ARGS+= --disable-gcc-hardening
35 # This seems irrelevant, but was on the list to check, and thus is
36 # left as a hint to others.
37 #CONFIGURE_ARGS+= --disable-linker-hardening
39 .include "../../devel/gettext-lib/buildlink3.mk"
40 .include "../../security/libgcrypt/buildlink3.mk"
41 .include "../../mk/bsd.pkg.mk"