1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00
Pav Lucistnik 0b0c6a2180 - Switch cvsup to build binaries from sources on amd64 architecture instead
of providing precompiled binary packages, using patches by Peter Wemm and
  Bjoern A. Zeeb. This gets up "good" cvsup for upcoming 6.0 release.
- Turn off X11 automatically on amd64 instead of erroring out
- Bjoern A. Zeeb agreed to take maintainership of this port for amd64 arch
  (read: help endusers solving their problems)

Based on:	bz's patches floating on mailing list
Approved by:	jdp (maintainer)
2005-07-07 18:57:12 +00:00

85 lines
2.3 KiB
Makefile

# New ports collection makefile for: cvsup
# Date created: 7 August 1996
# Whom: asami
#
# $FreeBSD$
#
PORTNAME= cvsup
PORTVERSION?= 16.1h
PORTREVISION?= 2
CATEGORIES= net devel
MASTER_SITES= ${MASTER_SITE_FREEBSD_ORG}
MASTER_SITE_SUBDIR=development/CVSup/snapshots
DISTNAME= cvsup-snap-${PORTVERSION}
MAINTAINER= jdp@FreeBSD.org
COMMENT?= General network file distribution system optimized for CVS (GUI version)
ONLY_FOR_ARCHS= alpha amd64 i386 sparc64
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 410000
BROKEN= Not supported on versions earlier than 4.1-RELEASE
.endif
.if ${ARCH} == "alpha"
TARGET= FBSD_ALPHA
.elif ${ARCH} == "amd64"
MAINTAINER= bzeeb+freebsdports@zabbadoz.net
TARGET= FBSD_AMD64
AMD64_PATCHES= p-amd64-aa p-amd64-zlib
.elif ${ARCH} == "i386"
TARGET= FreeBSD4
.elif ${ARCH} == "sparc64"
TARGET= FBSD_SPARC64
.endif
.if defined(WITHOUT_X11) || ${ARCH} == "amd64"
M3FLAGS+= -DNOGUI
BUILD_DEPENDS= ${PREFIX}/lib/m3/pkg/tcp/${TARGET}/libm3tcp.a:${PORTSDIR}/lang/ezm3
PKGNAMESUFFIX= -without-gui
COMMENT= General network file distribution system optimized for CVS (non-GUI version)
DESCR= ${PKGDIR}/pkg-descr.nogui
.else
USE_XLIB= yes
BUILD_DEPENDS= ${PREFIX}/lib/m3/pkg/formsvbt/${TARGET}/libm3formsvbt.a:${PORTSDIR}/lang/ezm3
.endif
MAKE_ARGS+= PREFIX=${PREFIX} M3FLAGS="${M3FLAGS}"
MAN1= cvpasswd.1 cvsup.1
MAN8= cvsupd.8
.ifdef STATIC
M3FLAGS+= -DSTATIC
.endif
pre-fetch:
.ifndef WITHOUT_X11
.if ${ARCH} == "amd64"
@${ECHO_MSG} "*****************************************************"
@${ECHO_MSG} "* CVSup with X11 is not yet supported on amd64. *"
@${ECHO_MSG} "* I will build cvsup without X11 support now. *"
@${ECHO_MSG} "*****************************************************"
.else
@${ECHO_MSG} "*****************************************************"
@${ECHO_MSG} "* To build CVSup without X11 (and without the GUI) *"
@${ECHO_MSG} "* use the \"net/cvsup-without-gui\" port. *"
@${ECHO_MSG} "*****************************************************"
.endif
.endif
pre-patch:
.if ${ARCH} == "amd64"
.for f in ${AMD64_PATCHES}
@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/${f}
.endfor
.endif
post-install:
@${MKDIR} ${PREFIX}/share/cvsup
@${INSTALL_DATA} ${WRKSRC}/License ${PREFIX}/share/cvsup/License
.include <bsd.port.post.mk>