diff options
Diffstat (limited to 'x11/openmotif/Makefile')
-rw-r--r-- | x11/openmotif/Makefile | 93 |
1 files changed, 16 insertions, 77 deletions
diff --git a/x11/openmotif/Makefile b/x11/openmotif/Makefile index d8efa625a34..3aed4c7bc10 100644 --- a/x11/openmotif/Makefile +++ b/x11/openmotif/Makefile @@ -1,20 +1,12 @@ -# $NetBSD: Makefile,v 1.38 2005/12/05 20:51:18 rillig Exp $ +# $NetBSD: Makefile,v 1.39 2005/12/12 19:55:41 joerg Exp $ -PKGVER= 2.1.30 -DISTNAME= openmotif${PKGVER} +PKGVER= 2.2.3 +DISTNAME= openMotif-${PKGVER} PKGNAME= openmotif-${PKGVER} -PKGREVISION= 4 CATEGORIES= x11 -MOTIF_SITES= ftp://openmotif.opengroup.org/pub/openmotif/R${PKGVER}/ \ - ftp://ftp.opengroup.org/pub/openmotif/R${PKGVER}/ \ - ftp://ftp.kddlabs.co.jp/X11/openmotif/R${PKGVER}/ -MASTER_SITES= ${MOTIF_SITES:=tars/} +MASTER_SITES= http://ftp.motifzone.com/src/ -PATCH_SITES= ${MOTIF_SITES:=fixes/} -PATCHFILES= patch1 patch2 patch3 patch4 patch5 -PATCH_DIST_STRIP= -p1 - -MAINTAINER= tech-pkg@NetBSD.org +MAINTAINER= joerg@NetBSD.org HOMEPAGE= http://www.opengroup.org/openmotif/ COMMENT= The Open Group Motif toolkit for the X Window System @@ -22,43 +14,21 @@ CONFLICTS+= lesstif-[0-9]* PKG_INSTALLATION_TYPES= overwrite pkgviews -WRKSRC= ${WRKDIR}/motif -DIST_SUBDIR= openmotif USE_X11BASE= yes -USE_PKGINSTALL= yes -BUILD_TARGET= World -USE_TOOLS+= tbl - -DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL -INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL - -FILES_SUBST+= X11BASE=${X11BASE:Q} - -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "FreeBSD" -PLIST_SUBST+= AVAILABLE="@comment " -.else -PLIST_SUBST+= AVAILABLE= -.endif +USE_LIBTOOL= yes +USE_TOOLS= gmake tbl +GNU_CONFIGURE= yes -# We must use GNU make on Linux -.if ${OPSYS} == "Linux" -USE_TOOLS+= gmake -.endif +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' -INSTALLATION_DIRS= lib/X11/config man/man1 man/man3 man/man5 - -.include "../../mk/x11.buildlink3.mk" - -post-extract: - ${CP} ${FILESDIR}/NoInstall.rules ${WRKSRC}/config/cf/NoInstall.rules - ${CP} ${FILESDIR}/OpenMotif.def ${WRKSRC}/config/cf/Motif.def - ${CP} ${FILESDIR}/DragonFly.cf ${WRKSRC}/config/cf/DragonFly.cf # 1) Fix the man pages to refer to the correct sections. -# 2) Link Motif.* to OpenMotif.*. -# 3) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to +# 2) Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to # avoid manpage conflicts with other packages. # post-patch: @@ -72,13 +42,6 @@ post-patch: ${MV} -f $${manpage}.fixed $${manpage}; \ done; \ ${CP} -f man4/mwmrc.4 man5/mwmrc.5 - cd ${WRKSRC}/config/cf; \ - files="Motif.rules Motif.tmpl"; \ - for configfile in $${files}; do \ - dest="Open$${configfile}"; \ - ${RM} -f $${dest}; \ - ${LN} -s $${configfile} $${dest}; \ - done cd ${WRKSRC}/doc/man/man3; \ for name in Core Object Shell; do \ ${MV} -f $${name}.3 X$${name}.3; \ @@ -91,18 +54,6 @@ post-patch: done; \ done -# Link the appropriate directories since we're building OpenMotif outside -# of the X11R6 source tree. -# -do-configure: - ${MKDIR} ${WRKSRC}/imports/x11 - cd ${WRKSRC}/imports/x11; for dir in bin include lib; do \ - if [ -d $${dir} ]; then \ - ${RM} $${dir}; \ - fi; \ - ${LN} -s ${BUILDLINK_X11_DIR}/$${dir} $${dir}; \ - done - # Filter the manpages through tbl. post-build: cd ${WRKSRC}/doc/man; \ @@ -111,17 +62,5 @@ post-build: ${MV} -f $${manpage}.tblized $${manpage}; \ done -# Install the OpenMotif config files and manpages. -post-install: - cd ${WRKSRC}/config/cf; \ - files="Motif.def Motif.rules Motif.tmpl"; \ - for configfile in $${files}; do \ - dest="${PREFIX}/lib/X11/config/Open$${configfile}"; \ - ${INSTALL_DATA} $${configfile} $${dest}; \ - done - cd ${WRKSRC}/doc/man; \ - for manpage in man1/*.1 man3/*.3 man5/*.5; do \ - ${INSTALL_MAN} $${manpage} ${PREFIX}/man/$${manpage}; \ - done - +.include "../../mk/x11.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |