From owner-svn-ports-head@FreeBSD.ORG Wed Apr 2 18:08:04 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 291C4EF4; Wed, 2 Apr 2014 18:08:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 161122E2; Wed, 2 Apr 2014 18:08:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s32I838N001750; Wed, 2 Apr 2014 18:08:03 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s32I83g0001749; Wed, 2 Apr 2014 18:08:03 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201404021808.s32I83g0001749@svn.freebsd.org> From: Pawel Pekala Date: Wed, 2 Apr 2014 18:08:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349936 - head/devel/pdcurses-the X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2014 18:08:04 -0000 Author: pawel Date: Wed Apr 2 18:08:03 2014 New Revision: 349936 URL: http://svnweb.freebsd.org/changeset/ports/349936 QAT: https://qat.redports.org/buildarchive/r349936/ Log: - Add staging support - Use options helpers - Strip library Modified: head/devel/pdcurses-the/Makefile Modified: head/devel/pdcurses-the/Makefile ============================================================================== --- head/devel/pdcurses-the/Makefile Wed Apr 2 18:06:42 2014 (r349935) +++ head/devel/pdcurses-the/Makefile Wed Apr 2 18:08:03 2014 (r349936) @@ -19,35 +19,28 @@ GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= DEBUG LATIN1 NEXTAW XAW3D -LATIN1_DESC= Enable support for Latin1 keys -NEXTAW_DESC= Link with NeXtaw -XAW3D_DESC= Link with Xaw3d - -NO_STAGE= yes -.include - -.for opt in DEBUG LATIN1 -. if ${PORT_OPTIONS:M${opt}} -CONFIGURE_ARGS+=--enable-${opt:L} -. endif -.endfor - -.if ${PORT_OPTIONS:MNEXTAW} -LIB_DEPENDS+= neXtaw:${PORTSDIR}/x11-toolkits/neXtaw -CONFIGURE_ARGS+=--with-nextaw -.endif - -.if ${PORT_OPTIONS:MXAW3D} -LIB_DEPENDS+= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d -CONFIGURE_ARGS+=--with-xaw3d -.endif + +DEBUG_CONFIGURE_ENABLE= debug + +LATIN1_DESC= Latin1 keys support +LATIN1_CONFIGURE_ENABLE=latin1 + +NEXTAW_DESC= Link with NeXtaw +NEXTAW_CONFIGURE_WITH= nextaw +NEXTAW_LIB_DEPENDS= libneXtaw.so:${PORTSDIR}/x11-toolkits/neXtaw + +XAW3D_DESC= Link with Xaw3d +XAW3D_CONFIGURE_WITH= xaw3d +XAW3D_LIB_DEPENDS= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d post-patch: @${REINPLACE_CMD} -e \ 's|$$(libdir)/$$(SHLPRE)$$(SHLFILE)$$(SHLPST)|&.2|' \ + -e '/ln -f -s/ s|libdir)|prefix)/lib|' \ ${WRKSRC}/Makefile.in post-install: - @cd ${PREFIX}/lib && ${LN} -sf libXCurses.so.2 libXCurses.so + @cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libXCurses.so.2 libXCurses.so + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libXCurses.so.2 .include