ports/177138: [PATCH] graphics/mxp: Convert to OptionsNG
nemysis
nemysis at gmx.ch
Wed Mar 20 13:40:00 UTC 2013
>Number: 177138
>Category: ports
>Synopsis: [PATCH] graphics/mxp: Convert to OptionsNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 20 13:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10
>Description:
Removed file(s):
- pkg-plist
Port maintainer (maho at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- mxp-1.3_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/mxp/Makefile ./Makefile
--- /usr/ports/graphics/mxp/Makefile 2013-01-14 17:57:05.000000000 +0100
+++ ./Makefile 2013-03-20 14:03:12.000000000 +0100
@@ -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: head/graphics/mxp/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
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 @@
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
diff -ruN --exclude=CVS /usr/ports/graphics/mxp/pkg-plist ./pkg-plist
--- /usr/ports/graphics/mxp/pkg-plist 2013-03-17 22:05:15.000000000 +0100
+++ ./pkg-plist 1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-bin/mxp
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- mxp-1.3_4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list