summaryrefslogtreecommitdiff
path: root/devel/ddd/Makefile
blob: d61a0692a2ed26cf5f2e3e9662c7a8bccd1ca523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $NetBSD: Makefile,v 1.71 2006/03/30 03:44:42 jlam Exp $
#

DISTNAME=	ddd-3.3.11
PKGREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GNU:=ddd/}

MAINTAINER=	martti@NetBSD.org
HOMEPAGE=	http://www.gnu.org/software/ddd/
COMMENT=	Data Display Debugger -- graphical front-end for GDB/DBX/XDB

GNU_CONFIGURE=		YES
INFO_FILES=		# PLIST
TEST_TARGET=		check
USE_TOOLS+=		gmake gzip
USE_LANGUAGES=		c c++
USE_X11BASE=		YES

GCC_REQD+=		3.0

CONFIGURE_ARGS+=	--with-ncurses=no
CONFIGURE_ENV+=		COMPFACE=${FALSE:Q}

.include "../../mk/bsd.prefs.mk"

post-patch:
	@case ${PAPERSIZE:Q} in					\
	A4)	${ECHO} "Using A4 paper size" ;;		\
	Letter*)	${ECHO} "Using US Letter paper size";	\
		${MV} ${WRKSRC:Q}/ddd/Ddd.in ${WRKSRC:Q}/ddd/Ddd.in.orig; \
		${SED} -e 's|@Ddd@\*paperSize: 210mm x 297mm|@Ddd@*paperSize: 8.5" x 11"|' \
			< ${WRKSRC:Q}/ddd/Ddd.in.orig 		\
			> ${WRKSRC:Q}/ddd/Ddd.in ;;		\
	"")	${ECHO} "PAPERSIZE not set - defaulting to A4" ;;	\
	*)	${ECHO} "Bad PAPERSIZE - $$PAPERSIZE - defaulting to A4" ;; \
	esac;

post-configure:
	${ECHO} LIBXM = ${MOTIFLIB:Q} >> ${WRKSRC:Q}/ddd/Makefile

post-install:
	${INSTALL_DATA_DIR} ${PREFIX:Q}/share/doc/ddd
	${INSTALL_DATA} ${WRKSRC:Q}/README ${PREFIX:Q}/share/doc/ddd
	${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd-paper.ps ${PREFIX:Q}/share/doc/ddd
	${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd.ps ${PREFIX:Q}/share/doc/ddd
	${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd.pdf ${PREFIX:Q}/share/doc/ddd
	${GZIP_CMD} ${PREFIX:Q}/share/doc/ddd/ddd-paper.ps
	${GZIP_CMD} ${PREFIX:Q}/share/doc/ddd/ddd.ps

.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"