svn commit: r314802 - head/graphics/mxp

Maho Nakata maho at FreeBSD.org
Thu Mar 21 04:57:26 UTC 2013


Author: maho
Date: Thu Mar 21 04:57:25 2013
New Revision: 314802
URL: http://svnweb.freebsd.org/changeset/ports/314802

Log:
  graphics/mxp: Convert to OptionsNG
  
  PR:		177138
  Submitted by:	nemysis <nemysis at gmx.ch>

Modified:
  head/graphics/mxp/Makefile
  head/graphics/mxp/pkg-plist

Modified: head/graphics/mxp/Makefile
==============================================================================
--- head/graphics/mxp/Makefile	Thu Mar 21 04:43:13 2013	(r314801)
+++ head/graphics/mxp/Makefile	Thu Mar 21 04:57:25 2013	(r314802)
@@ -1,15 +1,11 @@
-# New ports collection makefile for:   mxp
-# Date Created:                18 March 2004
-# Whom:                        NAKATA Maho <maho at FreeBSD.org>
-#
+# Created by: NAKATA Maho <maho at FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	mxp
 PORTVERSION=	1.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
-MASTER_SITES=	${MASTER_SITE_SUNSITE}
+MASTER_SITES=	SUNSITE
 MASTER_SITE_SUBDIR=apps/math/fractals
 
 MAINTAINER=	maho at FreeBSD.org
@@ -20,17 +16,23 @@ ALL_TARGET=
 USE_XORG=	xaw xbitmaps xpm
 MAKE_JOBS_UNSAFE=	yes
 
+PLIST_FILES=	bin/${PORTNAME} \
+		%%PORTDOCS%%%%DOCSDIR%%/README
+PLIST_DIRS=	%%PORTDOCS%%%%DOCSDIR%%
+
+.include <bsd.port.options.mk>
+
 post-extract:
 	@${CP} ${WRKSRC}/Makefile.noimake ${WRKSRC}/Makefile
 post-patch:
-	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
-				s|%%LOCALBASE%%|${LOCALBASE}|g ; \
-				s|%%CFLAGS%%|${CFLAGS}|g ; \
+	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g; \
+				s|%%LOCALBASE%%|${LOCALBASE}|g; \
+				s|%%CFLAGS%%|${CFLAGS}|g; \
 				s|%%CC%%|${CC}|g'  ${WRKSRC}/Makefile
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/mxp ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 

Modified: head/graphics/mxp/pkg-plist
==============================================================================
--- head/graphics/mxp/pkg-plist	Thu Mar 21 04:43:13 2013	(r314801)
+++ head/graphics/mxp/pkg-plist	Thu Mar 21 04:57:25 2013	(r314802)
@@ -1,3 +0,0 @@
-bin/mxp
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%


More information about the svn-ports-all mailing list