From 65ac9cd50cc1be1d87b93ac77382bf97a5055729 Mon Sep 17 00:00:00 2001 From: "David W. Chapman Jr." Date: Sat, 7 Jul 2001 19:41:27 +0000 Subject: Use variables instead of hardcoded version #'s in Makefile and PKG-PLIST PR: 28793 Submitted by: maintainer --- games/yadex/Makefile | 3 ++- games/yadex/pkg-plist | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/games/yadex/Makefile b/games/yadex/Makefile index e5867d7556e1..b50cea773931 100644 --- a/games/yadex/Makefile +++ b/games/yadex/Makefile @@ -14,10 +14,11 @@ MAINTAINER= fracture@allusion.net USE_GMAKE= yes MAKEFILE= GNUmakefile +PLIST_SUB+= PORTVERSION=${PORTVERSION} MAN6= yadex.6 ybsp.6 post-install: - ${CHMOD} 644 ${PREFIX}/etc/yadex/1.5.2/yadex.cfg + ${CHMOD} 644 ${PREFIX}/etc/yadex/${PORTVERSION}/yadex.cfg .include diff --git a/games/yadex/pkg-plist b/games/yadex/pkg-plist index 637ca3ea3632..df618ade5dc6 100644 --- a/games/yadex/pkg-plist +++ b/games/yadex/pkg-plist @@ -1,19 +1,19 @@ bin/yadex -bin/yadex-1.5.2 +bin/yadex-%%PORTVERSION%% bin/ybsp -bin/ybsp-1.5.2 -etc/yadex/1.5.2/yadex.cfg -share/yadex/1.5.2/doom.ygd -share/yadex/1.5.2/doom02.ygd -share/yadex/1.5.2/doom04.ygd -share/yadex/1.5.2/doom05.ygd -share/yadex/1.5.2/doom2.ygd -share/yadex/1.5.2/doompr.ygd -share/yadex/1.5.2/heretic.ygd -share/yadex/1.5.2/hexen.ygd -share/yadex/1.5.2/strife.ygd -share/yadex/1.5.2/strife10.ygd -@dirrm share/yadex/1.5.2 +bin/ybsp-%%PORTVERSION%% +etc/yadex/%%PORTVERSION%%/yadex.cfg +share/yadex/%%PORTVERSION%%/doom.ygd +share/yadex/%%PORTVERSION%%/doom02.ygd +share/yadex/%%PORTVERSION%%/doom04.ygd +share/yadex/%%PORTVERSION%%/doom05.ygd +share/yadex/%%PORTVERSION%%/doom2.ygd +share/yadex/%%PORTVERSION%%/doompr.ygd +share/yadex/%%PORTVERSION%%/heretic.ygd +share/yadex/%%PORTVERSION%%/hexen.ygd +share/yadex/%%PORTVERSION%%/strife.ygd +share/yadex/%%PORTVERSION%%/strife10.ygd +@dirrm share/yadex/%%PORTVERSION%% @dirrm share/yadex -@dirrm etc/yadex/1.5.2 +@dirrm etc/yadex/%%PORTVERSION%% @dirrm etc/yadex -- cgit v1.2.3