mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
212da3dab3
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
57 lines
1.2 KiB
Makefile
57 lines
1.2 KiB
Makefile
# New ports collection makefile for: p4api
|
|
# Date created: 27 Mar 2003
|
|
# Whom: kuriyama@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= p4api
|
|
PORTVERSION= ${VERSION}
|
|
PORTREVISION= ${REVISION}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.${PLATFORM}/:tar \
|
|
http://www.perforce.com/perforce/doc.${DOCVER}/user/:txt
|
|
EXTRACT_SUFX=
|
|
DISTFILES= ${TAR_FILES}:tar p4api.txt:txt
|
|
DIST_SUBDIR= perforce/${VERSION}/${ARCH}-${PLATFORM}
|
|
EXTRACT_ONLY= ${TAR_FILES}
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
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
|
|
|
|
DOCVER= ${VERSION:S/.//}
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/include/perforce
|
|
${MKDIR} ${PREFIX}/lib/perforce
|
|
cd ${WRKSRC}; \
|
|
for i in *.h; \
|
|
do ${INSTALL_DATA} $${i} ${PREFIX}/include/perforce; \
|
|
done
|
|
cd ${WRKSRC}; \
|
|
for i in lib*.a; \
|
|
do ${INSTALL_DATA} $${i} ${PREFIX}/lib/perforce; \
|
|
done
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/p4api.txt ${PREFIX}/include/perforce
|
|
|
|
.include <bsd.port.post.mk>
|