From b9daf5546c892c2361edbe79ace351ee3b22cfac Mon Sep 17 00:00:00 2001 From: riggs Date: Sat, 1 Feb 2014 16:31:45 +0000 Subject: - Remove build dependency on imake - Remove support for original Altenburger card set (no valid license for these files anymore, author removed the download) - Stagify - Add LICENSE - Overall port Makefile simplification Approved by: mentor (thierry) --- games/xskat/Makefile | 37 +++++++++++++++++-------------------- games/xskat/files/patch-Makefile | 20 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 20 deletions(-) create mode 100644 games/xskat/files/patch-Makefile diff --git a/games/xskat/Makefile b/games/xskat/Makefile index 22c41c2eed7..ca40b458646 100644 --- a/games/xskat/Makefile +++ b/games/xskat/Makefile @@ -6,33 +6,30 @@ PORTVERSION= 4.0 PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.xskat.de/ -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Play the card game Skat -.if defined(WITH_ALTENBURGER_CARDS) -DISTFILES+= xskat-cards.tar.gz -RESTRICTED= The altenburger card file is NOT freely redistributable! -.endif +LICENSE= unknown +LICENSE_NAME= xskat license clause +LICENSE_FILE= ${WRKSRC}/README +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -USES= imake USE_XORG= x11 -MAN1= xskat.1 xskat-de.1 -PLIST_FILES= bin/xskat - -NO_STAGE= yes -pre-fetch: -.if !defined(WITH_ALTENBURGER_CARDS) - @${ECHO} - @${ECHO} "You can compile xskat with the beautiful original" - @${ECHO} "Altenburger card set by setting WITH_ALTENBURGER_CARDS" - @${ECHO} -.endif +PLIST_FILES= bin/xskat \ + man/man1/xskat.1.gz \ + man/man1/xskat-de.1.gz + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lX11 post-patch: -.if defined(WITH_ALTENBURGER_CARDS) - cd ${WRKSRC}; ${CP} ../xskat-cards.c cards.c -.endif + ${MV} ${WRKSRC}/xskat.man ${WRKSRC}/xskat.1 + ${MV} ${WRKSRC}/xskat-de.man ${WRKSRC}/xskat-de.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/xskat ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/xskat.1 ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/xskat-de.1 ${STAGEDIR}${PREFIX}/man/man1 .include diff --git a/games/xskat/files/patch-Makefile b/games/xskat/files/patch-Makefile new file mode 100644 index 00000000000..92c6cf39e79 --- /dev/null +++ b/games/xskat/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2000-03-08 20:31:24.000000000 +0100 ++++ Makefile 2014-02-01 13:26:41.616864659 +0100 +@@ -16,8 +16,6 @@ + # where x.y is the version of the original program + # and z is an arbitrary suffix. + +-CFLAGS = +-LDFLAGS = -L/usr/X11R6/lib -lX11 + # perhaps you need one of: -lsocket -lnsl + + #DEFL = -DDEFAULT_LANGUAGE=\"german\" +@@ -28,6 +26,8 @@ + SHELL = /bin/sh + OBJECTS = skat.o ramsch.o null.o bitmaps.o xio.o xdial.o irc.o text.o + ++all: xskat ++ + xskat: $(OBJECTS) + $(CC) $(OBJECTS) $(LDFLAGS) -o $@ + -- cgit