pkgsrc/security/apg/options.mk
rodent 3db7e53778 Source code documentation says that renaming -lcrypt to -lcrypto works on
Darwin. Let's do that instead of removing that library, since it would
involve disabling another CFLAG to function properly. Do the same for
OpenBSD which fixes the build there too. Add options.mk file to enable the
user to choose the libcrack and debug options at build time. Bump
PKGREVISION.
2015-02-16 00:25:45 +00:00

18 lines
504 B
Makefile

# $NetBSD: options.mk,v 1.1 2015/02/16 00:25:45 rodent Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.apg
PKG_SUPPORTED_OPTIONS= debug libcrack
PKG_SUGGESTED_OPTIONS= # blank
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
CFLAGS+= -DAPG_DEBUG
.endif
.if !empty(PKG_OPTIONS:Mlibcrack)
.include "../../security/libcrack/buildlink3.mk"
CFLAGS+= -I${PREFIX}/include/cracklib -DAPG_USE_CRACKLIB
CFLAGS+= -DCRACKLIB_DICTPATH=\"${PREFIX}/libdata\"
BUILDLINK_TRANSFORM+= l:crypt:crypt:crack
.endif