1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

- Convert clumsy REINPLACE into patch

- Cosmetic fixes
- Add empty directory to plist
This commit is contained in:
Dmitry Marakasov 2014-12-03 13:37:37 +00:00
parent ab26dd7e40
commit 74f76765c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373818
3 changed files with 20 additions and 9 deletions

View File

@ -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}

View File

@ -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

View File

@ -19,3 +19,4 @@ bin/fightorperish
%%DATADIR%%/data/maps/2.txt
%%DATADIR%%/data/maps/3.txt
share/pixmaps/fightorperish.png
@dir %%DATADIR%%/data/sounds