svn commit: r329944 - head/devel/t1lib

Guido Falsi madpilot at FreeBSD.org
Thu Oct 10 00:00:29 UTC 2013


Author: madpilot
Date: Thu Oct 10 00:00:28 2013
New Revision: 329944
URL: http://svnweb.freebsd.org/changeset/ports/329944

Log:
  - Convert to staging
  - Use option helpers
  - Convert to USES=gmake

Modified:
  head/devel/t1lib/Makefile   (contents, props changed)

Modified: head/devel/t1lib/Makefile
==============================================================================
--- head/devel/t1lib/Makefile	Wed Oct  9 23:59:14 2013	(r329943)
+++ head/devel/t1lib/Makefile	Thu Oct 10 00:00:28 2013	(r329944)
@@ -12,7 +12,7 @@ MASTER_SITE_SUBDIR=	libs/graphics
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Type 1 font rasterization library for Unix/X11
 
-USE_GMAKE=	yes
+USES=		gmake
 USE_AUTOTOOLS=	libtool
 ALL_TARGET=	without_doc
 USE_LDCONFIG=	yes
@@ -20,17 +20,9 @@ USE_LDCONFIG=	yes
 OPTIONS_DEFINE=	X11 DOCS
 OPTIONS_DEFAULT=	X11
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MX11}
-USE_XORG=	xaw
-CONFIGURE_ARGS+=	--with-x
-PLIST_SUB+=	X11=""
-.else
-CONFIGURE_ARGS+=	--without-x
-PLIST_SUB+=	X11="@comment "
-.endif
+OPTIONS_SUB=	yes
+X11_USE=	XORG=xaw
+X11_CONFIGURE_WITH=	x
 
 post-patch:
 	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
@@ -41,9 +33,7 @@ post-patch:
 		's|_LT_CURRENT=.*$$|_LT_CURRENT=5|g' ${WRKSRC}/configure
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/t1lib_doc.pdf ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/t1lib_doc.pdf ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list