mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-29 21:39:24 +00:00
e08736e7b8
DEC SRC one. PM3 is the one that's actively maintained these days. This port now works on FreeBSD-2, -3, and -4 on the i386, and FreeBSD-4 on the Alpha.
75 lines
1.6 KiB
Makefile
75 lines
1.6 KiB
Makefile
# New ports collection makefile for: cvsup
|
|
# Version required: 16.1
|
|
# Date created: 7 August 1996
|
|
# Whom: asami
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
DISTNAME= cvsup-16.1
|
|
CATEGORIES= devel net
|
|
MASTER_SITES= ftp://ftp.freebsd.org/pub/FreeBSD/development/CVSup/sources/ \
|
|
ftp://ftp.cs.tu-berlin.de/pub/FreeBSD/development/CVSup/sources/
|
|
|
|
MAINTAINER= jdp@FreeBSD.org
|
|
|
|
.ifdef NO_X11
|
|
M3FLAGS+= -DNOGUI
|
|
BUILD_DEPENDS= ${L1}libm3tcp${L2}:${PORTSDIR}/lang/pm3-net
|
|
RUN_DEPENDS= ${L1}libm3tcp${L2}:${PORTSDIR}/lang/pm3-net
|
|
.else
|
|
BUILD_DEPENDS= ${L1}libm3formsvbt${L2}:${PORTSDIR}/lang/pm3-forms
|
|
RUN_DEPENDS= ${L1}libm3formsvbt${L2}:${PORTSDIR}/lang/pm3-forms
|
|
.endif
|
|
|
|
MAKE_ARGS+= PREFIX=${PREFIX} M3FLAGS="${M3FLAGS}"
|
|
MAN1= cvpasswd.1 cvsup.1
|
|
MAN8= cvsupd.8
|
|
|
|
L1= ${PREFIX}/lib/m3/${TARGET}/
|
|
SOVERSION= 7
|
|
|
|
# To link the programs statically:
|
|
#M3FLAGS+= -DSTATIC
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
L2= .so.${SOVERSION}.0
|
|
TARGET= FreeBSD2
|
|
TARGETDIR= freebsd-2
|
|
WORDSIZE= 32
|
|
.elif ${ARCH} == "i386"
|
|
L2= .so.${SOVERSION}
|
|
.if ${OSVERSION} < 400011
|
|
TARGET= FreeBSD3
|
|
TARGETDIR= freebsd-3
|
|
.else
|
|
TARGET= FreeBSD4
|
|
TARGETDIR= freebsd-4
|
|
.endif
|
|
WORDSIZE= 32
|
|
.elif ${ARCH} == "alpha"
|
|
.if ${OSVERSION} < 400011
|
|
BROKEN= Not supported on older versions of FreeBSD/Alpha
|
|
.endif
|
|
CFLAGS+= -mieee
|
|
L2= .so.${SOVERSION}
|
|
TARGET= FBSD_ALPHA
|
|
TARGETDIR= fbsd-alpha
|
|
WORDSIZE= 64
|
|
.endif
|
|
|
|
pre-fetch:
|
|
.if empty(TARGET)
|
|
@${ECHO_MSG} "Cannot determine M3 target for this architecture"
|
|
@${FALSE}
|
|
.endif
|
|
.ifndef NO_X11
|
|
@${ECHO_MSG} -n "To build this port without X11 (and without the GUI),"
|
|
@${ECHO_MSG} " define \"NO_X11\"."
|
|
.endif
|
|
@${TRUE}
|
|
|
|
.include <bsd.port.post.mk>
|