ports/113776: Update port: graphics/xpx
KATO Tsuguru
tkato432 at yahoo.com
Sat Jun 16 18:10:08 UTC 2007
>Number: 113776
>Category: ports
>Synopsis: Update port: graphics/xpx
>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: Sat Jun 16 18:10:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 6.2-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Fix build with gcc4
- Support PORTDOCS/PLIST_FILES
Remove file:
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/graphics/xpx/Makefile graphics/xpx/Makefile
--- /usr/ports/graphics/xpx/Makefile Sun May 20 13:51:53 2007
+++ graphics/xpx/Makefile Tue Jun 12 23:48:22 2007
@@ -10,19 +10,29 @@
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.oersted.co.jp/~yav/soft/xpx/
-DISTNAME= xpx141
+DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
MAINTAINER= ports at FreeBSD.org
COMMENT= A simple pixel editing tool to make datas for KISS
-WRKSRC= ${WRKDIR}/xpx
+WRKSRC= ${WRKDIR}/${PORTNAME}
USE_IMAKE= yes
XMKMF= xmkmf
+DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
+PORTDOCS= xpx.doc xpxrc.eg
+PLIST_FILES= bin/xpx
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|myname|my_name|g' ${WRKSRC}/magtoppm.c
+ @${REINPLACE_CMD} -e '/edit_mode/d' ${WRKSRC}/work.h
+
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ja/xpx
- ${INSTALL_MAN} ${WRKSRC}/xpx.doc ${WRKSRC}/xpxrc.eg ${PREFIX}/share/doc/ja/xpx
+ ${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
.endif
.include <bsd.port.mk>
diff -urN /usr/ports/graphics/xpx/pkg-plist graphics/xpx/pkg-plist
--- /usr/ports/graphics/xpx/pkg-plist Wed Nov 18 18:56:43 1998
+++ graphics/xpx/pkg-plist Thu Jan 1 09:00:00 1970
@@ -1,4 +0,0 @@
-bin/xpx
-share/doc/ja/xpx/xpx.doc
-share/doc/ja/xpx/xpxrc.eg
- at dirrm share/doc/ja/xpx
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list