mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Update to 1.0.3
This commit is contained in:
parent
1ba17e0c01
commit
6c2202a9ef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183731
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= eboard
|
||||
PORTVERSION= 1.0.2
|
||||
PORTVERSION= 1.0.3
|
||||
EXTRAS= 1pl2 2
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
@ -22,13 +22,18 @@ HAS_CONFIGURE= yes
|
||||
USE_PERL5_BUILD=yes
|
||||
USE_GNOME= gtk20
|
||||
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} --extra-inc=${LOCALBASE}/include:${X11BASE}/include --extra-ld=${LOCALBASE}/lib:${X11BASE}/lib
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--extra-inc=${LOCALBASE}/include:${X11BASE}/include \
|
||||
--extra-ld=${LOCALBASE}/lib:${X11BASE}/lib \
|
||||
--disable-dgt
|
||||
|
||||
INSTALL_TARGET= install install-man
|
||||
|
||||
MAN1= eboard-config.1 eboard-addtheme.1
|
||||
MAN6= eboard.6
|
||||
|
||||
OPTIONS= JOYSTICK "joystick support" off
|
||||
|
||||
DESKTOP_ENTRIES="eboard" \
|
||||
"Play chess" \
|
||||
"eboard.xpm" \
|
||||
@ -36,6 +41,13 @@ DESKTOP_ENTRIES="eboard" \
|
||||
"Application;Game;" \
|
||||
true
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_JOYSTICK)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js
|
||||
RUN_DEPENDS+= ${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
.for e in ${EXTRAS}
|
||||
@cd ${WRKDIR} && ${GZIP_CMD} -dc \
|
||||
@ -46,6 +58,12 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's,g++,${CXX},' -e 's,-O6,${CXXFLAGS},' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
.if !defined(WITH_JOYSTICK)
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -e '/^#define HAVE_LINUX_JOYSTICK_H 1/ d' \
|
||||
${WRKSRC}/config.h
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${LN} -sf ${LOCALBASE}/bin/timeseal ${DATADIR}/timeseal.FreeBSD
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ -64,4 +82,4 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/icon-eboard.xpm ${PREFIX}/share/pixmaps/eboard.xpm
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
MD5 (eboard-1.0.2.tar.bz2) = faea915d4aaaf5ac20fd631ab4d47ea2
|
||||
SHA256 (eboard-1.0.2.tar.bz2) = a377f06300537e6e869542c49cb1ab4be0918be9dbf35a3771239c9a283732c5
|
||||
SIZE (eboard-1.0.2.tar.bz2) = 408023
|
||||
MD5 (eboard-1.0.3.tar.bz2) = 833e656549d9fd9191e51b08005633e3
|
||||
SHA256 (eboard-1.0.3.tar.bz2) = 96556e9b94496bb315349f8dc3c79f264621db8f2e4a8c5d640a8bc37a49012f
|
||||
SIZE (eboard-1.0.3.tar.bz2) = 428502
|
||||
MD5 (eboard-extras-1pl2.tar.gz) = d5fb7a541d9ef5f6d1d565d877b1ab9a
|
||||
SHA256 (eboard-extras-1pl2.tar.gz) = 6849cc104e454167db8b8e9ae0573accade5c941a140b47e58b601164e99fcc3
|
||||
SIZE (eboard-extras-1pl2.tar.gz) = 361237
|
||||
|
11
games/eboard/files/patch-main.cc
Normal file
11
games/eboard/files/patch-main.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- main.cc.orig Mon Jan 22 18:57:40 2007
|
||||
+++ main.cc Tue Jan 30 21:07:51 2007
|
||||
@@ -139,7 +139,7 @@
|
||||
char devname[64];
|
||||
|
||||
for(i=0;i<10;i++) {
|
||||
- snprintf(devname,64,"/dev/js%d",i);
|
||||
+ snprintf(devname,64,"/dev/input/js%d",i);
|
||||
fd = open(devname,O_RDONLY);
|
||||
if (fd >= 0) break;
|
||||
}
|
Loading…
Reference in New Issue
Block a user