2006-01-07 22:08:12 +01:00
|
|
|
# $NetBSD: Makefile,v 1.40 2006/01/07 21:08:12 joerg Exp $
|
2000-10-29 17:17:13 +01:00
|
|
|
|
2005-12-12 20:55:41 +01:00
|
|
|
PKGVER= 2.2.3
|
|
|
|
DISTNAME= openMotif-${PKGVER}
|
2000-10-29 17:17:13 +01:00
|
|
|
PKGNAME= openmotif-${PKGVER}
|
2006-01-07 22:08:12 +01:00
|
|
|
PKGREVISION= 1
|
2000-10-29 17:17:13 +01:00
|
|
|
CATEGORIES= x11
|
2005-12-12 20:55:41 +01:00
|
|
|
MASTER_SITES= http://ftp.motifzone.com/src/
|
2000-10-29 17:17:13 +01:00
|
|
|
|
2005-12-12 20:55:41 +01:00
|
|
|
MAINTAINER= joerg@NetBSD.org
|
2001-09-08 22:03:43 +02:00
|
|
|
HOMEPAGE= http://www.opengroup.org/openmotif/
|
2003-08-08 11:25:16 +02:00
|
|
|
COMMENT= The Open Group Motif toolkit for the X Window System
|
2000-10-29 17:17:13 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS+= lesstif-[0-9]*
|
2000-12-26 20:49:55 +01:00
|
|
|
|
2004-12-25 23:22:00 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_X11BASE= yes
|
2005-12-12 20:55:41 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS= gmake tbl
|
|
|
|
GNU_CONFIGURE= yes
|
2004-02-03 00:10:29 +01:00
|
|
|
|
2005-12-12 20:55:41 +01:00
|
|
|
SUBST_CLASSES+= man_rename
|
|
|
|
SUBST_STAGE.man_rename= pre-configure
|
|
|
|
SUBST_MESSAGE.man_rename= "Fixing hardcoded paths."
|
|
|
|
SUBST_FILES.man_rename= doc/man/man3/Makefile.in
|
|
|
|
SUBST_SED.man_rename= -e 's: Core.3: XCore.3:g' \
|
|
|
|
-e 's: Object.3: XObject.3:g' -e 's: Shell.3: XShell.3:g'
|
2003-09-09 14:23:28 +02:00
|
|
|
|
2001-09-08 22:03:43 +02:00
|
|
|
|
|
|
|
# 1) Fix the man pages to refer to the correct sections.
|
2005-12-12 20:55:41 +01:00
|
|
|
# 2) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to
|
2001-09-08 22:03:43 +02:00
|
|
|
# avoid manpage conflicts with other packages.
|
|
|
|
#
|
2000-10-29 17:17:13 +01:00
|
|
|
post-patch:
|
2001-09-08 22:03:43 +02:00
|
|
|
cd ${WRKSRC}/doc/man; \
|
2005-06-27 16:08:15 +02:00
|
|
|
for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
|
2001-09-08 22:03:43 +02:00
|
|
|
${SED} -e "s|user cmd|1|g" \
|
|
|
|
-e "s|library call|3|g" \
|
|
|
|
-e "s|special file|5|g" \
|
|
|
|
-e "s|file formats|5|g" \
|
2005-06-27 16:08:15 +02:00
|
|
|
$${manpage} > $${manpage}.fixed; \
|
|
|
|
${MV} -f $${manpage}.fixed $${manpage}; \
|
2001-09-08 22:03:43 +02:00
|
|
|
done; \
|
|
|
|
${CP} -f man4/mwmrc.4 man5/mwmrc.5
|
|
|
|
cd ${WRKSRC}/doc/man/man3; \
|
|
|
|
for name in Core Object Shell; do \
|
|
|
|
${MV} -f $${name}.3 X$${name}.3; \
|
|
|
|
files=`${GREP} -l ".fB$${name}.fP(3)" *.3`; \
|
2005-06-27 16:08:15 +02:00
|
|
|
for manpage in $${files}; do \
|
|
|
|
${MV} -f $${manpage} $${manpage}.presubst; \
|
2001-09-08 22:03:43 +02:00
|
|
|
${SED} "s|\(.fB\)$${name}\(.fP(3)\)|\1X$${name}\2|g" \
|
2005-06-27 16:08:15 +02:00
|
|
|
$${manpage}.presubst > $${manpage}; \
|
|
|
|
${RM} -f $${manpage}.presubst; \
|
2001-09-08 22:03:43 +02:00
|
|
|
done; \
|
|
|
|
done
|
2000-10-31 02:13:14 +01:00
|
|
|
|
2001-09-08 22:03:43 +02:00
|
|
|
# Filter the manpages through tbl.
|
2000-10-29 17:17:13 +01:00
|
|
|
post-build:
|
2001-09-08 22:03:43 +02:00
|
|
|
cd ${WRKSRC}/doc/man; \
|
2005-06-27 16:08:15 +02:00
|
|
|
for manpage in man1/*.1 man3/*.3 man4/*.4 man5/*.5; do \
|
|
|
|
${TBL} $${manpage} > $${manpage}.tblized; \
|
|
|
|
${MV} -f $${manpage}.tblized $${manpage}; \
|
2000-10-29 17:17:13 +01:00
|
|
|
done
|
|
|
|
|
2005-12-12 20:55:41 +01:00
|
|
|
.include "../../mk/x11.buildlink3.mk"
|
2001-09-08 22:03:43 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|