diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-05-26 20:35:08 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-05-26 20:35:08 +0000 |
commit | d23de453cccfbb965cc85a639b52461822543c38 (patch) | |
tree | f3411c6d7f8d1731c8ae3daa4f3596b27c8a04d2 /games/daimonin/Makefile | |
parent | 5e9c27e524ad72eba3dfe3dd8e1adb874d7f781a (diff) | |
download | ports-d23de453cccfbb965cc85a639b52461822543c38.tar.gz ports-d23de453cccfbb965cc85a639b52461822543c38.zip |
- Fix fetch
- Fix build with clang
- Stagify
MFH: 2014Q2
Notes
Notes:
svn path=/head/; revision=355450
Diffstat (limited to 'games/daimonin/Makefile')
-rw-r--r-- | games/daimonin/Makefile | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/games/daimonin/Makefile b/games/daimonin/Makefile index 75495cc33632..af5d56ff7842 100644 --- a/games/daimonin/Makefile +++ b/games/daimonin/Makefile @@ -5,19 +5,17 @@ PORTNAME= daimonin PORTVERSION= 0.10.5 PORTREVISION= 3 CATEGORIES= games -MASTER_SITES= http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=${SVN_REVISION}&file= +MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ +# http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=${SVN_REVISION}&file= # disabled - weird fetch magic required DIST_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Free open source Massively Multiplayer On-line Role-playing Game (MMORPG) -LIB_DEPENDS= libphysfs.so.1:${PORTSDIR}/devel/physfs \ +LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs \ libcurl.so:${PORTSDIR}/ftp/curl -SVN_REVISION= 6021 -FETCH_BEFORE_ARGS= -o ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} - -HAS_CONFIGURE= yes +GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-simplelayout --enable-getaddrinfo LDFLAGS+= -L${LOCALBASE}/lib USE_AUTOTOOLS= automake autoconf @@ -28,19 +26,16 @@ SUB_LIST= PORTVERSION=${PORTVERSION} WRKSRC= ${WRKDIR}/client/make/linux OPTIONS_DEFINE= MUSIC DEBUG +OPTIONS_DEFAULT= KB_DESKTOP MUSIC OPTIONS_SINGLE= KB OPTIONS_SINGLE_KB= KB_DESKTOP KB_LAPTOP KB_ROGUE + KB_DESKTOP_DESC= Key bindings for desktop (num keypad) KB_LAPTOP_DESC= Key bindings for laptop (789uojkl) KB_ROGUE_DESC= Rogue-like key bindings (hjkl and yubn) KB_DESC= KB Selection MUSIC_DESC= Download and Install music files (83 Mb) -OPTIONS_DEFAULT= KB_DESKTOP MUSIC - -DD?= /bin/dd - -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDEBUG} @@ -51,13 +46,8 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-wrapper.c RUN_DEPENDS+= ${DATADIR}/media/AnichGiantTrouble.ogg:${PORTSDIR}/games/daimonin-music .endif -post-fetch-script: - @# the downloaded .tar.gz DISTFILE is regenerated for each download, so contains a different timestamp each time - @# clear the timestamp here so the checksum works - @${PRINTF} '\0\0\0\0' | ${DD} of=${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} bs=1w count=1 seek=1 conv=notrunc 2>/dev/null - pre-patch: - ${CP} ${WRKSRC}/../../settings/keys-laptop.dat ${WRKSRC}/../../settings/keys-rogue.dat + @${CP} ${WRKSRC}/../../settings/keys-laptop.dat ${WRKSRC}/../../settings/keys-rogue.dat post-patch: @${CHMOD} a+x ${WRKSRC}/make_utils/install-sh @@ -68,20 +58,19 @@ pre-configure: cd ${WRKSRC}; ${LN} -sf ${AUTOMAKE_DIR}/COPYING . && ${AUTORECONF} post-install: - ${MV} ${PREFIX}/bin/daimonin ${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/daimonin.sh ${PREFIX}/bin/daimonin - ${CHMOD} a+x ${PREFIX}/bin/daimonin - @${FIND} ${DATADIR} -name '*.orig' -exec rm {} \; - ${MV} ${DATADIR}/settings/keys.dat ${DATADIR}/settings/keys-desktop.dat + ${MV} ${STAGEDIR}${PREFIX}/bin/daimonin ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/daimonin.sh ${STAGEDIR}${PREFIX}/bin/daimonin + @${FIND} ${STAGEDIR}${DATADIR} -name '*.orig' -exec rm {} \; + ${MV} ${STAGEDIR}${DATADIR}/settings/keys.dat ${STAGEDIR}${DATADIR}/settings/keys-desktop.dat .if ${PORT_OPTIONS:MKB_LAPTOP} @${ECHO} Configuring keyboard bindings for laptop - ${LN} -s ${DATADIR}/settings/keys-laptop.dat ${DATADIR}/settings/keys.dat + ${LN} -s ${DATADIR}/settings/keys-laptop.dat ${STAGEDIR}${DATADIR}/settings/keys.dat .elif ${PORT_OPTIONS:MKB_ROGUE} @${ECHO} Configuring rogue-like keyboard bindings - ${LN} -s ${DATADIR}/settings/keys-rogue.dat ${DATADIR}/settings/keys.dat + ${LN} -s ${DATADIR}/settings/keys-rogue.dat ${STAGEDIR}${DATADIR}/settings/keys.dat .else @${ECHO} Configuring keyboard bindings for desktop - ${LN} -s ${DATADIR}/settings/keys-desktop.dat ${DATADIR}/settings/keys.dat + ${LN} -s ${DATADIR}/settings/keys-desktop.dat ${STAGEDIR}${DATADIR}/settings/keys.dat .endif .include <bsd.port.mk> |