aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2003-09-24 12:18:50 +0000
committerAnton Berezin <tobez@FreeBSD.org>2003-09-24 12:18:50 +0000
commit212da3dab3174039be5c0a2f4fcdfec32adbe287 (patch)
treee18327c51bea1655141b7fb6fcc7448170e130d3 /devel
parent750856b474df27ca9254d05f28b45fcc629dd068 (diff)
This port was not really usable on i386-5.X due to an updated GCC,
since C++ name mangling has changed in an incompatible way. Now that perforce has put FreeBSD 5.X p4api binary on their FTP site, the port can be updated to work on both 4.X and 5.X. The tarball for 4.X was tested with 2.95.4. The tarball for 5.X was tested with 3.3.1. If there were other incompatible name mangling changes in GCC in between, neither will work, so beware. Also, the FreeBSD 4.X p4api tarball checksum has changed. Perforce has confirmed that the new checksum is correct. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=89206
Diffstat (limited to 'devel')
-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