aboutsummaryrefslogtreecommitdiff
path: root/games/duke3d-data
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-08-02 20:12:40 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-08-02 20:12:40 +0000
commit8c6a6e03e64f618d9ef62ff4658d3d0f67032709 (patch)
treea1e126bf309e731fd40903c675c258d374a84035 /games/duke3d-data
parentee2e74ba4277eb8c2942117a3096e658f356b670 (diff)
downloadports-8c6a6e03e64f618d9ef62ff4658d3d0f67032709.tar.gz
ports-8c6a6e03e64f618d9ef62ff4658d3d0f67032709.zip
Notes
Diffstat (limited to 'games/duke3d-data')
-rw-r--r--games/duke3d-data/Makefile57
-rw-r--r--games/duke3d-data/Makefile.include31
-rw-r--r--games/duke3d-data/distinfo3
-rw-r--r--games/duke3d-data/files/pkg-message.in7
-rw-r--r--games/duke3d-data/pkg-descr6
-rw-r--r--games/duke3d-data/pkg-plist3
6 files changed, 107 insertions, 0 deletions
diff --git a/games/duke3d-data/Makefile b/games/duke3d-data/Makefile
new file mode 100644
index 000000000000..c776bf0ec1df
--- /dev/null
+++ b/games/duke3d-data/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: duke3d-data
+# Date Created: 2 Aug 2006
+# Whom: alepulver
+#
+# $FreeBSD$
+
+PORTNAME= data
+PORTVERSION= 1.0
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.3drealms.com/share/ \
+ ftp://ftp.kiarchive.ru/pub/.1/msdos/games/play/3d/ \
+ ftp.relcom.ru/pub/.1/msdos/games/play/3d/ \
+ ftp.relcom.ru/pub/.1/msdos/games/play/3d/ \
+ ftp.lublin.pl/vol/8/planetquake/planetduke/ \
+ ftp.etsimo.uniovi.es/pub/games/msdos/ \
+ ftp.uniovi.es/pub/games/msdos/ \
+ ftp.ziplink.net/users/rhino/ \
+ ftp.kiae.su/pub/.1/msdos/games/play/3d/
+PKGNAMEPREFIX= ${DN3DPKGNAMEPREFIX}
+DISTFILES= #
+
+MAINTAINER= alepulver@FreeBSD.org
+COMMENT= Duke Nukem 3D Data
+
+USE_ZIP= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+OPTIONS= SHAREWARE "Install shareware game data version 1.3" off
+
+DATADIR= ${DN3DDIR}
+
+.include "Makefile.include"
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SHAREWARE)
+DISTFILES+= 3dduke13.zip
+PLIST_SUB+= SHAREWARE=""
+
+post-extract:
+ @cd ${WRKSRC} && ${UNZIP_CMD} -qo DN3DSW13.SHR
+
+do-install:
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/DUKE3D.GRP ${DATADIR}/duke3d.grp
+.else
+PLIST_SUB+= SHAREWARE="@comment "
+SUB_FILES+= pkg-message
+
+post-install:
+ @${ECHO_CMD}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_CMD}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/games/duke3d-data/Makefile.include b/games/duke3d-data/Makefile.include
new file mode 100644
index 000000000000..6dec3b5c608f
--- /dev/null
+++ b/games/duke3d-data/Makefile.include
@@ -0,0 +1,31 @@
+# Makefile for defining variables used by Duke Nukem 3D related ports.
+#
+# A dependency to "games/duke3d-data" is automatically added (except for the
+# data port itself). The ports using this definitions should assume the data
+# is installed (i.e. no need for pkg-message asking to copy duke3d.grp).
+#
+# The following variables are defined, and can be used in the port.
+# DN3DPKGNAMEPREFIX - The package name prefix for Duke Nukem 3D additions.
+# DN3DDIR - The Duke Nukem 3D data directory (also added to
+# MAKE_ENV, PLIST_SUB and SUB_LIST).
+#
+# For notes about this kind of ports see /usr/ports/games/quake2-data (some
+# rules apply to this ports, like search paths).
+#
+
+# Set variables.
+
+DN3DPKGNAMEPREFIX?=duke3d-
+DN3DDIR?= ${LOCALBASE}/share/duke3d
+
+# Add them to the ports system.
+
+MAKE_ENV+= DN3DDIR="${DN3DDIR}"
+PLIST_SUB+= DN3DDIR="${DN3DDIR:S/${LOCALBASE}\///}"
+SUB_LIST+= DN3DDIR="${DN3DDIR}"
+
+# Add the dependency.
+
+.if ${PORTNAME} != "data"
+RUN_DEPENDS+= ${DN3DDIR}:${PORTSDIR}/games/duke3d-data
+.endif
diff --git a/games/duke3d-data/distinfo b/games/duke3d-data/distinfo
new file mode 100644
index 000000000000..b7f227a0ac17
--- /dev/null
+++ b/games/duke3d-data/distinfo
@@ -0,0 +1,3 @@
+MD5 (3dduke13.zip) = 04e4ca70b8a2d59ed56c451c5c1d5d39
+SHA256 (3dduke13.zip) = c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e
+SIZE (3dduke13.zip) = 5924374
diff --git a/games/duke3d-data/files/pkg-message.in b/games/duke3d-data/files/pkg-message.in
new file mode 100644
index 000000000000..c79b512487db
--- /dev/null
+++ b/games/duke3d-data/files/pkg-message.in
@@ -0,0 +1,7 @@
+==============================================================================
+
+To complete the installation of this port you need to copy the file
+"DUKE3D.GRP" from the original Duke Nukem 3D distribution as "duke3d.grp" to
+"%%DATADIR%%".
+
+==============================================================================
diff --git a/games/duke3d-data/pkg-descr b/games/duke3d-data/pkg-descr
new file mode 100644
index 000000000000..af553b65b85b
--- /dev/null
+++ b/games/duke3d-data/pkg-descr
@@ -0,0 +1,6 @@
+This port installs the data files needed to run Duke Nukem 3D. It either asks
+for the original data, or downloads a shareware version based on the selected
+options. In the first case you need to have a legitimate copy of the game in
+order to obtain the DUKE3D.GRP file.
+
+WWW: http://www.3drealms.com/duke3d/
diff --git a/games/duke3d-data/pkg-plist b/games/duke3d-data/pkg-plist
new file mode 100644
index 000000000000..1fcd66015382
--- /dev/null
+++ b/games/duke3d-data/pkg-plist
@@ -0,0 +1,3 @@
+@exec mkdir -p %D/%%DATADIR%%
+%%SHAREWARE%%%%DATADIR%%/duke3d.grp
+@unexec rmdir %D/%%DATADIR%% 2>/dev/null || echo "If you are permanently removing this port, you should remove any configuration files and data files left in %D/%%DATADIR%%." | fmt