Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Dec 2017 15:21:01 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r457601 - head/net-p2p/mldonkey
Message-ID:  <201712301521.vBUFL1mk084091@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Sat Dec 30 15:21:01 2017
New Revision: 457601
URL: https://svnweb.freebsd.org/changeset/ports/457601

Log:
  - Patch configure instead of configure.in so we can avoid USES=autoreconf.
    An obscure macro is used in configure.in that autoreconf cannot find
    anywhere (ACX_CHECK_CXX_FLAGS).
  - Disable a test for libcharset from converters/libiconv, so the code will
    use nl_langinfo from libc instead.
  - Remove unneeded CONFIGURE_ENV, CPPFLAGS and LDFLAGS.
  
  Reported by:	antoine

Modified:
  head/net-p2p/mldonkey/Makefile

Modified: head/net-p2p/mldonkey/Makefile
==============================================================================
--- head/net-p2p/mldonkey/Makefile	Sat Dec 30 13:55:23 2017	(r457600)
+++ head/net-p2p/mldonkey/Makefile	Sat Dec 30 15:21:01 2017	(r457601)
@@ -3,7 +3,7 @@
 
 PORTNAME=	mldonkey
 PORTVERSION=	3.1.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES+=	net-p2p
 MASTER_SITES=	SF
 
@@ -13,25 +13,17 @@ COMMENT?=	OCAML client for multiple peer-to-peer netwo
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/Copying.txt
 
-BUILD_DEPENDS=	${LOCALBASE}/share/aclocal/ax_pthread.m4:devel/autoconf-archive
-
 CONFLICTS=	mldonkey{-{core,gui},}-devel-[0-9]*
 
-USES=		autoreconf iconv tar:bzip2 gmake
+USES=		gmake iconv tar:bzip2
 USE_OCAML=	yes
 USE_OCAML_CAMLP4=yes
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	ac_cv_lib_charset_locale_charset=no
 ALL_TARGET=	opt
-AUTORECONF_WRKSRC=	${WRKSRC}/config
 MAKE_ENV+=	OCAMLRUNPARAM="l=256M"
 MAKE_JOBS_UNSAFE=	yes
 
-CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG}
-CONFIGURE_ENV+=	NEWCXX="${CXX}" \
-		PTHREAD_LIBS="-lpthread"
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
 SUB_FILES=	pkg-message
 
 ###
@@ -107,12 +99,11 @@ post-patch:
 		-e "s|%%SH%%|${SH}|" \
 		${FILESDIR}/wrapper.sh > \
 		${WRKDIR}/wrapper.sh
-	@${REINPLACE_CMD} -E \
-		-e 's@(\+)(lablgtk2)@\1site-lib/\2@' \
-		-e 's@(\+)(labl\$$\(GTK\))@\1site-lib/\2@' \
-		-e 's@(OCAMLLIB/)(\$$LABLGTK_NAME)@\1site-lib/\2@' \
-		-e 's@(AC_DEFINE\([^,]*,[^,]*,)\)@\1 desc)@' \
-		${WRKSRC}/config/configure.in \
+	@${REINPLACE_CMD} \
+		-e 's|$$OCAMLLIB/$$LABLGTK_NAME|$$OCAMLLIB/site-lib/$$LABLGTK_NAME|' \
+		${WRKSRC}/config/configure
+	@${REINPLACE_CMD} \
+		-e 's|+labl|+site-lib/labl|' \
 		${WRKSRC}/config/Makefile.in
 	@${REINPLACE_CMD} -E \
 		-e 's@(#include <)(lablgtk2/)@\1site-lib/\2@'  \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712301521.vBUFL1mk084091>