mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Update to version 1.0.0
PR: ports/75113 Submitted by: Ports Fury
This commit is contained in:
parent
2dbcfc55e1
commit
dd89cf7e4e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124401
9 changed files with 108 additions and 84 deletions
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= qgo
|
||||
PORTVERSION= 0.2.2
|
||||
PORTVERSION= 1.0.0
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
@ -19,19 +19,16 @@ USE_QT_VER= 3
|
|||
USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= QTDIR=${QT_PREFIX}
|
||||
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
||||
AUTOHEADER="${TRUE}"
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
|
||||
CONFIGURE_ARGS= --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-pedantic||g ; \
|
||||
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|/usr/share|$${prefix}/share|g'
|
||||
|
||||
pre-build:
|
||||
-@${RM} ${WRKSRC}/qgo/src/*_gui.cpp
|
||||
-@${RM} ${WRKSRC}/qgo/src/*_gui.h
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|src templates|src|g' ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|: install-includeHEADERS|:|g' ${WRKSRC}/src/Makefile.in
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (qgo-0.2.2.tar.gz) = 4483bebd46ceda203b0cbad35da0a624
|
||||
SIZE (qgo-0.2.2.tar.gz) = 1751040
|
||||
MD5 (qgo-1.0.0.tar.gz) = a455fb3a850e340c9d07bb5e514026ef
|
||||
SIZE (qgo-1.0.0.tar.gz) = 1420181
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
--- qgo/Makefile.in.orig Mon May 10 18:33:38 2004
|
||||
+++ qgo/Makefile.in Mon May 10 18:34:44 2004
|
||||
@@ -235,7 +235,7 @@
|
||||
KDE_OPTIONS = qtonly
|
||||
qgo_LDADD = ./src/libsrc.a $(LIB_QPE) $(LIB_QT) $(LIBSOCKET)
|
||||
|
||||
-SUBDIRS = src templates
|
||||
+SUBDIRS = src
|
||||
|
||||
EXTRA_DIST = filenew.xpm filesave.xpm fileopen.xpm ChangeLog
|
||||
|
||||
@@ -266,6 +266,11 @@
|
||||
#>+ 1
|
||||
qgo_OBJECTS =
|
||||
qgo_DEPENDENCIES = ./src/libsrc.a
|
||||
+CFLAGS = @CFLAGS@
|
||||
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
+CCLD = $(CC)
|
||||
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = README ChangeLog Makefile.am Makefile.in TODO
|
||||
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
--- qgo/src/wavfile.c.orig Mon Jun 23 23:57:08 2003
|
||||
+++ qgo/src/wavfile.c Fri Aug 20 23:10:57 2004
|
||||
@@ -53,7 +53,6 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
-#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <memory.h>
|
||||
#include <signal.h>
|
||||
@@ -61,7 +60,7 @@
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <assert.h>
|
||||
-#include <linux/soundcard.h>
|
||||
+#include <sys/soundcard.h>
|
||||
|
||||
|
||||
// stop
|
||||
@@ -133,7 +132,7 @@
|
||||
//static ErrFunc _v_erf; /* This module's error reporting function */
|
||||
static char emsg[2048];
|
||||
|
||||
-
|
||||
+static void _v_erf(const char *format,va_list ap);
|
||||
|
||||
/*
|
||||
* Error reporting function for this source module:
|
|
@ -1,16 +0,0 @@
|
|||
--- qgo/src/wavplay.c.orig Tue Jun 24 06:57:09 2003
|
||||
+++ qgo/src/wavplay.c Mon Nov 3 00:50:02 2003
|
||||
@@ -55,12 +55,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
-#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
-#include <linux/soundcard.h>
|
||||
+#include <sys/soundcard.h>
|
||||
#include "wavplay.h"
|
||||
//#include "server.h"
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
--- qgo/src/mainwin.cpp.orig Sat Jun 19 07:38:43 2004
|
||||
+++ qgo/src/mainwin.cpp Sun Aug 22 15:55:59 2004
|
||||
@@ -1604,10 +1604,10 @@
|
||||
--- src/mainwin.cpp.orig Mon Nov 29 15:42:39 2004
|
||||
+++ src/mainwin.cpp Tue Dec 14 19:37:16 2004
|
||||
@@ -1571,10 +1571,10 @@
|
||||
//set the params of "who command"
|
||||
if ((whoBox1->currentItem() >1) || (whoBox2->currentItem() >1))
|
||||
{
|
60
games/qgo/files/patch-src::wavfile.c
Normal file
60
games/qgo/files/patch-src::wavfile.c
Normal file
|
@ -0,0 +1,60 @@
|
|||
--- src/wavfile.c.orig Sun Oct 31 08:36:45 2004
|
||||
+++ src/wavfile.c Thu Dec 16 01:18:54 2004
|
||||
@@ -41,7 +41,7 @@
|
||||
* wavplay project.
|
||||
*/
|
||||
|
||||
-#ifdef __linux__
|
||||
+#if defined(__linux__) || defined(__FreeBSD__)
|
||||
|
||||
static const char rcsid[] = "@(#)wavfile.c $Revision: 1.6 $";
|
||||
|
||||
@@ -52,7 +52,9 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
+#if defined(__linux__)
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
#include <string.h>
|
||||
#include <memory.h>
|
||||
#include <signal.h>
|
||||
@@ -60,7 +62,12 @@
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <assert.h>
|
||||
+#if defined(__linux__)
|
||||
#include <linux/soundcard.h>
|
||||
+#endif
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <sys/soundcard.h>
|
||||
+#endif
|
||||
|
||||
|
||||
|
||||
@@ -138,6 +145,12 @@
|
||||
* Error reporting function for this source module:
|
||||
*/
|
||||
static void
|
||||
+_v_erf(const char *format,va_list ap) {
|
||||
+ vsprintf(emsg,format,ap); /* Capture message into emsg[] */
|
||||
+}
|
||||
+
|
||||
+
|
||||
+static void
|
||||
err(const char *format,...) {
|
||||
va_list ap;
|
||||
fprintf(stdout, "error : %s \n",format);
|
||||
@@ -146,12 +159,6 @@
|
||||
va_start(ap,format);
|
||||
_v_erf(format,ap); /* Use caller's supplied function */
|
||||
va_end(ap);
|
||||
-}
|
||||
-
|
||||
-
|
||||
-static void
|
||||
-_v_erf(const char *format,va_list ap) {
|
||||
- vsprintf(emsg,format,ap); /* Capture message into emsg[] */
|
||||
}
|
||||
|
||||
|
30
games/qgo/files/patch-src::wavplay.c
Normal file
30
games/qgo/files/patch-src::wavplay.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
--- src/wavplay.c.orig Sun Oct 31 08:35:00 2004
|
||||
+++ src/wavplay.c Tue Dec 14 19:32:31 2004
|
||||
@@ -54,19 +54,26 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-#ifdef __linux__
|
||||
+#if defined(__linux__) || defined(__FreeBSD__)
|
||||
|
||||
static const char rcsid[] = "@(#)recplay.c $Revision: 1.8 $";
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
+#if defined(__linux__)
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
+#if defined(__linux__)
|
||||
#include <linux/soundcard.h>
|
||||
+#endif
|
||||
+#if defined(__linux__)
|
||||
+#include <sys/soundcard.h>
|
||||
+#endif
|
||||
#include "wavplay.h"
|
||||
/*/#include "server.h"*/
|
||||
|
|
@ -2,6 +2,7 @@ bin/qgo
|
|||
share/qGo/pics/Bowl.png
|
||||
share/qGo/sounds/click.wav
|
||||
share/qGo/sounds/connect.wav
|
||||
share/qGo/sounds/connect2.wav
|
||||
share/qGo/sounds/enter.wav
|
||||
share/qGo/sounds/gameend.wav
|
||||
share/qGo/sounds/leave.wav
|
||||
|
@ -9,12 +10,15 @@ share/qGo/sounds/match.wav
|
|||
share/qGo/sounds/pass.wav
|
||||
share/qGo/sounds/say.wav
|
||||
share/qGo/sounds/stone.wav
|
||||
share/qGo/sounds/stone2.wav
|
||||
share/qGo/sounds/talk.wav
|
||||
share/qGo/sounds/tictoc.wav
|
||||
share/qGo/translations/qgo_cz.qm
|
||||
share/qGo/translations/qgo_de.qm
|
||||
share/qGo/translations/qgo_fr.qm
|
||||
share/qGo/translations/qgo_it.qm
|
||||
share/qGo/translations/qgo_nl.qm
|
||||
share/qGo/translations/qgo_zh.qm
|
||||
@dirrm share/qGo/translations
|
||||
@dirrm share/qGo/sounds
|
||||
@dirrm share/qGo/pics
|
||||
|
|
Loading…
Add table
Reference in a new issue