Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2014 18:08:03 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349936 - head/devel/pdcurses-the
Message-ID:  <201404021808.s32I83g0001749@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
-
-.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 <bsd.port.mk>



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