aboutsummaryrefslogtreecommitdiff
path: root/games/xlines
diff options
context:
space:
mode:
Diffstat (limited to 'games/xlines')
-rw-r--r--games/xlines/Makefile36
-rw-r--r--games/xlines/distinfo1
-rw-r--r--games/xlines/files/patch-aa31
-rw-r--r--games/xlines/files/patch-ab11
-rw-r--r--games/xlines/pkg-comment1
-rw-r--r--games/xlines/pkg-descr12
-rw-r--r--games/xlines/pkg-plist6
7 files changed, 98 insertions, 0 deletions
diff --git a/games/xlines/Makefile b/games/xlines/Makefile
new file mode 100644
index 000000000000..8b7f0b387839
--- /dev/null
+++ b/games/xlines/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: xlines
+# Date created: 11 February 1998
+# Whom: Andrey Zakhvatov
+#
+# $FreeBSD$
+#
+
+PORTNAME= xlines
+PORTVERSION= 1.1
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.trolltech.com/contrib/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_QT_VER= 1
+USE_X_PREFIX= yes
+NO_WRKSUBDIR= yes
+
+pre-patch:
+ @find ${WRKSRC} -type f | xargs ${PERL} -pi -e "s|\r\n|\n|g"
+
+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
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/readme.lines ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/readme.qt ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/xlines/distinfo b/games/xlines/distinfo
new file mode 100644
index 000000000000..e49bed33b515
--- /dev/null
+++ b/games/xlines/distinfo
@@ -0,0 +1 @@
+MD5 (xlines.tar.gz) = 9e456bb7419b8cda6bc44ac9940913e4
diff --git a/games/xlines/files/patch-aa b/games/xlines/files/patch-aa
new file mode 100644
index 000000000000..1a110c11255f
--- /dev/null
+++ b/games/xlines/files/patch-aa
@@ -0,0 +1,31 @@
+--- Makefile.orig Mon Apr 27 16:47:35 1998
++++ Makefile Sun Jul 16 19:47:51 2000
+@@ -1,8 +1,8 @@
+-INCDIR=/usr/local/qt/include
+-CFLAGS=-O2 -I/usr/X11/include -DSHOW_NEXT_COLORS
+-LFLAGS=-L/usr/local/qt/lib -lqt -L/usr/X11/lib -lX11
+-CC=gcc
+-MOC=/usr/local/qt/bin/moc
++INCDIR=${X11BASE}/include/X11/qt1
++CXXFLAGS+=-I${X11BASE}/include -DSHOW_NEXT_COLORS
++LFLAGS=-L${X11BASE}/lib -lqt1 -lX11
++CC?=gcc
++MOC=${X11BASE}/bin/moc1
+
+ SRC=lines.cpp lines.moc
+ OBJECTS=lines.o
+@@ -14,12 +14,12 @@
+ .SUFFIXES: .cpp
+
+ .cpp.o:
+- $(CC) -c $(CFLAGS) -I$(INCDIR) $<
++ $(CXX) -c $(CXXFLAGS) -I$(INCDIR) $<
+
+ all: $(TARGET)
+
+ $(TARGET): $(MOCFILES) $(OBJECTS) lines.h
+- $(CC) $(OBJECTS) -o $(TARGET) $(LFLAGS) -I$(INCDIR)
++ $(CXX) $(OBJECTS) -o $(TARGET) $(LFLAGS) -I$(INCDIR)
+
+ lines.moc: lines.h
+ $(MOC) lines.h -o lines.moc
diff --git a/games/xlines/files/patch-ab b/games/xlines/files/patch-ab
new file mode 100644
index 000000000000..2e74e16c0ffa
--- /dev/null
+++ b/games/xlines/files/patch-ab
@@ -0,0 +1,11 @@
+--- lines.cpp.orig Sat Jan 17 18:11:13 1998
++++ lines.cpp Fri Feb 13 23:57:07 1998
+@@ -502,7 +502,7 @@
+ score->setGeometry(300,120,85,45);
+ curScore=0;
+ score->display(0);
+- movie=new QMovie("trolltech.gif");
++ movie=new QMovie("%%PREFIX%%/share/xlines/trolltech.gif");
+ label=new QLabel(this,"label");
+ label->setFrameStyle(QFrame::Box|QFrame::Plain);
+ label->setMovie(*movie);
diff --git a/games/xlines/pkg-comment b/games/xlines/pkg-comment
new file mode 100644
index 000000000000..54d571174bf5
--- /dev/null
+++ b/games/xlines/pkg-comment
@@ -0,0 +1 @@
+Remove as many balls from board as you can
diff --git a/games/xlines/pkg-descr b/games/xlines/pkg-descr
new file mode 100644
index 000000000000..c14a195cac7d
--- /dev/null
+++ b/games/xlines/pkg-descr
@@ -0,0 +1,12 @@
+ XLines is an old game of balls where your goal is to remove
+as many balls from the game field as you can.
+
+ I cannot claim the copyright on the idea of this game so
+all requests should go somewhere else.
+
+ If you need more information or have any questions you can
+contact me at:
+
+ e-mail: genie@ucsd.com or genie@risq.belcaf.minsk.by
+
+ ICQ UIN: 4096585
diff --git a/games/xlines/pkg-plist b/games/xlines/pkg-plist
new file mode 100644
index 000000000000..1337b5c7d716
--- /dev/null
+++ b/games/xlines/pkg-plist
@@ -0,0 +1,6 @@
+bin/xlines
+%%PORTDOCS%%share/doc/xlines/readme.qt
+%%PORTDOCS%%share/doc/xlines/readme.lines
+share/xlines/trolltech.gif
+%%PORTDOCS%%@dirrm share/doc/xlines
+@dirrm share/xlines