svn commit: r330827 - in head/games/stormbaancoureur: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Oct 19 02:24:57 UTC 2013
Author: amdmi3
Date: Sat Oct 19 02:24:56 2013
New Revision: 330827
URL: http://svnweb.freebsd.org/changeset/ports/330827
Log:
- Support staging
Deleted:
head/games/stormbaancoureur/pkg-plist
Modified:
head/games/stormbaancoureur/Makefile
head/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile
Modified: head/games/stormbaancoureur/Makefile
==============================================================================
--- head/games/stormbaancoureur/Makefile Sat Oct 19 02:11:45 2013 (r330826)
+++ head/games/stormbaancoureur/Makefile Sat Oct 19 02:24:56 2013 (r330827)
@@ -21,21 +21,19 @@ MAKE_ENV= DATADIR="${DATADIR}"
BUILD_WRKSRC= ${WRKSRC}/src-stormbaancoureur
INSTALL_WRKSRC= ${WRKSRC}/src-stormbaancoureur
-PORTDOCS= README
+PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= *
+PORTDATA= *
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
post-patch:
@${REINPLACE_CMD} -e 's|__DATADIR|"${DATADIR}"|' \
${WRKSRC}/src-stormbaancoureur/main.cxx
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${INSTALL_WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile
==============================================================================
--- head/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile Sat Oct 19 02:11:45 2013 (r330826)
+++ head/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile Sat Oct 19 02:24:56 2013 (r330827)
@@ -1,5 +1,5 @@
---- src-stormbaancoureur/Makefile.orig 2008-04-20 19:57:43.000000000 +0400
-+++ src-stormbaancoureur/Makefile 2008-06-02 16:17:12.000000000 +0400
+--- src-stormbaancoureur/Makefile.orig 2008-06-11 18:12:01.000000000 +0400
++++ src-stormbaancoureur/Makefile 2013-09-30 06:14:07.576519380 +0400
@@ -5,23 +5,20 @@
GLPREFIX=/usr
PLIBPREFIX=/usr
@@ -53,7 +53,7 @@
rm -f *.o stormbaancoureur
-GAMEDIR=$(DESTDIR)/usr/share/games/stormbaancoureur
-+GAMEDIR=$(PREFIX)/share/stormbaancoureur
++GAMEDIR=$(DESTDIR)$(PREFIX)/share/stormbaancoureur
install: stormbaancoureur
# Directories
- mkdir -p $(DESTDIR)/usr/games/
@@ -63,7 +63,7 @@
mkdir -p $(GAMEDIR)/models/
# Binary
- install stormbaancoureur $(DESTDIR)/usr/games/stormbaancoureur
-+ install stormbaancoureur $(PREFIX)/bin/stormbaancoureur
++ install stormbaancoureur $(DESTDIR)$(PREFIX)/bin/stormbaancoureur
# Images
install -m 644 images/info_carpet_smooth.rgb $(GAMEDIR)/images/info_carpet_smooth.rgb
install -m 644 images/info_door_smooth.rgb $(GAMEDIR)/images/info_door_smooth.rgb
More information about the svn-ports-all
mailing list