2001-06-30 21:08:21 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.10 2001/06/30 19:08:21 jlam Exp $
|
2000-07-25 16:42:00 +02:00
|
|
|
|
|
|
|
DISTNAME= lesstif-${LESSTIF_VERSION}
|
2001-06-30 21:08:21 +02:00
|
|
|
LESSTIF_VERSION= 0.92.32
|
2000-07-25 16:42:00 +02:00
|
|
|
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/
|
|
|
|
|
2000-12-22 18:26:18 +01:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
2000-07-25 16:42:00 +02:00
|
|
|
HOMEPAGE= http://www.lesstif.org/
|
|
|
|
|
2001-03-11 05:32:16 +01:00
|
|
|
CONFLICTS+= openmotif-[0-9]*
|
|
|
|
|
2001-03-27 05:19:43 +02:00
|
|
|
BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf
|
|
|
|
BUILD_DEPENDS+= automake-1.4:../../devel/automake
|
2000-07-25 16:42:00 +02:00
|
|
|
|
2001-06-30 21:08:21 +02:00
|
|
|
USE_BUILDLINK_ONLY= # defined
|
2000-07-25 16:42:00 +02:00
|
|
|
USE_X11BASE= # defined
|
|
|
|
USE_GMAKE= # defined
|
|
|
|
USE_LIBTOOL= # defined
|
2001-06-30 21:08:21 +02:00
|
|
|
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
|
|
|
|
LIBTOOL_OVERRIDE+= ${WRKSRC}/Xbae/libtool
|
|
|
|
LIBTOOL_OVERRIDE+= ${WRKSRC}/Xlt/libtool
|
|
|
|
LIBTOOL_OVERRIDE+= ${WRKSRC}/test/libtool
|
2000-07-25 16:42:00 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= # defined
|
2000-10-23 21:45:05 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-production --disable-debug --disable-verbose
|
2000-12-22 18:26:18 +01:00
|
|
|
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
|
2000-07-25 16:42:00 +02:00
|
|
|
|
2001-05-12 06:32:34 +02:00
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../x11/lesstif/distinfo
|
2000-07-25 16:42:00 +02:00
|
|
|
PATCHDIR= ${.CURDIR}/../../x11/lesstif/patches
|
|
|
|
|
2000-10-23 21:45:05 +02:00
|
|
|
post-extract:
|
2001-06-30 21:08:21 +02:00
|
|
|
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.am Makefile.am.presubst; \
|
|
|
|
${SED} -e "s|\([[:space:]]\)$${name}.3|\1X$${name}.3|g" \
|
|
|
|
Makefile.am.presubst > Makefile.am; \
|
|
|
|
${RM} -f Makefile.am.presubst; \
|
|
|
|
done
|
2000-10-23 21:45:05 +02:00
|
|
|
|
2000-07-25 16:42:00 +02:00
|
|
|
pre-configure:
|
2000-12-22 18:26:18 +01:00
|
|
|
${TOUCH} ${WRKDIR}/nonexecutable
|
|
|
|
${CHMOD} a-x ${WRKDIR}/nonexecutable
|
2001-06-30 21:08:21 +02:00
|
|
|
for dir in . lib/Xbae lib/Xlt test ; do \
|
|
|
|
cd ${WRKSRC}/$${dir}; \
|
|
|
|
${LOCALBASE}/bin/libtoolize --force; \
|
|
|
|
${LOCALBASE}/bin/aclocal; \
|
|
|
|
${LOCALBASE}/bin/autoheader; \
|
|
|
|
${LOCALBASE}/bin/automake -a --foreign -i; \
|
|
|
|
${LOCALBASE}/bin/autoconf; \
|
2000-07-30 03:33:11 +02:00
|
|
|
done
|