summaryrefslogtreecommitdiff
path: root/devel/ddd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ddd/Makefile')
-rw-r--r--devel/ddd/Makefile32
1 files changed, 16 insertions, 16 deletions
diff --git a/devel/ddd/Makefile b/devel/ddd/Makefile
index c74af43efa3..ae6839dc369 100644
--- a/devel/ddd/Makefile
+++ b/devel/ddd/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.74 2009/12/17 21:31:43 abs Exp $
+# $NetBSD: Makefile,v 1.75 2010/06/02 13:34:34 hauke Exp $
#
-DISTNAME= ddd-3.3.11
-PKGREVISION= 2
+DISTNAME= ddd-3.3.12
+#PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=ddd/}
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/ddd/
COMMENT= Data Display Debugger -- graphical front-end for GDB/DBX/XDB
+LICENSE= gnu-gpl-v3
+
GNU_CONFIGURE= YES
INFO_FILES= YES # PLIST
TEST_TARGET= check
@@ -29,17 +31,14 @@ PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS+= share/doc/ddd
-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;
+# Default paper size is A4
+.if !empty(PAPERSIZE:MLetter*)
+SUBST_CLASSES+= set-papersize
+SUBST_STAGE.set-papersize= pre-configure
+SUBST_MESSAGE.set-papersize= Setting papersize for program documentation to ${PAPERSIZE}.
+SUBST_FILES.set-papersize= ddd/Ddd.in
+SUBST_SED.set-papersize= -e 's|@Ddd@\*paperSize: 210mm x 297mm|@Ddd@*paperSize: 8.5" x 11"|'
+.endif
post-configure:
${ECHO} LIBXM = ${MOTIFLIB:Q} >> ${WRKSRC:Q}/ddd/Makefile
@@ -47,11 +46,12 @@ post-configure:
post-install:
${INSTALL_DATA} ${WRKSRC:Q}/README ${DESTDIR}${PREFIX:Q}/share/doc/ddd
${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd-paper.ps ${DESTDIR}${PREFIX:Q}/share/doc/ddd
- ${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd.ps ${DESTDIR}${PREFIX:Q}/share/doc/ddd
${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd.pdf ${DESTDIR}${PREFIX:Q}/share/doc/ddd
+ ${INSTALL_DATA} ${WRKSRC:Q}/doc/ddd-themes.pdf ${DESTDIR}${PREFIX:Q}/share/doc/ddd
+ ${INSTALL_DATA} ${WRKSRC:Q}/doc/html/ddd.html ${DESTDIR}${PREFIX:Q}/share/doc/ddd
${GZIP_CMD} ${DESTDIR}${PREFIX:Q}/share/doc/ddd/ddd-paper.ps
- ${GZIP_CMD} ${DESTDIR}${PREFIX:Q}/share/doc/ddd/ddd.ps
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"