aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-08-03 04:12:40 +0800
committeralepulver <alepulver@FreeBSD.org>2006-08-03 04:12:40 +0800
commit9c059a39e750b6fd8f7402dfa7c1faba3892fa9d (patch)
tree05ab058c28112b2ffa46fce85a4aa9d50089b5c9
parentc41ab131eaf64409426bbeb582e63de03d2cce4f (diff)
downloadfreebsd-ports-gnome-9c059a39e750b6fd8f7402dfa7c1faba3892fa9d.tar.gz
freebsd-ports-gnome-9c059a39e750b6fd8f7402dfa7c1faba3892fa9d.tar.zst
freebsd-ports-gnome-9c059a39e750b6fd8f7402dfa7c1faba3892fa9d.zip
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/
-rw-r--r--games/Makefile1
-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
7 files changed, 108 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index ec04444e0b4f..9fda3ab5b447 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -149,6 +149,7 @@
SUBDIR += drm
SUBDIR += dsnake
SUBDIR += duel
+ SUBDIR += duke3d-data
SUBDIR += dungeon
SUBDIR += dungeoncrawl
SUBDIR += easysok
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