tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mit-krb5/builtin.mk problems on solaris



The following seems to work for scmcvs:
richard@devzone:~/src/pkgsrc/devel/scmcvs$ git diff .
diff --git a/devel/scmcvs/options.mk b/devel/scmcvs/options.mk
index eb34a5b..930da66 100644
--- a/devel/scmcvs/options.mk
+++ b/devel/scmcvs/options.mk
@@ -29,7 +29,13 @@ CONFIGURE_ARGS+=     --disable-ipv6
 CONFIGURE_ARGS+=       --enable-encryption
 CONFIGURE_ARGS+=       --with-gssapi=${KRB5BASE}
 CONFIGURE_ARGS+=       --with-krb4=${KRB5BASE}
-LDFLAGS.SunOS+=        -lgssapi
+# platforms such as solaris have krb5 in /usr/include/kerberosv5
+# which is not detected during configure so set CPPFLAGS accordingly
+.  if !empty(USE_BUILTIN.mit-krb5:M[yY][eE][sS]) &&    \
+       !empty(H_MIT_KRB5:M*kerberosv5*)
+CPPFLAGS+=     -I${H_MIT_KRB5:S/\/krb5.h//}
+CONFIGURE_ENV+=        CPPFLAGS=${CPPFLAGS:Q}
+.  endif
 .  if ${OPSYS} == "Darwin"
 LDFLAGS+=              -framework Kerberos
 .  endif




Home | Main Index | Thread Index | Old Index