Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2014 18:06:42 +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: r349935 - head/devel/pdcurses
Message-ID:  <201404021806.s32I6gwW001387@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Apr  2 18:06:42 2014
New Revision: 349935
URL: http://svnweb.freebsd.org/changeset/ports/349935
QAT: https://qat.redports.org/buildarchive/r349935/

Log:
  - Add staging support
  - Use options helpers
  - Strip library

Modified:
  head/devel/pdcurses/Makefile

Modified: head/devel/pdcurses/Makefile
==============================================================================
--- head/devel/pdcurses/Makefile	Wed Apr  2 18:00:39 2014	(r349934)
+++ head/devel/pdcurses/Makefile	Wed Apr  2 18:06:42 2014	(r349935)
@@ -17,36 +17,29 @@ USE_XORG=	x11 xext sm ice xt xaw
 GNU_CONFIGURE=	yes
 MAKE_JOBS_UNSAFE=yes
 
-OPTONS_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
+OPTIONS_DEFINE=	DEBUG LATIN1 NEXTAW XAW3D
+
+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?201404021806.s32I6gwW001387>