diff --git a/dns/idnkit/Makefile b/dns/idnkit/Makefile index e46ea97a415c..4aa477bdbf45 100644 --- a/dns/idnkit/Makefile +++ b/dns/idnkit/Makefile @@ -1,42 +1,40 @@ PORTNAME= idnkit PORTVERSION= 1.0 PORTREVISION= 7 CATEGORIES= dns MASTER_SITES= http://www.nic.ad.jp/ja/idn/idnkit/download/sources/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= Library to handle internationalized domain names WWW= https://www.nic.ad.jp/ja/idn/idnkit/download/ LICENSE= JPNIC LICENSE_NAME= Japan Network Information Center license LICENSE_FILE= ${WRKSRC}/LICENSE.txt LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -BROKEN_FreeBSD_14= fails to configure: can't build runidn, since parameter type list of getnameinfo() is unknown to configure - USES= iconv libtool GNU_CONFIGURE= yes CONFIGURE_ARGS= ${ICONV_CONFIGURE_BASE} \ --enable-runidn \ --enable-extra-ace USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS post-patch: @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ 's|mode=link $$(LD)|mode=link $$(CC)|' post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/ja (cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog NEWS README \ ${STAGEDIR}${DOCSDIR}) ${INSTALL_DATA} ${WRKSRC}/README.ja ${STAGEDIR}${DOCSDIR}/ja .include diff --git a/dns/idnkit/files/patch-configure b/dns/idnkit/files/patch-configure index 8f83b45f582c..1443b00b0d0e 100644 --- a/dns/idnkit/files/patch-configure +++ b/dns/idnkit/files/patch-configure @@ -1,69 +1,120 @@ --- configure.orig 2003-03-10 23:53:20 UTC +++ configure @@ -762,14 +762,14 @@ yes) libiconv=$prefix fi ICONVINC="-I$libiconv/include" - ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv" + ICONVLIB="-L$libiconv/lib -liconv" ;; *) if test "$liteonly" = yes ; then { echo "configure: error: you can't set iconv options at all when you set value \"yes\" to --enable-liteonly, because lite library does not have iconv support." 1>&2; exit 1; } fi ICONVINC="-I$libiconv/include" - ICONVLIB="-L$libiconv/lib -R$libiconv/lib -liconv" + ICONVLIB="-L$libiconv/lib -liconv" ;; esac -@@ -2633,7 +2633,37 @@ fi +@@ -1082,7 +1082,7 @@ cat > conftest.$ac_ext << EOF + #line 1083 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:1088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes +@@ -2633,13 +2633,43 @@ fi ac_cv_flavor_gethostbyaddr=unknown else cat > conftest.$ac_ext < -+ #include -+ #include -+ #include + #include "confdefs.h" + + #include + #include + #include + #include + struct hostent *gethostbyaddr(const void *addr, int len, int type) { + return NULL; + } + int main() { + (void)gethostbyaddr(NULL, 0, 0); + return 0; + } + +EOF +if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_flavor_gethostbyaddr=freebsd6 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -fr conftest* +fi + + if test "$cross_compiling" = yes; then + ac_cv_flavor_gethostbyaddr=unknown +else + cat > conftest.$ac_ext < -@@ -2675,6 +2705,10 @@ echo "$ac_t""$ac_cv_flavor_gethostbyaddr ++#include "confdefs.h" ++ ++ #include ++ #include ++ #include ++ #include + struct hostent *gethostbyaddr(const char *addr, int len, int type) { + return NULL; + } +@@ -2675,6 +2705,10 @@ echo "$ac_t""$ac_cv_flavor_gethostbyaddr" 1>&6 ac_cv_type_ghba_addr_t='const char *' ac_cv_type_ghba_addrlen_t='size_t' ;; + freebsd6) + ac_cv_type_ghba_addr_t='const void *' + ac_cv_type_ghba_addrlen_t='int' + ;; traditional | none) ac_cv_type_ghba_addr_t='const char *' ac_cv_type_ghba_addrlen_t='int' +@@ -2712,7 +2746,7 @@ else + int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, + socklen_t hostlen, char *serv, socklen_t servlen, + unsigned int flags) { +- return NULL; ++ return 0; + } + int main() { + (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0); +@@ -2744,7 +2778,7 @@ else + int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, + socklen_t hostlen, char *serv, socklen_t servlen, + int flags) { +- return NULL; ++ return 0; + } + int main() { + (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0); +@@ -2775,7 +2809,7 @@ else + #include + int getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, + size_t hostlen, char *serv, size_t servlen, int flags) { +- return NULL; ++ return 0; + } + int main() { + (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0); +@@ -2806,7 +2840,7 @@ else + #include + int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, + size_t hostlen, char *serv, size_t servlen, int flags) { +- return NULL; ++ return 0; + } + int main() { + (void)getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0);