diff options
author | pawel <pawel@FreeBSD.org> | 2013-12-25 21:13:02 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2013-12-25 21:13:02 +0800 |
commit | b5e802c2b589d93ef8ddeca6e2046a311c879738 (patch) | |
tree | 80248d1ed048584365a5b38f569474b5205778c1 /games/netspades | |
parent | 16d985fe564b845331a52d4896cf963c4995918c (diff) | |
download | freebsd-ports-gnome-b5e802c2b589d93ef8ddeca6e2046a311c879738.tar.gz freebsd-ports-gnome-b5e802c2b589d93ef8ddeca6e2046a311c879738.tar.zst freebsd-ports-gnome-b5e802c2b589d93ef8ddeca6e2046a311c879738.zip |
- Fix build with clang
- Update MASTER_SITES
- Add LICENSE, desktop entry file
- Add OPTIONS for GTK1 and SLANG support
- Support staging
- Switch to PLIST_FILES
PR: ports/184843
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'games/netspades')
-rw-r--r-- | games/netspades/Makefile | 56 | ||||
-rw-r--r-- | games/netspades/pkg-plist | 3 |
2 files changed, 49 insertions, 10 deletions
diff --git a/games/netspades/Makefile b/games/netspades/Makefile index 5f8b5f33f523..50e05c86a89c 100644 --- a/games/netspades/Makefile +++ b/games/netspades/Makefile @@ -3,22 +3,64 @@ PORTNAME= NetSpades PORTVERSION= 4.2.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= games -MASTER_SITES= http://www.ece.rice.edu/~brentmh/spades/ +MASTER_SITES= TUCOWS/x11/entertain \ + http://www.ece.rice.edu/~brentmh/spades/ MAINTAINER= ports@FreeBSD.org COMMENT= Very popular card game for 1-4 players over a network -LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2 +LICENSE= GPLv2 # (or later) +OPTIONS_DEFINE= GTK1 SLANG +OPTIONS_DEFAULT= GTK1 SLANG GNU_CONFIGURE= yes -USE_GNOME= gtk12 + CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -ltermcap +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= bin/spadesd man/man6/spadesd.6.gz + +GTK1_USE= GNOME=gtk12 +GTK1_CONFIGURE_OFF= --without-gtk +GTK1_PLIST_FILES= bin/gspades man/man6/gspades.6.gz + +SLANG_USES= readline +SLANG_CONFIGURE_OFF= --without-slang +SLANG_LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 +SLANG_LDFLAGS= -ltermcap +SLANG_PLIST_FILES= bin/slspades man/man6/slspades.6.gz + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MGTK1} +DESKTOP_ENTRIES="GSpades" "" "" "gspades" "" "" +.endif + +post-patch: +.for i in engine_func.c gtk_connect.c listen.c sl_io.c + @${REINPLACE_CMD} -e \ + 's| log| ns_log|g' ${WRKSRC}/src/${i} +.endfor -MAN6= gspades.6 slspades.6 spadesd.6 +do-install: + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} spadesd \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} spadesd.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6) +.if ${PORT_OPTIONS:MGTK1} + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} gspades \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} gspades.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6) +.endif +.if ${PORT_OPTIONS:MSLANG} + (cd ${WRKSRC}/src && ${INSTALL_PROGRAM} slspades \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} slspades.6 \ + ${STAGEDIR}${MANPREFIX}/man/man6) +.endif -NO_STAGE= yes .include <bsd.port.mk> diff --git a/games/netspades/pkg-plist b/games/netspades/pkg-plist deleted file mode 100644 index d03e9d3a2619..000000000000 --- a/games/netspades/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/gspades -bin/slspades -bin/spadesd |