diff options
Diffstat (limited to 'app-misc/ckermit/ckermit-8.0.211-r4.ebuild')
-rw-r--r-- | app-misc/ckermit/ckermit-8.0.211-r4.ebuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app-misc/ckermit/ckermit-8.0.211-r4.ebuild b/app-misc/ckermit/ckermit-8.0.211-r4.ebuild index e129da2a6c12..9d8950eb448b 100644 --- a/app-misc/ckermit/ckermit-8.0.211-r4.ebuild +++ b/app-misc/ckermit/ckermit-8.0.211-r4.ebuild @@ -34,23 +34,24 @@ src_prepare() { makefile || die } -ck_use() { - use $1 && append-cppflags $2 && libs+=" $3" -} src_compile() { # we don't enable any of the telnet/ftp authentication stuff # since there are other packages which do these things better # USE="kerberos pam shadow ssl zlib" append-cppflags -DNO_AUTHENTICATION -DNOLOGIN -DNOFTP - local libs - ck_use ncurses -DCK_NCURSES -lncurses + if use ncurses; then + append-cppflags "-DCK_NCURSES" + append-cppflags "$($(tc-getPKG_CONFIG) --cflags ncurses)" + append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)" + fi + append-cppflags -DHAVE_PTMX -D_XOPEN_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE #202840 append-cppflags -DHAVE_CRYPT_H emake \ CC="$(tc-getCC)" \ KFLAGS="${CPPFLAGS}" \ - LIBS="-lcrypt -lresolv ${libs}" \ + LIBS="-lcrypt -lresolv ${LIBS}" \ LNKFLAGS="${LDFLAGS}" \ linuxa } |