mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
- Fix build on HEAD [1]
- Use new LIB_DEPENDS format - USES gmake - Stagify - Use dirrmtry instead of dirrm Submitted by: ed [1]
This commit is contained in:
parent
6ba68fdd9a
commit
202edfe626
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328585
@ -10,9 +10,9 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
MAINTAINER= lme@FreeBSD.org
|
||||
COMMENT= FreeSynd GPLed reimplementation of the classic Bullfrog game Syndicate
|
||||
|
||||
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
||||
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
|
||||
|
||||
USE_GMAKE= yes
|
||||
USES= gmake
|
||||
USE_ZIP= yes
|
||||
USE_SDL= sdl mixer
|
||||
|
||||
@ -20,7 +20,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
||||
|
||||
SUB_FILES= freesynd.sh
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|-lpng|-lpng -L${LOCALBASE}/lib|g; \
|
||||
s|g++|${CXX}|g; \
|
||||
@ -28,12 +27,12 @@ post-patch:
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DATADIR}/data
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/freesynd ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/freesynd.sh ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.mp3 ${DATADIR}
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}/data
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/freesynd ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/freesynd.sh ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.mp3 ${STAGEDIR}${DATADIR}
|
||||
.for datafile in ${WRKDIR}/${PORTNAME}/data/*
|
||||
${INSTALL_DATA} ${WRKDIR}/${datafile} ${DATADIR}/data
|
||||
${INSTALL_DATA} ${WRKDIR}/${datafile} ${STAGEDIR}${DATADIR}/data
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
10
games/freesynd/files/patch-dump.cpp
Normal file
10
games/freesynd/files/patch-dump.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- dump.cpp.orig 2013-09-28 17:25:56.240863970 +0200
|
||||
+++ dump.cpp 2013-09-28 17:25:38.414006911 +0200
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <png.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
class App : public Singleton < App > {
|
||||
public:
|
10
games/freesynd/files/patch-dumpmaps.cpp
Normal file
10
games/freesynd/files/patch-dumpmaps.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- dumpmaps.cpp.orig 2013-09-28 17:26:05.102862359 +0200
|
||||
+++ dumpmaps.cpp 2013-09-28 17:26:14.860038673 +0200
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <png.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
class App : public Singleton < App > {
|
||||
public:
|
@ -385,5 +385,5 @@ bin/freesynd.sh
|
||||
%%DATADIR%%/data/syngame.xmi
|
||||
%%DATADIR%%/freesynd
|
||||
%%DATADIR%%/intro.mp3
|
||||
@dirrm %%DATADIR%%/data
|
||||
@dirrm %%DATADIR%%
|
||||
@dirrmtry %%DATADIR%%/data
|
||||
@dirrmtry %%DATADIR%%
|
||||
|
Loading…
x
Reference in New Issue
Block a user