ports/176081: [PATCH] games/jaggedalliance2: Update Makefile
Christoph Mallon
christoph.mallon at gmx.de
Tue Feb 12 20:40:00 UTC 2013
>Number: 176081
>Category: ports
>Synopsis: [PATCH] games/jaggedalliance2: Update Makefile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 12 20:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Christoph Mallon
>Release:
>Organization:
>Environment:
>Description:
- Trim header
- OptionsNG
>How-To-Repeat:
>Fix:
Please apply this patch.
--- 0001-games-jaggedalliance2-Update-Makefile.patch begins here ---
>From 3a8841cc3d9817ae5149d38c3dcb7e39299f8424 Mon Sep 17 00:00:00 2001
From: Christoph Mallon <christoph.mallon at gmx.de>
Date: Tue, 12 Feb 2013 20:53:13 +0100
Subject: [PATCH] games/jaggedalliance2: Update Makefile
- Trim header
- OptionsNG
---
games/jaggedalliance2/Makefile | 57 ++++++++++++++++--------------------------
1 file changed, 21 insertions(+), 36 deletions(-)
diff --git a/games/jaggedalliance2/Makefile b/games/jaggedalliance2/Makefile
index 566e7a8..d756ee0 100644
--- a/games/jaggedalliance2/Makefile
+++ b/games/jaggedalliance2/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: Jagged Alliance 2
-# Date created: 16 Nov 2006
-# Whom: Christoph Mallon <christoph.mallon at gmx.de>
-#
+# Created by: Christoph Mallon <christoph.mallon at gmx.de>
# $FreeBSD$
-#
PORTNAME= ja2
PORTVERSION= 0.12.1
@@ -30,36 +26,25 @@ NO_PACKAGE= Language of the datafiles must be hardcoded in the game binary
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
SUB_FILES= pkg-message
-OPTIONS= DUTCH "Compile for Dutch version (choose ONE)" Off \
- ENGLISH "Compile for English version (choose ONE)" Off \
- FRENCH "Compile for French version (choose ONE)" Off \
- GERMAN "Compile for German version (choose ONE)" Off \
- ITALIAN "Compile for Italian version (choose ONE)" Off \
- POLISH "Compile for Polish version (choose ONE)" Off \
- RUSSIAN "Compile for Russian version (choose ONE)" Off \
- RUSSIAN_GOLD "Compile for Russian Gold version (choose ONE)" Off
-
-.include <bsd.port.pre.mk>
-
-.ifdef WITH_ENGLISH
-MAKE_ARGS+= LNG=ENGLISH
-.elifdef WITH_DUTCH
-MAKE_ARGS+= LNG=DUTCH
-.elifdef WITH_FRENCH
-MAKE_ARGS+= LNG=FRENCH
-.elifdef WITH_GERMAN
-MAKE_ARGS+= LNG=GERMAN
-.elifdef WITH_ITALIAN
-MAKE_ARGS+= LNG=ITALIAN
-.elifdef WITH_POLISH
-MAKE_ARGS+= LNG=POLISH
-.elifdef WITH_RUSSIAN
-MAKE_ARGS+= LNG=RUSSIAN
-.elifdef WITH_RUSSIAN_GOLD
-MAKE_ARGS+= LNG=RUSSIAN_GOLD
-.else
-IGNORE= no language has been chosen. Please choose the appropriate language for your game CD
-.endif
+OPTIONS_SINGLE= LANGUAGE
+OPTIONS_SINGLE_LANGUAGE= DUTCH ENGLISH FRENCH GERMAN ITALIAN POLISH RUSSIAN RUSSIAN_GOLD
+
+DUTCH_DESC= Compile for Dutch version
+ENGLISH_DESC= Compile for English version
+FRENCH_DESC= Compile for French version
+GERMAN_DESC= Compile for German version
+ITALIAN_DESC= Compile for Italian version
+POLISH_DESC= Compile for Polish version
+RUSSIAN_DESC= Compile for Russian version
+RUSSIAN_GOLD_DESC= Compile for Russian Gold version
+
+.include <bsd.port.options.mk>
+
+.for i in ${OPTIONS_SINGLE_LANGUAGE}
+. if ${PORT_OPTIONS:M${i}}
+MAKE_ARGS+= LNG=${i}
+. endif
+.endfor
MAKE_ARGS+= NO_DEPS=yes # For a single full build dependency calculation is unnecessary
@@ -82,4 +67,4 @@ lowercase:
${MV} -n $$i `${DIRNAME} $$i`/`${BASENAME} $$i | ${TR} '[A-Z]' '[a-z]'`; \
done
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--
1.8.1.3
--- 0001-games-jaggedalliance2-Update-Makefile.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list