freebsd-ports/devel/gdb53-act/Makefile
Edwin Groothuis cb8faeaf9d Fix ports with a non-conforming PORTVERSION
This is a followup to PR 56958.

The following ports have a hyphen in their version number:

    Toni Andjelkovic <toni@soth.at>
    devel/pcsc-lite:
    1.2.0-rc1 => 1.2.0.r1

    John R. Shannon <john@johnrshannon.com>
    devel/gdb53-act:
    5.3-act => 5.3

    Vivek Khera <khera@kciLink.com>
    mail/postfix-current:
    2.0.14-20030812 => 2.0.14.20030812
    PORTEPOCH => 2

    neither pkg_version nor portupgrade see the part of the version
    before the last '-', i.e. devel/pcsc-lite is seen as version
    rc1, 1.3.0-b2 would be regarded as a previous version.

PR:		ports/58642
Submitted by:	Oliver Eikemeier <eikemeier@fillmore-labs.com>
2003-11-02 11:34:05 +00:00

73 lines
1.9 KiB
Makefile

# Ports collection makefile for: GDB 5.3-act
# Date created: 8 August 2003
# Whom: John R. Shannon <john@johnrshannon.com>
#
# $FreeBSD$
PORTNAME= gdb
PORTVERSION= 5.3
PORTEPOCH= 1
CATEGORIES= devel
PKGNAMESUFFIX= -act
MAINTAINER= john@johnrshannon.com
COMMENT= GDB 5.3 modified by ACT for Ada programming language
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-suffix=ada
CONFIGURE_ARGS+= --disable-nls
SNAPDATE= 2003-09-03
CVS_DATE= ${SNAPDATE} 12:44:04 GMT
.if defined(CVS_DATE)
NO_CHECKSUM= yes
DIST_SUBDIR= ${PKGNAME}
CVS_CMD?= cvs -z3 -qR
CVSROOT= :pserver:anoncvs@libre.act-europe.fr:/anoncvs
STAMPFILE= ${DISTDIR}/${DIST_SUBDIR}/.timestamp
do-fetch:
@if [ ! -e ${WRKDIR}/.extract_done ] ; then \
if [ ! -e ${STAMPFILE} ] ; then \
${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \
cd ${DISTDIR}/${DIST_SUBDIR} ; \
unset CVS_RSH CVS_SERVER || ${TRUE} ; \
${ECHO_MSG} ">> Attempting to CVS checkout from ${CVSROOT}." ;\
if ${CVS_CMD} -d ${CVSROOT} co -P gdb-5.3 ; \
then \
( ${ECHO} -n "${CVS_DATE}" > ${STAMPFILE} ) ; \
exit ; \
fi ; \
${ECHO_MSG} ">> Couldn't CVS checkout ${PKGNAME}." ; \
${ECHO_MSG} ">> Please try again later."; \
exit 1; \
else \
if [ "X${CVS_DATE}" != "X$$(${CAT} ${STAMPFILE})" ]; then \
cd ${DISTDIR}/${DIST_SUBDIR} ; \
unset CVS_RSH CVS_SERVER || ${TRUE} ; \
${ECHO_MSG} ">> Attempting to CVS update from ${CVSROOT}." ;\
if ${CVS_CMD} -d ${CVSROOT} up -Pd gdb-5.3 ; \
then \
( ${ECHO} -n "${CVS_DATE}" > ${STAMPFILE} ) ; \
exit ; \
fi ; \
${ECHO_MSG} ">> Couldn't CVS checkout ${PKGNAME}." ; \
${ECHO_MSG} ">> Please try again later."; \
exit 1; \
fi; \
fi; \
fi;
do-extract:
${MKDIR} ${WRKSRC}
cd ${DISTDIR}/${DIST_SUBDIR}/gdb-5.3 ; pax -pe -rwt . ${WRKSRC}
.endif # CVS_DATE
pre-configure:
cd ${WRKSRC} ; ${RM} -rf dejagnu expect sim tcl texinfo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdbada
.include <bsd.port.mk>