Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2000 12:09:20 -0700 (PDT)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/19223: Update port: games/xlines
Message-ID:  <20000612190920.7FFFD37BA1F@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         19223
>Category:       ports
>Synopsis:       Update port: games/xlines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 12 12:10:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.0-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Support PREFIX properly

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/games/xlines/Makefile games/xlines/Makefile
--- /usr/ports/games/xlines/Makefile	Sat Apr 15 00:24:24 2000
+++ games/xlines/Makefile	Sat Jun 10 11:44:43 2000
@@ -8,7 +8,7 @@
 PORTNAME=	xlines
 PORTVERSION=	1.0
 CATEGORIES=	games
-MASTER_SITES=	ftp://risq.belcaf.minsk.by/pub/genie/
+MASTER_SITES=	ftp://ftp.trolltech.com/contrib/
 DISTNAME=	${PORTNAME}
 
 MAINTAINER=	ports@FreeBSD.org
@@ -17,19 +17,20 @@
 USE_X_PREFIX=	yes
 NO_WRKSUBDIR=	yes
 
-pre-build:
-	@ ${RM} ${WRKSRC}/lines.moc
+post-extract:
+	@${RM} ${WRKSRC}/lines.moc
 
-do-install:
-	@ ${INSTALL_PROGRAM} ${WRKSRC}/xlines ${PREFIX}/bin
-	@ ${MKDIR} ${PREFIX}/share/xlines
-	@ ${INSTALL_DATA} ${WRKSRC}/trolltech.gif ${PREFIX}/share/xlines
+post-patch:
+	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp
 
-post-install:
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/xlines ${PREFIX}/bin
+	@${MKDIR} ${PREFIX}/share/xlines
+	${INSTALL_DATA} ${WRKSRC}/trolltech.gif ${PREFIX}/share/xlines
 .if !defined(NOPORTDOCS)
-	@ ${MKDIR} ${PREFIX}/share/doc/xlines
-	@ ${INSTALL_DATA} ${WRKSRC}/readme.lines ${PREFIX}/share/doc/xlines
-	@ ${INSTALL_DATA} ${WRKSRC}/readme.qt ${PREFIX}/share/doc/xlines
+	@${MKDIR} ${PREFIX}/share/doc/xlines
+	${INSTALL_DATA} ${WRKSRC}/readme.lines ${PREFIX}/share/doc/xlines
+	${INSTALL_DATA} ${WRKSRC}/readme.qt ${PREFIX}/share/doc/xlines
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/xlines/patches/patch-ab games/xlines/patches/patch-ab
--- /usr/ports/games/xlines/patches/patch-ab	Sat Feb 14 03:08:29 1998
+++ games/xlines/patches/patch-ab	Sat Jun 10 11:43:06 2000
@@ -5,7 +5,7 @@
     curScore=0;
     score->display(0);
 -   movie=new QMovie("trolltech.gif");
-+   movie=new QMovie("/usr/X11R6/share/xlines/trolltech.gif");
++   movie=new QMovie("%%PREFIX%%/share/xlines/trolltech.gif");
     label=new QLabel(this,"label");
     label->setFrameStyle(QFrame::Box|QFrame::Plain);
     label->setMovie(*movie);


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000612190920.7FFFD37BA1F>