diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-06-22 09:34:45 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-06-22 09:34:45 +0000 |
commit | aa0bdfa0c8c4e8d8c7552335f460ddc5d7e03e17 (patch) | |
tree | 9ec6e25a01d8a7d4cd21dc0debcaadd96d324de4 /games | |
parent | Add a sample rc file for svscan startup, in partial fulfillment of the (diff) |
- Fix MASTER_SITES
- Support PREFIX properly
PR: 19223
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes:
svn path=/head/; revision=29768
Diffstat (limited to 'games')
-rw-r--r-- | games/xlines/Makefile | 23 | ||||
-rw-r--r-- | games/xlines/files/patch-ab | 2 |
2 files changed, 13 insertions, 12 deletions
diff --git a/games/xlines/Makefile b/games/xlines/Makefile index c1696ceb0369..433b21cdb28e 100644 --- a/games/xlines/Makefile +++ b/games/xlines/Makefile @@ -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_QT= yes 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 --git a/games/xlines/files/patch-ab b/games/xlines/files/patch-ab index a7a71e82127f..2e74e16c0ffa 100644 --- a/games/xlines/files/patch-ab +++ b/games/xlines/files/patch-ab @@ -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); |