From fab4a382daaf6aba6423c7253621f38e628dc5ca Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Mon, 3 Aug 2009 20:35:54 +0000 Subject: - Fix the issue when you set a custom PREFIX or LOCALBASE. PR: ports/137229 Submitted by: Sylvio Cesar (maintainer) --- net-im/amsn/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'net-im') diff --git a/net-im/amsn/Makefile b/net-im/amsn/Makefile index 53aa3a9ed7be..710ab574a7fa 100644 --- a/net-im/amsn/Makefile +++ b/net-im/amsn/Makefile @@ -22,14 +22,26 @@ RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 \ ${LOCALBASE}/lib/tls/tls.tcl:${PORTSDIR}/devel/tcltls \ dtplite:${PORTSDIR}/devel/tcllib -GNU_CONFIGURE= yes USE_BZIP2= yes USE_GMAKE= yes +USE_LDCONFIG= yes +GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \ --with-tk=${LOCALBASE}/lib/tk8.4 -CONFIGURE_ENV= TK_INC_SPEC=${LOCALBASE}/include/tk8.4/generic +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + TK_INC_SPEC=${LOCALBASE}/include/tk8.4/generic + +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.else +USE_GETTEXT= yes +CONFIGURE_ARGS+= --enable-nls +PLIST_SUB+= NLS="" +.endif post-patch: @${FIND} ${WRKSRC} -name '*.c' -or -name '*.h' | ${XARGS} ${REINPLACE_CMD} -e 's| ||' -- cgit v1.2.3