openbsd-ports/devel/ddd/Makefile
sturm 9bc1630b3d update to ddd 3.3.7
from Andrew Dalgleish <openbsd@ajd.net.au>
2003-10-26 17:30:39 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.36 2003/10/26 17:30:39 sturm Exp $
COMMENT= "Data Display Debugger, graphical front-end for GDB, etc"
DISTNAME= ddd-3.3.7
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=ddd/}
HOMEPAGE= http://www.gnu.org/software/ddd/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
REGRESS_IS_INTERACTIVE=Yes
# Note - we need ~/.XAuthority, which doesn't exist in
# /${PKGNAME}_writes_to_home
REGRESS_FLAGS+= "DISPLAY=$${DISPLAY}" "HOME=$${HOME}"
USE_MOTIF= any
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
SEPARATE_BUILD= simple
SUBST_VARS+= DISTNAME
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/libiberty \
${WRKSRC}/readline/support
CONFIGURE_ARGS= --with-readline-libraries=/usr/lib
MAKE_FLAGS= MAINTAINER="'${MAINTAINER}'"
VMEM_WARNING= Yes
DOCS= ddd-paper.ps ddd-themes.pdf ddd-themes.ps ddd.pdf ddd.ps html/ddd.html
pre-build:
find ${WRKSRC} -type f \( -name '*.C' -o -name '*.h' \) -print0 | xargs -0 \
perl -pi -e 'next if /#include/; s/\bstring\b/gnu_string/g;'
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ddd
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/ddd
@${GZIP_CMD} ${PREFIX}/share/doc/ddd/ddd-paper.ps
@${GZIP_CMD} ${PREFIX}/share/doc/ddd/ddd-themes.ps
@${GZIP_CMD} ${PREFIX}/share/doc/ddd/ddd.ps
.include <bsd.port.mk>