summaryrefslogtreecommitdiff
path: root/devel/p4/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-08 09:26:48 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-08 09:26:48 +0000
commiteec7cecccafb569df1e33e0cef4e7f1c40cf2cd0 (patch)
treed87b21332e54eab22a4ce18ada7e50553cc88af9 /devel/p4/Makefile
parent[patch] fix port devel/spirit (diff)
update to new perforce binaries
Perforce has released new binaries. Also, with the popularity of portupgrade rising, I made some (somewhat bogus) changes to the makefile to help pkg_version and portupgrade figure out when the port has been upgraded. I have moved the kludge on the PR to below the maintainer section. PR: ports/56497 Submitted by: david marshall <marshall@chezmarshall.com>
Notes
Notes: svn path=/head/; revision=88772
Diffstat (limited to 'devel/p4/Makefile')
-rw-r--r--devel/p4/Makefile43
1 files changed, 28 insertions, 15 deletions
diff --git a/devel/p4/Makefile b/devel/p4/Makefile
index 18dae81b6ab0..884b68b41375 100644
--- a/devel/p4/Makefile
+++ b/devel/p4/Makefile
@@ -20,6 +20,31 @@ EXTRACT_ONLY= # none
MAINTAINER= marshall@chezmarshall.com
COMMENT= Perforce client and server
+#
+# This is a kludge. I don't know a better way to set PORTVERSION and
+# PORTREVISION such that pkg_version figures out an update is needed
+#
+ARCH!= /usr/bin/uname -p
+ARCH?= i386
+
+.if ${ARCH} == i386
+VERSION= 03.1
+REVISION= 2
+PLATFORM= freebsd4
+BIN_FILES= p4 p4web
+SBIN_FILES= p4d p4ftpd p4p
+.elif ${ARCH} == alpha
+VERSION= 99.1
+REVISION= 1
+PLATFORM= freebsdaxp
+BIN_FILES= p4
+SBIN_FILES= p4d
+.else
+IGNORE= "Unsupported platform, sorry."
+.endif
+
+# End of kludge
+
NO_PACKAGE= Restricted distribution
NO_CDROM= Restricted distribution
MAN1= p4.1 p4d.1
@@ -40,21 +65,9 @@ PERFORCE_PORT?= 1666
PERFORCE_CACHE?= ${PERFORCE_HOME}/cache
PERFORCE_TARGET?= perforce:1666
-.if ${ARCH} == i386
-VERSION= 03.1
-REVISION= 1
-PLATFORM= freebsd4
-BIN_FILES= p4 p4web
-SBIN_FILES= p4d p4ftpd p4p
-.elif ${ARCH} == alpha
-VERSION= 99.1
-REVISION= 1
-PLATFORM= freebsdaxp
-BIN_FILES= p4
-SBIN_FILES= p4d
-.else
-IGNORE= "Unsupported platform, sorry."
-.endif
+pre-everything::
+ @${ECHO} "If the checksums fail, try doing 'make distclean'"
+ @${ECHO} "to force getting the latest binaries from Perforce."
do-build:
${SED} -e "s,@PERFORCE_ROOT@,${PERFORCE_ROOT},g" \