1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/ddd/Makefile
2004-08-17 13:45:08 +00:00

91 lines
2.2 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: ddd
# Date created: Tue Jan 28, 1997
# Whom: David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#
PORTNAME= ddd
PORTVERSION= 3.3.8
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ddd
MAINTAINER= ports@FreeBSD.org
COMMENT= Data Display Debugger -- a common graphical front-end for GDB/DBX/XDB
LIB_DEPENDS= iberty.1:${PORTSDIR}/devel/freelibiberty
USE_GMAKE= yes
USE_REINPLACE= yes
USE_XPM= yes
USE_MOTIF= yes
USE_LIBTOOL_VER=13
CFLAGS+= -Wno-deprecated
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include/freelibiberty ${CPPFLAGS} -fpermissive' \
LDFLAGS='${LDFLAGS}'
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-motif-libraries="${LIBXMDIR}" \
--with-readline-libraries=/usr/lib
PLIST_SUB= VERSION=${PORTVERSION}
MAN1= ddd.1
DOCS= AUTHORS INSTALL PROBLEMS README TIPS TODO \
doc/html/ddd.html doc/ddd-paper.ps \
doc/ddd-themes.ps doc/ddd.ps \
doc/ddd-themes.pdf doc/ddd.pdf
.if defined(MOTIFLIB)
.if defined(MOTIF_STATIC)
LIBXMDIR!= ${ECHO_CMD} ${MOTIFLIB} | ${SED} -e 's/\/libXm\.a//g' | ${AWK} '{print $$1}'
.else
LIBXMDIR!= ${ECHO_CMD} ${MOTIFLIB} | ${SED} -e 's/-L//g' | ${AWK} '{print $$1}'
.endif
.else
LIBXMDIR= ${X11BASE}
.endif
.include <bsd.port.pre.mk>
# DDD builds with either GCC 3.1, GCC 3.2 or GCC 3.3
# Use 3.1 or 3.2 if it is available with base system
# Otherwise, default to 3.3
.if ${OSVERSION} >= 500035 && ${OSVERSION} <= 500038
USE_GCC=3.1
.elif ${OSVERSION} > 500038 && ${OSVERSION} < 501103
USE_GCC=3.2
.else
USE_GCC=3.3
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure-gcc33
.endif
pre-patch:
@${RM} -fv ${WRKSRC}/ddd/ddd.info*
@${RM} -fv ${WRKSRC}/ddd/ddd-themes.info*
pre-configure:
@${FIND} ${WRKSRC} -name configure | ${XARGS} \
${REINPLACE_CMD} -e "s|-O2||"
post-configure:
@${ECHO_CMD} "LIBXM = ${MOTIFLIB}" >> ${WRKSRC}/ddd/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
.for file in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
@${GZIP_CMD} ${DOCSDIR}/*.ps
.endif
check:
(cd ${WRKSRC} ; ${GMAKE} check)
.include <bsd.port.post.mk>