aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/p4api/Makefile11
-rw-r--r--devel/p4api/distinfo6
2 files changed, 12 insertions, 5 deletions
diff --git a/devel/p4api/Makefile b/devel/p4api/Makefile
index f800d20e5c36..26c3d7452643 100644
--- a/devel/p4api/Makefile
+++ b/devel/p4api/Makefile
@@ -13,7 +13,7 @@ MASTER_SITES= ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.${PLATFORM
http://www.perforce.com/perforce/doc.${DOCVER}/user/:txt
EXTRACT_SUFX=
DISTFILES= ${TAR_FILES}:tar p4api.txt:txt
-DIST_SUBDIR= perforce/${VERSION}/${ARCH}
+DIST_SUBDIR= perforce/${VERSION}/${ARCH}-${PLATFORM}
EXTRACT_ONLY= ${TAR_FILES}
MAINTAINER= kuriyama@FreeBSD.org
@@ -22,17 +22,22 @@ COMMENT= Perforce API (static libraries and header files)
NO_BUILD= yes
NO_WRKSUBDIR= yes
+VERSION= 03.1
+REVISION= 1
+
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
+.if ${OSVERSION} >= 501103
+PLATFORM= freebsd5
+.else
PLATFORM= freebsd4
+.endif
TAR_FILES= p4api.tar
.else
IGNORE= "Unsupported platform, sorry."
.endif
-VERSION= 03.1
-REVISION= 0
DOCVER= ${VERSION:S/.//}
do-install:
diff --git a/devel/p4api/distinfo b/devel/p4api/distinfo
index 44e93d98a0a5..458b1a8c4b86 100644
--- a/devel/p4api/distinfo
+++ b/devel/p4api/distinfo
@@ -1,2 +1,4 @@
-MD5 (perforce/03.1/i386/p4api.tar) = 0e7e9b713dc08dd7a41d4c7f3ef5ab9d
-MD5 (perforce/03.1/i386/p4api.txt) = f49132a4c5529e1901521ace157ef3ef
+MD5 (perforce/03.1/i386-freebsd4/p4api.tar) = 6402ce08a4a49e20cb34a06b30be1dbc
+MD5 (perforce/03.1/i386-freebsd4/p4api.txt) = f49132a4c5529e1901521ace157ef3ef
+MD5 (perforce/03.1/i386-freebsd5/p4api.tar) = e2a71c3b57212deae1943e84847ffd4f
+MD5 (perforce/03.1/i386-freebsd5/p4api.txt) = f49132a4c5529e1901521ace157ef3ef