1 # $NetBSD: Makefile,v 1.99 2012/10/23 10:24:18 wiz Exp $
3 DISTNAME
= lesstif-0.95
.2
6 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=lesstif
/}
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://www.lesstif.org
/
11 COMMENT
= API compatible clone of the OSF
/Motif toolkit
13 CONFLICTS
+= openmotif-
[0-9]*
19 CONFIGURE_ARGS
+= --disable-debug
20 CONFIGURE_ARGS
+= --disable-verbose
21 CONFIGURE_ARGS
+= --enable-editres
22 CONFIGURE_ARGS
+= --enable-production
23 CONFIGURE_ARGS
+= --enable-xdnd
25 # The following forces the build process to use sed as the HTML-to-text
27 CONFIGURE_ENV
+= LYNX_CMD
=${WRKDIR}/nonexecutable
28 CONFIGURE_ENV
+= LINKS_CMD
=${WRKDIR}/nonexecutable
30 DEINSTALL_FILE
= ${WRKDIR}/DEINSTALL
31 INSTALL_FILE
= ${WRKDIR}/INSTALL
32 FILES_SUBST
+= LOCALBASE
=${LOCALBASE
:Q
}
33 FILES_SUBST
+= X11BASE
=${X11BASE
:Q
}
34 FILES_SUBST
+= CP
=${CP
:Q
}
35 FILES_SUBST
+= CMP
=${CMP
:Q
}
36 FILES_SUBST
+= ECHO
=${ECHO
:Q
}
37 FILES_SUBST
+= GREP
=${GREP
:Q
}
38 FILES_SUBST
+= LN
=${LN
:Q
}
39 FILES_SUBST
+= MV
=${MV
:Q
}
40 FILES_SUBST
+= RM
=${RM
:Q
}
41 FILES_SUBST
+= RMDIR
=${RMDIR
:Q
}
42 FILES_SUBST
+= TRUE
=${TRUE
:Q
}
45 cd
${WRKSRC}/lib
/config
; ${MV} -f host.def LessTif.def
47 # Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to
48 # avoid manpage conflicts with other packages.
50 cd
${WRKSRC}/doc
/lessdox
/widgets
; \
51 for name in Core Object Shell
; do \
52 ${MV} -f
$${name}.3 X
$${name}.3; \
53 files
=`${GREP} -l "[[:blank:]]$${name} (3)" *.3`; \
54 for file in
$${files}; do \
55 ${MV} -f
$${file} $${file}.presubst
; \
56 ${SED} -e
"s|\([[:blank:]]\)$${name} (3)|\1X$${name} (3)|g" \
57 $${file}.presubst
> $${file}; \
58 ${RM} -f
$${file}.presubst
; \
60 ${MV} -f Makefile.in Makefile.in.presubst
; \
61 ${SED} -e
"s|\([[:space:]]\)$${name}.3|\1X$${name}.3|g" \
62 Makefile.in.presubst
> Makefile.in
; \
63 ${RM} -f Makefile.in.presubst
; \
66 .
include "../../fonts/fontconfig/buildlink3.mk"
67 .
include "../../x11/libXext/buildlink3.mk"
68 .
include "../../x11/libXp/buildlink3.mk"
69 .
include "../../x11/libXrender/buildlink3.mk"
70 .
include "../../x11/libXt/buildlink3.mk"
71 .
include "../../mk/bsd.pkg.mk"