[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / doomlegacy

Annotation of pkgsrc/games/doomlegacy/Makefile, Revision 1.1

1.1     ! micha       1: # $NetBSD$
        !             2:
        !             3: VERS=                  1.47.2
        !             4: PKGNAME=               doomlegacy-${VERS}
        !             5: CATEGORIES=            games
        !             6: MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=doomlegacy/}
        !             7: DISTNAME=              ${PKGNAME:S/-/_/}_source
        !             8: DISTFILES=             ${DEFAULT_DISTFILES} doomlegacy_${VERS}_common.zip
        !             9: EXTRACT_SUFX=          .tar.bz2
        !            10:
        !            11: MAINTAINER=            micha@NetBSD.org
        !            12: HOMEPAGE=              http://doomlegacy.sourceforge.net/
        !            13: COMMENT=               The legacy of Doom
        !            14: LICENSE=               gnu-gpl-v2
        !            15:
        !            16: # Tested on Linux/ppc (32bit Big Endian) and NetBSD/amd64 (64bit Little Endian)
        !            17: # Untested: In general the source code has support for the other listed OS too
        !            18: ONLY_FOR_PLATFORM=     Darwin-*-* DragonFly-*-* FreeBSD-*-* Linux-*-* \
        !            19:                        NetBSD-*-* OpenBSD-*-* SunOS-*-*
        !            20:
        !            21: USE_LANGUAGES+=                c99
        !            22:
        !            23: USE_TOOLS+=            gmake
        !            24: MAKE_JOBS_SAFE=                no
        !            25:
        !            26: .include "../../mk/bsd.prefs.mk"
        !            27: .include "../../mk/endian.mk"
        !            28:
        !            29: .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
        !            30: MAKE_FLAGS+=           OS=FREEBSD
        !            31: .elif ${OPSYS} == "NetBSD"
        !            32: MAKE_FLAGS+=           OS=NETBSD
        !            33: .elif ${OPSYS} == "Darwin"
        !            34: MAKE_FLAGS+=           OS=MAC
        !            35: .else
        !            36: # Other Unix (should work for GNU/Linux, OpenBSD and SunOS)
        !            37: MAKE_FLAGS+=           OS=LINUX
        !            38: .endif
        !            39: MAKE_FLAGS+=           HAVE_MIXER=1
        !            40:
        !            41: .if ${MACHINE_ENDIAN} == "big"
        !            42: # Some compilers define this themselves (but maybe not all)
        !            43: CFLAGS+=               -D__BIG_ENDIAN__
        !            44: .endif
        !            45:
        !            46: # DOOMWADDIR is intentionally shared with other Doom packages
        !            47: DOOMWADDIR=            share/doom
        !            48: INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 share/doc/doomlegacy ${DOOMWADDIR}
        !            49:
        !            50: MESSAGE_SRC+=          MESSAGE.doomlegacy
        !            51: MESSAGE_SUBST+=                PKGNAME=${PKGNAME:C/-.*//}
        !            52: MESSAGE_SUBST+=                DOOMWADDIR_CONF="${PREFIX}/${DOOMWADDIR}"
        !            53:
        !            54: # Configure defaults for LEGACYWADDIR and DOOMWADDIR
        !            55: SUBST_CLASSES+=                doomdef
        !            56: SUBST_STAGE.doomdef=   do-configure
        !            57: SUBST_MESSAGE.doomdef= Preparing doomdef.h file ...
        !            58: SUBST_FILES.doomdef=   src/doomdef.h
        !            59: SUBST_SED.doomdef=     -e 's,LEGACYWADDIR  "/usr/local/share/games/doomlegacy",LEGACYWADDIR  "${PREFIX}/${DOOMWADDIR}",g'
        !            60: SUBST_SED.doomdef+=    -e 's,DEFWADS01  "~/games/doomlegacy/wads",DEFWADS01  "${PREFIX}/${DOOMWADDIR}",'
        !            61:
        !            62: pre-configure:
        !            63:        ${CP} ${FILESDIR}/doomlegacy.in1 ${WRKDIR}
        !            64:
        !            65: # Process manpage template
        !            66: do-configure:
        !            67:        cd ${WRKDIR} &&                                                 \
        !            68:                ${SED} -e 's,$$NAME,doomlegacy,g'                       \
        !            69:                        -e 's,$$VERSION,${VERS},g'                      \
        !            70:                        -e 's,$$WADDIR,${PREFIX}/${DOOMWADDIR},g'       \
        !            71:                        doomlegacy.in1 >doomlegacy.1
        !            72:
        !            73: do-install:
        !            74:        cd ${WRKSRC} &&                                                 \
        !            75:                ${INSTALL_PROGRAM} bin/doomlegacy                       \
        !            76:                        ${DESTDIR}${PREFIX}/bin;                        \
        !            77:                ${INSTALL_DATA} docs/legacy.css docs/whatsnew.html      \
        !            78:                        ${DESTDIR}${PREFIX}/share/doc/doomlegacy;       \
        !            79:        cd ${WRKDIR}/doomlegacy_${VERS} &&                              \
        !            80:                ${INSTALL_DATA} legacy.wad                              \
        !            81:                        ${DESTDIR}${PREFIX}/${DOOMWADDIR}/legacy.wad;   \
        !            82:        cd ${WRKDIR} &&                                                 \
        !            83:                ${INSTALL_MAN} ${WRKDIR}/doomlegacy.1                   \
        !            84:                        ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
        !            85:
        !            86: # Ensure that at least the shareware Episode 1 of Doom is available
        !            87: # Note: The demos from games/doom1 are not compatible with the Legacy engine
        !            88: DEPENDS+=              doom1-[0-9]*:../../games/doom1
        !            89:
        !            90: BUILDLINK_API_DEPENDS.SDL_mixer+=      SDL_mixer>=1.2.7
        !            91: .include "../../audio/SDL_mixer/buildlink3.mk"
        !            92: BUILDLINK_API_DEPENDS.SDL+=            SDL>=1.2.10
        !            93: .include "../../devel/SDL/buildlink3.mk"
        !            94:
        !            95: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>