2b87700f1b
Update MASTER_SITES including a backup site hosted by the maintainer. Remove BROKEN lines (this version is 7 years newer). While here, adjust the PR patchset to eliminate DIST_SUBDIR and embed the version string into the downloaded package. PR: 270387 Approved by: antonfb@hesiod.org (maintainer)
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
PORTNAME= p4
|
|
PORTVERSION= ${YEAR}.${MAJOR}.${MINOR}
|
|
CATEGORIES= devel
|
|
# Perforce changes their distfiles when they patch, which changes the
|
|
# zip file's checksum. This does not play well with FreeBSD's conventions.
|
|
# maintainer is backup hosting
|
|
MASTER_SITES= https://ftp.perforce.com/perforce/${P4VERSION}/bin.tools/p4source${EXTRACT_SUFX}?dummy=/ \
|
|
https://hesiod.org/distfiles/perforce-${MINOR}/p4source${EXTRACT_SUFX}?dummy=/
|
|
DISTNAME= p4source-${MINOR}
|
|
|
|
MAINTAINER= antonfb@hesiod.org
|
|
COMMENT= Perforce command line client
|
|
WWW= https://www.perforce.com/products/helix-core
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${JAM}:devel/jam
|
|
|
|
# p4 links libssl and libcrypto statically, so specify :build
|
|
USES= ssl:build tar:tgz
|
|
|
|
WRKSRC= ${WRKDIR}/p4source-${PORTVERSION}
|
|
|
|
PLIST_FILES= bin/p4
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "Makefile.inc"
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} C++="${CXX}" C++FLAGS="${CXXFLAGS}" \
|
|
CCFLAGS="${CFLAGS}" \
|
|
HDRS="${OPENSSLINC}" \
|
|
LINKFLAGS="${LDFLAGS}" \
|
|
OSVER=${OSVER} \
|
|
SSL="yes" \
|
|
SSLPREFIX=${OPENSSLLIB} \
|
|
${JAM} -dx -sUSE_EXTENSIONS=0 -j${MAKE_JOBS_NUMBER} p4
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/p4-bin/p4 ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|