f8e628f818
are replaced with .include "../../devel/readline/buildlink3.mk", and USE_GNU_READLINE are removed, * .include "../../devel/readline/buildlink3.mk" without USE_GNU_READLINE are replaced with .include "../../mk/readline.buildlink3.mk".
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# $NetBSD: options.mk,v 1.17 2013/07/15 02:02:27 ryoon Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg
|
|
PKG_SUPPORTED_OPTIONS= curl ldap readline
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH:Mi386}
|
|
PKG_SUPPORTED_OPTIONS+= i586-optimized
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH:Mm68k}
|
|
PKG_SUPPORTED_OPTIONS+= m68060-optimized
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mi586-optimized)
|
|
# use assembler routines optimized for, and only for!, i586
|
|
ONLY_FOR_PLATFORM= *-*-i386
|
|
MACHINE_GNU_ARCH= i586
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurl)
|
|
.include "../../www/curl/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libcurl
|
|
.endif
|
|
|
|
PLIST_VARS+= ldap
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
.include "../../databases/openldap-client/buildlink3.mk"
|
|
PLIST.ldap= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mm68060-optimized)
|
|
# be more efficient on M68060 machines
|
|
CONFIGURE_ENV+= M68060=${M68060:Q}
|
|
CFLAGS+= -m68060
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mreadline)
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
|
|
.else
|
|
CONFIGURE_ARGS+= --without-readline
|
|
.endif
|