| @@ -1,18 +1,18 @@ | | | @@ -1,18 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.30 2021/12/08 16:04:43 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2022/02/11 15:20:14 micha Exp $ |
2 | | | 2 | |
3 | DISTNAME= woof_8.1.0 | | 3 | DISTNAME= woof_8.1.0 |
4 | PKGNAME= ${DISTNAME:S/_/-/} | | 4 | PKGNAME= ${DISTNAME:S/_/-/} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= games | | 6 | CATEGORIES= games |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=fabiangreffrath/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=fabiangreffrath/} |
8 | GITHUB_TAG= ${DISTNAME} | | 8 | GITHUB_TAG= ${DISTNAME} |
9 | EXTRACT_USING= bsdtar | | 9 | EXTRACT_USING= bsdtar |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= https://github.com/fabiangreffrath/woof/ | | 12 | HOMEPAGE= https://github.com/fabiangreffrath/woof/ |
13 | COMMENT= Continuation of Lee Killough's Doom source port MBF | | 13 | COMMENT= Continuation of Lee Killough's Doom source port MBF |
14 | LICENSE= gnu-gpl-v2 | | 14 | LICENSE= gnu-gpl-v2 |
15 | | | 15 | |
16 | USE_LANGUAGES= c99 | | 16 | USE_LANGUAGES= c99 |
17 | USE_CMAKE= yes | | 17 | USE_CMAKE= yes |
18 | USE_TOOLS+= pkg-config | | 18 | USE_TOOLS+= pkg-config |
| @@ -30,26 +30,33 @@ SUBST_MESSAGE.waddir= Preparing d_iwad.c | | | @@ -30,26 +30,33 @@ SUBST_MESSAGE.waddir= Preparing d_iwad.c |
30 | SUBST_FILES.waddir= Source/d_iwad.c | | 30 | SUBST_FILES.waddir= Source/d_iwad.c |
31 | SUBST_SED.waddir= -e 's,PKGSRC_PREFIX,"${PREFIX}",' | | 31 | SUBST_SED.waddir= -e 's,PKGSRC_PREFIX,"${PREFIX}",' |
32 | SUBST_SED.waddir+= -e 's,PKGSRC_DOOMWADDIR,"/${DOOMWADDIR}",' | | 32 | SUBST_SED.waddir+= -e 's,PKGSRC_DOOMWADDIR,"/${DOOMWADDIR}",' |
33 | | | 33 | |
34 | # XDG desktop file and icon are installed by the build system with the logic: | | 34 | # XDG desktop file and icon are installed by the build system with the logic: |
35 | # if(UNIX AND NOT APPLE) | | 35 | # if(UNIX AND NOT APPLE) |
36 | # Remove Apple exception because pkgsrc users maybe have X11 on Apple machines | | 36 | # Remove Apple exception because pkgsrc users maybe have X11 on Apple machines |
37 | SUBST_CLASSES+= xdg | | 37 | SUBST_CLASSES+= xdg |
38 | SUBST_STAGE.xdg= pre-configure | | 38 | SUBST_STAGE.xdg= pre-configure |
39 | SUBST_MESSAGE.xdg= Preparing data/CMakeLists.txt file ... | | 39 | SUBST_MESSAGE.xdg= Preparing data/CMakeLists.txt file ... |
40 | SUBST_FILES.xdg= data/CMakeLists.txt | | 40 | SUBST_FILES.xdg= data/CMakeLists.txt |
41 | SUBST_SED.xdg= -e 's,UNIX AND NOT APPLE,UNIX,' | | 41 | SUBST_SED.xdg= -e 's,UNIX AND NOT APPLE,UNIX,' |
42 | | | 42 | |
| | | 43 | # Process INSTALL.pkgsrc |
| | | 44 | SUBST_CLASSES+= install |
| | | 45 | SUBST_STAGE.install= do-configure |
| | | 46 | SUBST_MESSAGE.install= Preparing INSTALL.pkgsrc file ... |
| | | 47 | SUBST_FILES.install= ${WRKDIR}/INSTALL.pkgsrc |
| | | 48 | SUBST_SED.install= -e 's,DOOMWADDIR,${PREFIX}/${DOOMWADDIR},' |
| | | 49 | |
43 | pre-configure: | | 50 | pre-configure: |
44 | cd ${WRKSRC}; mkdir build | | 51 | cd ${WRKSRC}; mkdir build |
45 | ${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR} | | 52 | ${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR} |
46 | | | 53 | |
47 | post-install: | | 54 | post-install: |
48 | ${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc \ | | 55 | ${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc \ |
49 | ${DESTDIR}${PREFIX}/share/doc/woof/INSTALL.pkgsrc | | 56 | ${DESTDIR}${PREFIX}/share/doc/woof/INSTALL.pkgsrc |
50 | | | 57 | |
51 | .include "../../audio/SDL2_mixer/buildlink3.mk" | | 58 | .include "../../audio/SDL2_mixer/buildlink3.mk" |
52 | .include "../../devel/zlib/buildlink3.mk" | | 59 | .include "../../devel/zlib/buildlink3.mk" |
53 | .include "../../devel/SDL2/buildlink3.mk" | | 60 | .include "../../devel/SDL2/buildlink3.mk" |
54 | .include "../../graphics/SDL2_image/buildlink3.mk" | | 61 | .include "../../graphics/SDL2_image/buildlink3.mk" |
55 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | | 62 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |