1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Add a desktop entry

- Fix configure script; we have TCP_NODELAY
- Remove useless patch

PR:		ports/92025
Submitted by:	jylefort
Approved by:	maintainer timeout (23 days)
This commit is contained in:
Jean-Yves Lefort 2006-02-11 02:00:35 +00:00
parent c84f8e8dd0
commit 9390a0bd48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155688
4 changed files with 45 additions and 18 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= eboard
PORTVERSION= 0.9.5
PORTREVISION= 1
PORTREVISION= 2
EXTRAS= 1pl2 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@ -29,6 +29,13 @@ INSTALL_TARGET= install install-man
MAN1= eboard-config.1 eboard-addtheme.1
MAN6= eboard.6
DESKTOP_ENTRIES="eboard" \
"Play chess" \
"eboard.xpm" \
"eboard" \
"Application;Game;" \
false
post-patch:
@${REINPLACE_CMD} -e 's,g++,${CXX},' -e 's,-O6,${CXXFLAGS},' \
${WRKSRC}/configure
@ -46,5 +53,7 @@ post-install:
@cd ${WRKDIR}/eboard-extras-${extra} && ./${CONFIGURE_SCRIPT} --prefix=${PREFIX}
@cd ${WRKDIR}/eboard-extras-${extra} && ${SETENV} ${MAKE_ENV} ${MAKE} install
.endfor
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/icon-eboard.xpm ${PREFIX}/share/pixmaps/eboard.xpm
.include <bsd.port.mk>

View File

@ -1,7 +1,5 @@
$FreeBSD$
--- configure.orig Wed Nov 26 17:48:49 2003
+++ configure Sun Dec 21 10:00:21 2003
--- configure.orig Thu Nov 27 00:48:49 2003
+++ configure Tue Jan 24 01:33:19 2006
@@ -244,7 +244,7 @@
}
print TESTCC "$program";
@ -11,3 +9,35 @@ $FreeBSD$
print ": no\n";
$y = header_def($x);
print CONFIGH "#undef $y\n";
@@ -372,17 +372,9 @@
#optional headers
header_check("strings.h","sys/soundcard.h","sys/audioio.h");
-$t1=macro_check("netinet/in.h","IPPROTO_TCP","HAVE_IPPROTO_TCP_ON_IN_H");
-$t2=macro_check("netinet/in.h","TCP_NODELAY","HAVE_TCP_NODELAY_ON_IN_H");
-$t3=macro_check("netinet/in.h","SOL_TCP","HAVE_SOL_TCP_ON_IN_H");
-
-$t4=macro_check("netinet/tcp.h","IPPROTO_TCP","HAVE_IPPROTO_TCP_ON_TCP_H");
-$t5=macro_check("netinet/tcp.h","TCP_NODELAY","HAVE_TCP_NODELAY_ON_TCP_H");
-$t6=macro_check("netinet/tcp.h","SOL_TCP","HAVE_SOL_TCP_ON_TCP_H");
-
print " net options: ";
-if ($t2 != 0) {
+if (0) {
cppdef("USE_SOCK_OPTS");
if ($t1!=0 && $t3!=0) {
cppundef("NEED_TCP_H");
@@ -396,10 +388,10 @@
print "netinet/tcp.h not required, SOL_TCP present.\n";
}
} else {
- if ($t5 != 0 && ($t1!=0 || $t4!=0) && ($t3!=0 || $t6!=0) ) {
+ if (1) {
cppdef("NEED_TCP_H");
cppdef("USE_SOCK_OPTS");
- if ($t1!=0 || $t4!=0) {
+ if (1) {
cppdef("USE_IPPROTO_TCP");
print "netinet/tcp.h required, IPPROTO_TCP present.\n";
} else {

View File

@ -1,13 +0,0 @@
--- network.h.orig Sat Jul 6 17:05:11 2002
+++ network.h Wed Aug 14 00:56:14 2002
@@ -47,6 +47,10 @@
#include "stl.h"
#include "eboard.h"
+#ifndef SOL_TCP
+#define SOL_TCP IPPROTO_TCP
+#endif
+
class PidIssuer {
public:
virtual void farewellPid(int dpid)=0;

View File

@ -70,5 +70,6 @@ share/eboard/ghouls.png
share/eboard/plastic.png
share/eboard/themeconf.extras1
share/eboard/themeconf.extras2
share/pixmaps/eboard.xpm
@dirrm share/eboard
%%PORTDOCS%%@dirrm %%DOCSDIR%%