aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-04-16 20:58:28 +0800
committerJan Beich <jbeich@FreeBSD.org>2017-04-16 20:58:28 +0800
commit3c883d4ead43ed84fabb7b575d15ea67d1c6302f (patch)
tree43d1abb50229d5f18b370000fb4ddbef9c312cb8 /games
parente27ff90e17f2ed6c390bd092383cdf36002a5e21 (diff)
downloadfreebsd-ports-gnome-3c883d4ead43ed84fabb7b575d15ea67d1c6302f.tar.gz
freebsd-ports-gnome-3c883d4ead43ed84fabb7b575d15ea67d1c6302f.tar.zst
freebsd-ports-gnome-3c883d4ead43ed84fabb7b575d15ea67d1c6302f.zip
games/openbor: move to GitHub where new builds are
http://www.chronocrash.com/forum/index.php?topic=3344.0 MFH: 2017Q2
Diffstat (limited to 'games')
-rw-r--r--games/openbor/Makefile46
-rw-r--r--games/openbor/distinfo4
2 files changed, 9 insertions, 41 deletions
diff --git a/games/openbor/Makefile b/games/openbor/Makefile
index 76f7b4ea3b1a..0247dc3b0062 100644
--- a/games/openbor/Makefile
+++ b/games/openbor/Makefile
@@ -3,8 +3,6 @@
PORTNAME= openbor
PORTVERSION= 3.0.r4432
CATEGORIES= games
-MASTER_SITES= LOCAL/jbeich \
- https://svn.code.sf.net/p/${PORTNAME}/engine/engine/:svn
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Moddable fighting game engine (aka Beats of Rage)
@@ -18,9 +16,14 @@ LICENSE_FILE_ISCL= ${WRKSRC}/source/webmlib/nestegg/LICENSE
LIB_DEPENDS= libpng.so:graphics/png \
libvpx.so:multimedia/libvpx
-USES= gmake pkgconfig tar:xz
+USE_GITHUB= yes
+GH_ACCOUNT= DCurrent
+GH_TAGNAME= ba1eb4f # git v4432 is actually svn r4437
+
+USES= gmake pkgconfig
USE_CSTD= gnu89
USE_SDL= gfx2
+WRKSRC_SUBDIR= engine
MAKE_ENV= BUILD_LINUX=1 SDKPATH="${LOCALBASE}" \
GCC_TARGET="${CONFIGURE_TARGET:S/amd64/x86_64/}"
MAKE_ARGS= CC="${CC}" LIBRARIES="${LOCALBASE}/lib" \
@@ -50,41 +53,6 @@ TREMOR_LIB_DEPENDS= libvorbisidec.so:audio/libtremor
TREMOR_MAKE_ARGS= BUILD_TREMOR=1 BUILD_VORBIS=""
TREMOR_LIB_DEPENDS_OFF= libvorbisfile.so:audio/libvorbis
-.include <bsd.port.options.mk>
-
-#
-# To update snapshot: make makesum BOOTSTRAP=
-# Specific snapshot: make makesum SVN_FETCH= PORTVERSION=1.0.r1234
-#
-.if defined(BOOTSTRAP)
-SVN_REV!= svn info ${MASTER_SITES:M*\:svn:S/:svn//} | \
- ${SED} -n 's/^Last Changed Rev: //p'
-PORTVERSION:= ${PORTVERSION:R}.r${SVN_REV}
-.else
-SVN_REV?= ${PORTVERSION:E:S/r//}
-.endif
-
-.if defined(BOOTSTRAP) || defined(SVN_FETCH)
-FETCH_DEPENDS+= svn:devel/subversion
-
-NO_CHECKSUM= yes
-
-do-fetch:
- ${MKDIR} ${WRKDIR}
- svn export -r${SVN_REV} ${_MASTER_SITES_svn} ${WRKSRC}
- (cd ${WRKDIR} && ${TAR} cJvf \
- ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
- --uid 0 --gid 0 ${DISTNAME})
-. ifmake makesum
- ${REINPLACE_CMD} -i '' '/^PORTVERSION=/s/r.*/r${SVN_REV}/' \
- ${MASTERDIR}/Makefile
-. endif
-. if ${USER} == ${MAINTAINER:C/@.*//}
- -scp ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
- freefall.freebsd.org:public_distfiles/
-. endif
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's/ -O[0-9]//; s/ -g//; s/ -Werror//' \
-e 's/ -fomit-frame-pointer//' \
@@ -97,7 +65,7 @@ post-patch:
@${GREP} -Flr 'malloc.h' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
's,malloc\.h,stdlib.h,'
@${REINPLACE_CMD} -e 's/^function \(.*\) {/\1() {/' \
- -e 's/^get_revnum$$/VERSION_BUILD=${SVN_REV}/' \
+ -e 's/^get_revnum$$/VERSION_BUILD=${PORTVERSION:E:S/^r//}/' \
${WRKSRC}/version.sh
do-configure:
diff --git a/games/openbor/distinfo b/games/openbor/distinfo
index 6b015d52bf09..73649735fc4d 100644
--- a/games/openbor/distinfo
+++ b/games/openbor/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1485387608
-SHA256 (openbor-3.0.r4432.tar.xz) = 14215dca007f0300c281aa020bf8d79f65d58155b4e9705319d26bc5a9027199
-SIZE (openbor-3.0.r4432.tar.xz) = 3944096
+SHA256 (DCurrent-openbor-3.0.r4432-ba1eb4f_GH0.tar.gz) = 0c26130127d1ec1d98c6c5e68b38a11df3e405ed7e43b7c61762f6ae862538c5
+SIZE (DCurrent-openbor-3.0.r4432-ba1eb4f_GH0.tar.gz) = 6087650