summaryrefslogtreecommitdiff
path: root/x11/lesstif/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/lesstif/Makefile')
-rw-r--r--x11/lesstif/Makefile59
1 files changed, 51 insertions, 8 deletions
diff --git a/x11/lesstif/Makefile b/x11/lesstif/Makefile
index c39b56611af..95cba1f45f3 100644
--- a/x11/lesstif/Makefile
+++ b/x11/lesstif/Makefile
@@ -1,21 +1,41 @@
-# $NetBSD: Makefile,v 1.62 2002/08/25 18:40:37 jlam Exp $
+# $NetBSD: Makefile,v 1.63 2002/12/05 19:10:42 drochner Exp $
+DISTNAME= lesstif-0.93.36
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.hungry.com/pub/hungry/lesstif/srcdist/ \
+ ftp://ftp.unicamp.br/pub/X11/lesstif/srcdist/ \
+ ftp://ftp.kddlabs.co.jp/X11/lesstif/srcdist/ \
+ ftp://linux.mathematik.tu-darmstadt.de/pub/linux/mirrors/misc/lesstif/srcdist/ \
+ http://gd.tuwien.ac.at/hci/lesstif/srcdist/ \
+ http://www.damtp.cam.ac.uk/mirror/ftp.hungry.com/pub/hungry/lesstif/srcdist/
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://www.lesstif.org/
COMMENT= API compatible clone of the OSF/Motif toolkit
CONFLICTS+= openmotif-[0-9]*
USE_BUILDLINK2= # defined
-
-.include "Makefile.common"
-
+USE_X11BASE= # defined
+USE_GMAKE= # defined
+USE_LIBTOOL= # defined
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+LIBTOOL_OVERRIDE+= ${WRKSRC}/test/libtool
+GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --disable-build-12
-CONFIGURE_ARGS+= --enable-build-20
-CONFIGURE_ARGS+= --disable-build-21
-CONFIGURE_ARGS+= --enable-default-20
+CONFIGURE_ARGS+= --disable-build-20
+CONFIGURE_ARGS+= --enable-build-21
+CONFIGURE_ARGS+= --enable-production --disable-debug --disable-verbose
+CONFIGURE_ARGS+= --enable-editres --enable-xdnd
+
+# The following forces the build process to use sed as the HTML-to-text
+# converter.
+#
+CONFIGURE_ENV+= LYNX_CMD=${WRKDIR}/nonexecutable
+CONFIGURE_ENV+= LINKS_CMD=${WRKDIR}/nonexecutable
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
-
FILES_SUBST= LOCALBASE=${LOCALBASE}
FILES_SUBST+= X11BASE=${X11BASE}
FILES_SUBST+= CP=${CP:Q}
@@ -29,6 +49,29 @@ FILES_SUBST+= RMDIR=${RMDIR:Q}
FILES_SUBST+= TRUE=${TRUE:Q}
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
+post-extract:
+ cd ${WRKSRC}/lib/config; ${MV} -f host.def LessTif.def
+
+# Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to
+# avoid manpage conflicts with other packages.
+#
+post-patch:
+ cd ${WRKSRC}/doc/lessdox/widgets; \
+ for name in Core Object Shell; do \
+ ${MV} -f $${name}.3 X$${name}.3; \
+ files=`${GREP} -l "[[:blank:]]$${name} (3)" *.3`; \
+ for file in $${files}; do \
+ ${MV} -f $${file} $${file}.presubst; \
+ ${SED} -e "s|\([[:blank:]]\)$${name} (3)|\1X$${name} (3)|g" \
+ $${file}.presubst > $${file}; \
+ ${RM} -f $${file}.presubst; \
+ done; \
+ ${MV} -f Makefile.in Makefile.in.presubst; \
+ ${SED} -e "s|\([[:space:]]\)$${name}.3|\1X$${name}.3|g" \
+ Makefile.in.presubst > Makefile.in; \
+ ${RM} -f Makefile.in.presubst; \
+ done
+
pre-install:
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}