aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-04-18 03:21:37 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-04-18 03:21:37 +0800
commit24ce2dfab4bcc2ca873c6920aa05a243d310124f (patch)
tree03c4dbd45e87c2b76e006abfdafb677bd2b89f2e /games
parent39724cabe78814b5a706f5f9ec4658fdb2228640 (diff)
downloadfreebsd-ports-gnome-24ce2dfab4bcc2ca873c6920aa05a243d310124f.tar.gz
freebsd-ports-gnome-24ce2dfab4bcc2ca873c6920aa05a243d310124f.tar.zst
freebsd-ports-gnome-24ce2dfab4bcc2ca873c6920aa05a243d310124f.zip
- Add LICENSE
- Add .desktop entry - Respect CFLAGS/LDFLAGS
Diffstat (limited to 'games')
-rw-r--r--games/xpired/Makefile13
-rw-r--r--games/xpired/files/patch-Makefile16
2 files changed, 21 insertions, 8 deletions
diff --git a/games/xpired/Makefile b/games/xpired/Makefile
index f6c9a748f8d6..25dba38b59ee 100644
--- a/games/xpired/Makefile
+++ b/games/xpired/Makefile
@@ -3,17 +3,26 @@
PORTNAME= xpired
PORTVERSION= 1.22
-PORTREVISION= 22
+PORTREVISION= 23
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-linux/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux_source
MAINTAINER= ports@FreeBSD.org
-COMMENT= Action-puzzle maze escape game (SDL)
+COMMENT= Action-puzzle maze escape game
+
+LICENSE= GPLv2+
USE_SDL= gfx image mixer sdl
WRKSRC= ${WRKDIR}/src
+DESKTOP_ENTRIES="Xpired" \
+ "" \
+ "${DATADIR}/img/icon.bmp" \
+ "${PORTNAME}" \
+ "Game;LogicGame;ActionGame;" \
+ ""
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xpired ${WRKSRC}/xpiredit \
${STAGEDIR}${PREFIX}/bin
diff --git a/games/xpired/files/patch-Makefile b/games/xpired/files/patch-Makefile
index a91bce489971..7e8ebfbdc057 100644
--- a/games/xpired/files/patch-Makefile
+++ b/games/xpired/files/patch-Makefile
@@ -1,11 +1,15 @@
---- Makefile.orig 2013-10-18 04:17:46.000000000 +1100
-+++ Makefile 2013-10-18 04:17:55.000000000 +1100
-@@ -2,7 +2,7 @@
+--- Makefile.orig 2002-08-01 18:42:51 UTC
++++ Makefile
+@@ -1,8 +1,8 @@
+-PREFIX=/usr/local
++PREFIX?=/usr/local
SHARE_PREFIX=$(PREFIX)/share/xpired
- CFLAGS=`sdl-config --cflags` -DUNIX -DPREFIX=\"$(PREFIX)\" -DSHARE_PREFIX=\"$(SHARE_PREFIX)\"
- LDFLAGS=`sdl-config --libs` -lSDL -lSDL_mixer -lSDL_image -lSDL_gfx
+-CFLAGS=`sdl-config --cflags` -DUNIX -DPREFIX=\"$(PREFIX)\" -DSHARE_PREFIX=\"$(SHARE_PREFIX)\"
+-LDFLAGS=`sdl-config --libs` -lSDL -lSDL_mixer -lSDL_image -lSDL_gfx
-CC=gcc
-+CC=cc
++CFLAGS+=`sdl-config --cflags` -DUNIX -DPREFIX=\"$(PREFIX)\" -DSHARE_PREFIX=\"$(SHARE_PREFIX)\"
++LDFLAGS+=`sdl-config --libs` -lSDL -lSDL_mixer -lSDL_image -lSDL_gfx
++CC?=cc
BINARIES = xpired xpiredit