1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Fix MASTER_SITES

- Support PREFIX properly

PR:		19223
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
This commit is contained in:
Maxim Sobolev 2000-06-22 09:34:45 +00:00
parent 38d0ebaebf
commit aa0bdfa0c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29768
2 changed files with 13 additions and 12 deletions

View File

@ -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
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/xlines ${PREFIX}/bin
@ ${MKDIR} ${PREFIX}/share/xlines
@ ${INSTALL_DATA} ${WRKSRC}/trolltech.gif ${PREFIX}/share/xlines
post-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>

View File

@ -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);