ports/182950: [PATCH] games/sea-defender: update to 0.9
nemysis
nemysis at FreeBSD.org
Sun Oct 13 17:20:00 UTC 2013
>Number: 182950
>Category: ports
>Synopsis: [PATCH] games/sea-defender: update to 0.9
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 13 17:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.2-RELEASE-p8 amd64
>Organization:
>Environment:
System: FreeBSD nemysis4now 9.2-RELEASE-p8 FreeBSD 9.2-RELEASE-p8 #0: Mon Sep 23 16:26:45 UTC 2013
>Description:
- Update to 0.9
- Change master sites (GitHub)
- Add license (MIT)
- Change dependency graphics/glfw to graphics/glfw2
- Add icons and Desktop entry file
- USES gmake
- Support STAGEDIR
Port maintainer (amdmi3 at FreeBSD.org) is cc'd.
Generated and tested manually, tested with stage and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: update, diff: ports)
>How-To-Repeat:
Build log
https://redports.org/buildarchive/20131013153800-21163/
games/sea-defender needs statical libraries (libglfw.a),
which have at the moment only graphics/glfw2
>Fix:
--- sea-defender-0.9.patch begins here ---
diff -ruN /usr/ports/games/sea-defender/Makefile ./Makefile
--- /usr/ports/games/sea-defender/Makefile 2013-10-13 17:20:54.000000000 +0200
+++ ./Makefile 2013-10-13 18:55:01.000000000 +0200
@@ -2,42 +2,56 @@
# $FreeBSD: head/games/sea-defender/Makefile 328711 2013-09-29 17:01:41Z zeising $
PORTNAME= sea-defender
-PORTVERSION= r20100723
-PORTREVISION= 3
+PORTVERSION= 0.9
CATEGORIES= games
-MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
+MASTER_SITES= SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= amdmi3 at FreeBSD.org
COMMENT= Simple missile command clone
-BUILD_DEPENDS= ${LOCALBASE}/lib/libglfw.a:${PORTSDIR}/graphics/glfw
+LICENSE= MIT
-USE_BZIP2= yes
-USE_GMAKE= yes
+BUILD_DEPENDS= ${LOCALBASE}/lib/libglfw.a:${PORTSDIR}/graphics/glfw2
+
+USE_GITHUB= yes
+GH_ACCOUNT= snoutmate
+GH_PROJECT= Sea-Defender
+GH_TAGNAME= ${GH_COMMIT}
+GH_COMMIT= d628051
+
+USES= gmake
USE_SDL= sdl mixer image ttf
USE_GL= gl glu
USE_XORG= x11 xrandr
SUB_FILES= ${PORTNAME}.sh
-PLIST_FILES= libexec/${PORTNAME} bin/${PORTNAME}
-
-WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_FILES= libexec/${PORTNAME} \
+ bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.png
PORTDOCS= README
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
+DESKTOP_ENTRIES="Sea Defender" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" false
+
.include <bsd.port.options.mk>
.if defined(WITH_NEW_XORG)
-EXTRA_PATCHES+= ${FILESDIR}/extra-snoutlib_gldefs.h
+EXTRA_PATCHES+= ${FILESDIR}/extra-snoutlib_gldefs.h
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sea ${PREFIX}/libexec/${PORTNAME}
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/sea ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff -ruN /usr/ports/games/sea-defender/distinfo ./distinfo
--- /usr/ports/games/sea-defender/distinfo 2013-10-13 17:20:54.000000000 +0200
+++ ./distinfo 2013-10-13 14:51:40.000000000 +0200
@@ -1,2 +1,4 @@
-SHA256 (sea-defender-r20100723.tar.bz2) = 2f8b11b3f047653d58b0dabc4384486bb3f3c173bed5f5592df070079cd73624
-SIZE (sea-defender-r20100723.tar.bz2) = 164757
+SHA256 (sea-defender-0.9.tar.gz) = d6a2ed363fb642960addcd8e43422f74f5516e6d331691703f920252d4f0596c
+SIZE (sea-defender-0.9.tar.gz) = 191267
+SHA256 (sea-defender.png) = 823fe77ea032db6186ed71eec995a6038705757816f61112dc8dfb19e2e58aba
+SIZE (sea-defender.png) = 2928
diff -ruN /usr/ports/games/sea-defender/files/patch-Makefile ./files/patch-Makefile
--- /usr/ports/games/sea-defender/files/patch-Makefile 2013-10-13 17:20:54.000000000 +0200
+++ ./files/patch-Makefile 2013-10-13 16:56:52.000000000 +0200
@@ -1,10 +1,11 @@
---- Makefile.orig 2010-03-23 19:52:15.000000000 +0300
-+++ Makefile 2010-07-24 00:10:22.000000000 +0400
-@@ -1,12 +1,9 @@
+--- ./Makefile.orig 2010-03-23 17:52:15.000000000 +0100
++++ ./Makefile 2013-10-13 16:47:59.000000000 +0200
+@@ -1,12 +1,10 @@
-#CXX = g++
-CXX = colorgcc
-#CXXFLAGS = -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -minline-all-stringops -ggdb
-CXXFLAGS = -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -minline-all-stringops -ggdb
++CXX ?= colorgcc
+CXXFLAGS += -Wall -fno-exceptions -fno-unwind-tables -fno-rtti -I${LOCALBASE}/include
# -Weffc++ -U_FORTIFY_SOURCE
@@ -16,7 +17,7 @@
INCLUDES =
FILE2C = utils/file2c.rb
-@@ -63,14 +60,4 @@
+@@ -63,14 +61,4 @@
DEPDIR = .deps
df = $(DEPDIR)/$(*F)
--- sea-defender-0.9.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list