xmj: update to 1.16; fix the build with -fno-common
20 years of changes: https://mahjong.julianbradfield.org/news.html Note that xmj moved to gtk+2. While here, build with -std=gnu99; this should avoid a build failure on base-gcc archs because of initial declaractions in 'for' loops. OK sthen@
This commit is contained in:
parent
435c475135
commit
7b3f7d21a3
@ -1,23 +1,38 @@
|
||||
# $OpenBSD: Makefile,v 1.25 2019/07/12 20:46:27 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.26 2021/02/05 15:32:06 cwen Exp $
|
||||
|
||||
COMMENT= Mahjongg game for X11
|
||||
|
||||
DISTNAME= xmj
|
||||
PKGNAME= xmj-1.0
|
||||
REVISION = 3
|
||||
DISTNAME= mj-1.16-src
|
||||
PKGNAME= x${DISTNAME:S/-src$//}
|
||||
|
||||
CATEGORIES= games
|
||||
|
||||
# BSD
|
||||
HOMEPAGE= https://mahjong.julianbradfield.org/
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB= X11 Xau Xdmcp Xext c xcb
|
||||
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
|
||||
WANTLIB += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
|
||||
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
|
||||
WANTLIB += gtk-x11-2.0 harfbuzz intl m pango-1.0 pangocairo-1.0
|
||||
WANTLIB += pangoft2-1.0 z
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/Source/
|
||||
|
||||
LIB_DEPENDS= x11/gtk+2
|
||||
|
||||
MAKE_FLAGS+= CC="${CC}" EXTRA_CFLAGS="${CFLAGS}" CDEBUGFLAGS=
|
||||
# The final '/' matters
|
||||
FAKE_FLAGS+= DESTDIR="${WRKINST}${PREFIX}/"
|
||||
|
||||
USE_GMAKE= Yes
|
||||
|
||||
CONFIGURE_STYLE=imake noman
|
||||
NO_TEST= Yes
|
||||
|
||||
pre-configure:
|
||||
@perl -pi -e 's,_height=,_height ,g;' \
|
||||
-e 's,_width=,_width ,g' $i \
|
||||
${WRKSRC}/tiles/c*
|
||||
# base-gcc fix for "c99 initial declarations in for loops" error
|
||||
CFLAGS+= -std=gnu99
|
||||
|
||||
INSTALL_TARGET= install install.man
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (xmj.tar.gz) = EGcUMVIKBYSp3BJHqnYPM988WHP7G7IVgN//NK7xhyg=
|
||||
SIZE (xmj.tar.gz) = 52255
|
||||
SHA256 (mj-1.16-src.tar.gz) = wl6YSPSfcGNeXjugy1l5nlvBSalfeGYhuZaWtmeHop0=
|
||||
SIZE (mj-1.16-src.tar.gz) = 403981
|
||||
|
@ -1,9 +0,0 @@
|
||||
$OpenBSD: patch-Imakefile,v 1.1 2007/10/27 13:32:05 ajacoutot Exp $
|
||||
--- Imakefile.orig Fri May 5 16:46:04 1989
|
||||
+++ Imakefile Sat Oct 27 15:15:14 2007
|
||||
@@ -4,4 +4,4 @@ LOCAL_LIBRARIES = $(XLIB)
|
||||
OBJS = bicons.o cicons.o cicons1.o cicons2.o cicons3.o cicons4.o \
|
||||
cicons5.o event.o icons.o mj.o nicons.o
|
||||
|
||||
-ComplexProgramTarget(xmj)
|
||||
+ComplexProgramTargetNoMan(xmj)
|
@ -1,11 +0,0 @@
|
||||
$OpenBSD: patch-event_c,v 1.1 2017/04/19 22:02:45 espie Exp $
|
||||
--- event.c.orig Thu Apr 20 00:00:59 2017
|
||||
+++ event.c Thu Apr 20 00:01:22 2017
|
||||
@@ -599,6 +599,7 @@ void board_num_proc()
|
||||
place_tiles(FALSE);
|
||||
}
|
||||
|
||||
+void
|
||||
msg_event_proc(event)
|
||||
XEvent *event;
|
||||
{
|
@ -1,2 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2002/04/07 01:54:49 naddy Exp $
|
||||
bin/xmj
|
||||
@comment $OpenBSD: PLIST,v 1.3 2021/02/05 15:32:06 cwen Exp $
|
||||
@bin bin/mj-player
|
||||
@bin bin/mj-server
|
||||
@bin bin/xmj
|
||||
@man man/man1/mj-player.1
|
||||
@man man/man1/mj-server.1
|
||||
@man man/man1/xmj.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user