2004-04-25 00:46:08 +02:00
|
|
|
# $NetBSD: Makefile,v 1.73 2004/04/24 22:46:13 jlam Exp $
|
2001-06-30 21:08:21 +02:00
|
|
|
|
2003-12-12 11:11:39 +01:00
|
|
|
DISTNAME= lesstif-0.93.94
|
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lesstif/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2002-12-05 20:10:42 +01:00
|
|
|
|
2004-04-25 00:46:08 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2003-12-12 11:11:39 +01:00
|
|
|
HOMEPAGE= http://www.lesstif.org/
|
2001-06-30 21:08:21 +02:00
|
|
|
COMMENT= API compatible clone of the OSF/Motif toolkit
|
2001-02-17 18:06:11 +01:00
|
|
|
|
2001-09-14 03:57:44 +02:00
|
|
|
CONFLICTS+= openmotif-[0-9]*
|
|
|
|
|
2004-04-11 20:26:34 +02:00
|
|
|
USE_BUILDLINK3= YES
|
2003-12-12 11:11:39 +01:00
|
|
|
USE_X11BASE= YES
|
2004-01-24 16:30:32 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2003-12-12 11:11:39 +01:00
|
|
|
USE_LIBTOOL= YES
|
2002-12-05 20:10:42 +01:00
|
|
|
GNU_CONFIGURE= # defined
|
2000-07-25 16:42:00 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-build-12
|
2002-12-05 20:10:42 +01:00
|
|
|
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
|
2000-10-23 21:45:05 +02:00
|
|
|
|
2004-03-20 01:48:36 +01:00
|
|
|
# Work around an ICE on sparc64-1.6
|
|
|
|
CONFIGURE_ENV+= F77=${FALSE}
|
|
|
|
|
2000-10-23 21:45:05 +02:00
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
2001-06-30 21:08:21 +02:00
|
|
|
FILES_SUBST= LOCALBASE=${LOCALBASE}
|
2001-10-03 12:03:54 +02:00
|
|
|
FILES_SUBST+= X11BASE=${X11BASE}
|
2001-08-08 09:37:51 +02:00
|
|
|
FILES_SUBST+= CP=${CP:Q}
|
2001-10-03 12:03:54 +02:00
|
|
|
FILES_SUBST+= CMP=${CMP:Q}
|
|
|
|
FILES_SUBST+= ECHO=${ECHO:Q}
|
2001-08-08 09:37:51 +02:00
|
|
|
FILES_SUBST+= GREP=${GREP:Q}
|
2001-06-30 21:08:21 +02:00
|
|
|
FILES_SUBST+= LN=${LN:Q}
|
2001-10-03 12:03:54 +02:00
|
|
|
FILES_SUBST+= MV=${MV:Q}
|
2001-06-30 21:08:21 +02:00
|
|
|
FILES_SUBST+= RM=${RM:Q}
|
|
|
|
FILES_SUBST+= RMDIR=${RMDIR:Q}
|
|
|
|
FILES_SUBST+= TRUE=${TRUE:Q}
|
|
|
|
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
|
|
|
|
|
2002-12-05 20:10:42 +01:00
|
|
|
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
|
|
|
|
|
2000-12-22 18:26:18 +01:00
|
|
|
pre-install:
|
2001-06-30 21:08:21 +02:00
|
|
|
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
|
|
|
|
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
|
2000-02-12 04:54:51 +01:00
|
|
|
|
|
|
|
post-install:
|
2000-10-23 21:45:05 +02:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
1997-11-02 03:45:51 +01:00
|
|
|
|
2004-04-12 04:15:40 +02:00
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
2001-06-30 21:08:21 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|