1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Remove wrapper script

- Use REINPLACE_CMD instead of patch file

Approved by:	maintainer timeout (2 weeks)
This commit is contained in:
Alex Kozlov 2012-07-09 12:37:07 +00:00
parent 9716aad323
commit 7427df0fcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300669
2 changed files with 13 additions and 18 deletions

View File

@ -28,16 +28,22 @@ PORTDOCS= ChangeLog README
ALL_TARGET=
post-patch:
@${RM} -rf ${WRKSRC}/data/CVS
# Fix data location
@${REINPLACE_CMD} -e 's!data/bigfont.ppm!${DATADIR}/data/bigfont.ppm!' \
-e 's!dirlist\[\]="data";!dirlist[]="${DATADIR}/data";'! \
-e 's!char name[256],!char name[512],!' \
${WRKSRC}/gljewel.c ${WRKSRC}/sound.c
# Fix CFLAGS/LDFLAGS
@${REINPLACE_CMD} -e 's!CFLAGS = -O2 -Wall!CFLAGS+=!' \
-e 's!LDFLAGS =!LDFLAGS+=!' ${WRKSRC}/Makefile
do-install:
# Scripts
@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
./gljewel\n" > ${WRKDIR}/sdljewels.sh
@${INSTALL_SCRIPT} ${WRKDIR}/sdljewels.sh ${PREFIX}/bin/sdljewels
# Executable
${MKDIR} ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/gljewel ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/gljewel ${PREFIX}/bin/sdljewels
# Data
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
# Documentation
.if !defined(NOPORTDOCS)

View File

@ -1,11 +0,0 @@
Index: Makefile
@@ -1,7 +1,7 @@
EXE = gljewel
-CFLAGS = -O2 -Wall $(shell sdl-config --cflags)
-LDFLAGS = $(shell sdl-config --libs) -lGL -lm
+CFLAGS += $(shell sdl-config --cflags)
+LDFLAGS += $(shell sdl-config --libs) -lGL -lm
OBJS = $(EXE).o matrix.o sound.o