diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2014-12-03 21:37:37 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2014-12-03 21:37:37 +0800 |
commit | 9b91c99b5b29b5d757b6be1833c8f044b0f93fb8 (patch) | |
tree | 0f1dcc0c73ed4dac32868aca03b0278f436e736e /games | |
parent | 1d51c4404abfb994b31d984da57d70a093637f98 (diff) | |
download | freebsd-ports-gnome-9b91c99b5b29b5d757b6be1833c8f044b0f93fb8.tar.gz freebsd-ports-gnome-9b91c99b5b29b5d757b6be1833c8f044b0f93fb8.tar.zst freebsd-ports-gnome-9b91c99b5b29b5d757b6be1833c8f044b0f93fb8.zip |
- Convert clumsy REINPLACE into patch
- Cosmetic fixes
- Add empty directory to plist
Diffstat (limited to 'games')
-rw-r--r-- | games/fightorperish/Makefile | 13 | ||||
-rw-r--r-- | games/fightorperish/files/patch-Makefile | 15 | ||||
-rw-r--r-- | games/fightorperish/pkg-plist | 1 |
3 files changed, 20 insertions, 9 deletions
diff --git a/games/fightorperish/Makefile b/games/fightorperish/Makefile index 578ff28e092e..1538987b8956 100644 --- a/games/fightorperish/Makefile +++ b/games/fightorperish/Makefile @@ -24,27 +24,22 @@ USES= gmake USE_SDL= image mixer sdl PORTDOCS= CHANGES.txt README.txt -OPTIONS_DEFINE= DOCS DESKTOP_ENTRIES="Fight or Perish" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" +OPTIONS_DEFINE= DOCS + post-patch: - @${REINPLACE_CMD} -e 's|data/|${DATADIR}/data/| ; \ - s|char [256],|char [512],|' ${WRKSRC}/src/fop.c - @${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}| ; \ - s|CFLAGS=-Wall -O2|CFLAGS+=| ; \ - s|SDL_CFLAGS=|SDL_CFLAGS+=| ; \ - s|SDL_LIBS=|SDL_LIBS+=|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|data/|${DATADIR}/data/|' \ + ${WRKSRC}/src/fop.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/fop ${STAGEDIR}${PREFIX}/bin/${PORTNAME} @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images maps sounds" \ ${STAGEDIR}${DATADIR}/data) - ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ - @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR} diff --git a/games/fightorperish/files/patch-Makefile b/games/fightorperish/files/patch-Makefile new file mode 100644 index 000000000000..2fa1ddfd45b0 --- /dev/null +++ b/games/fightorperish/files/patch-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig 2009-03-15 13:11:12.000000000 +0300 ++++ Makefile 2014-11-30 07:39:48.000000000 +0300 +@@ -6,10 +6,10 @@ + # February 25, 2009 - March 15, 2009 + + VERSION=0.5 +-CC=gcc ++CC?=gcc + SDL_CFLAGS=$(shell sdl-config --cflags) + SDL_LIBS=$(shell sdl-config --libs) -lSDL_image +-CFLAGS=-Wall -O2 $(SDL_CFLAGS) -DVERSION="\"${VERSION}\"" ++CFLAGS+=-Wall $(SDL_CFLAGS) -DVERSION="\"${VERSION}\"" + + all: fop + diff --git a/games/fightorperish/pkg-plist b/games/fightorperish/pkg-plist index 081a585ef46a..623efc45b27d 100644 --- a/games/fightorperish/pkg-plist +++ b/games/fightorperish/pkg-plist @@ -19,3 +19,4 @@ bin/fightorperish %%DATADIR%%/data/maps/2.txt %%DATADIR%%/data/maps/3.txt share/pixmaps/fightorperish.png +@dir %%DATADIR%%/data/sounds |