summaryrefslogtreecommitdiffstats
path: root/devel/p4web/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-09-08 09:26:48 +0000
committeredwin <edwin@FreeBSD.org>2003-09-08 09:26:48 +0000
commitdb16e072bb2266adaeac36612f43caa5981fdd59 (patch)
treefe7fcd8999754d5b5184549f5a4cf0ac621b76e0 /devel/p4web/Makefile
parentfda6ba7c3d9a69c6aea08ebc31d89b4c61d29102 (diff)
downloadFreeBSD-ports-db16e072bb2266adaeac36612f43caa5981fdd59.zip
FreeBSD-ports-db16e072bb2266adaeac36612f43caa5981fdd59.tar.gz
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>
Diffstat (limited to 'devel/p4web/Makefile')
-rw-r--r--devel/p4web/Makefile43
1 files changed, 28 insertions, 15 deletions
diff --git a/devel/p4web/Makefile b/devel/p4web/Makefile
index 18dae81..884b68b 100644
--- a/devel/p4web/Makefile
+++ b/devel/p4web/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" \
OpenPOWER on IntegriCloud