1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/ddd/Makefile
Mario Sergio Fujikawa Ferreira 25ebc3a8a8 Chase freelibiberty header files location move which removed CONFLICTS
with libgnugetopt. This resolves port build under most FreeBSD port
installations where libgnugetopt is already installed.

Approved by:	marcus (portmgr)
2004-04-25 00:04:32 +00:00

88 lines
2.0 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= lioux@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}' \
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 or GCC 3.2
# Use 3.1 if it is available with base system
# Otherwise, default to 3.2
.if ${OSVERSION} >= 500035 && ${OSVERSION} <= 500038
USE_GCC=3.1
.else
USE_GCC=3.2
.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>