pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sauerbraten: Build master server.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Sun Jun 30 13:10:03 2019 +0100
Changeset:	bb5955b7c4428fd1c6dc6a8f1fb4bd621c15872d

Modified Files:
	sauerbraten/Makefile
	sauerbraten/PLIST

Log Message:
sauerbraten: Build master server.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bb5955b7c4428fd1c6dc6a8f1fb4bd621c15872d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sauerbraten/Makefile | 18 ++++++++----------
 sauerbraten/PLIST    |  2 ++
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs:
diff --git a/sauerbraten/Makefile b/sauerbraten/Makefile
index 7e66346579..ded8c99fa8 100644
--- a/sauerbraten/Makefile
+++ b/sauerbraten/Makefile
@@ -16,6 +16,7 @@ USE_LANGUAGES=	c c++03
 
 WRKSRC=		${WRKDIR}/sauerbraten
 BUILD_DIRS+=	src
+BUILD_TARGET=	client master server
 
 LDFLAGS.NetBSD+=	-lrt
 
@@ -29,22 +30,19 @@ INSTALLATION_DIRS+=	share/sauerbraten/data
 INSTALLATION_DIRS+=	share/sauerbraten/packages
 
 pre-configure:
+.for prog in client master server
 	${SED}	-e 's,@PREFIX@,${PREFIX},g' \
 		< ${FILESDIR}/sauerbraten.sh.in > \
-		${WRKDIR}/sauer_client
-	${SED}	-e 's,@PREFIX@,${PREFIX},g' \
-		< ${FILESDIR}/sauerbraten.sh.in > \
-		${WRKDIR}/sauer_server
+		${WRKDIR}/sauer_${prog}
+.endfor
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/sauer_client \
+.for prog in client master server
+	${INSTALL_SCRIPT} ${WRKDIR}/sauer_${prog} \
 	    ${DESTDIR}${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKDIR}/sauer_server \
-	    ${DESTDIR}${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/src/sauer_client \
-	    ${DESTDIR}${PREFIX}/libexec
-	${INSTALL_PROGRAM} ${WRKSRC}/src/sauer_server \
+	${INSTALL_PROGRAM} ${WRKSRC}/src/sauer_${prog} \
 	    ${DESTDIR}${PREFIX}/libexec
+.endfor
 	${INSTALL_DATA} ${FILESDIR}/sauerbraten.desktop \
 	    ${DESTDIR}${PREFIX}/share/applications
 	${INSTALL_DATA} ${WRKSRC}/src/xcode/help/sauer16.png \
diff --git a/sauerbraten/PLIST b/sauerbraten/PLIST
index ad63933052..e77cfeb05f 100644
--- a/sauerbraten/PLIST
+++ b/sauerbraten/PLIST
@@ -1,7 +1,9 @@
 @comment $NetBSD$
 bin/sauer_client
+bin/sauer_master
 bin/sauer_server
 libexec/sauer_client
+libexec/sauer_master
 libexec/sauer_server
 share/applications/sauerbraten.desktop
 share/doc/sauerbraten/config.html


Home | Main Index | Thread Index | Old Index