pkgsrc - initial commit
[pkgsrc.git] / x11 / lesstif / Makefile
1 # $NetBSD: Makefile,v 1.94 2008/07/14 12:56:18 joerg Exp $
2
3 DISTNAME=       lesstif-0.95.0
4 PKGREVISION=    1
5 CATEGORIES=     x11
6 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=lesstif/}
7 EXTRACT_SUFX=   .tar.bz2
8
9 MAINTAINER=     pkgsrc-users@NetBSD.org
10 HOMEPAGE=       http://www.lesstif.org/
11 COMMENT=        API compatible clone of the OSF/Motif toolkit
12
13 PKG_DESTDIR_SUPPORT=    user-destdir
14
15 CONFLICTS+=     openmotif-[0-9]*
16
17 USE_LIBTOOL=            yes
18 USE_TOOLS+=             gmake
19 USE_X11BASE=            yes
20 GNU_CONFIGURE=          yes
21 CONFIGURE_ARGS+=        --enable-production --disable-debug --disable-verbose
22 CONFIGURE_ARGS+=        --enable-editres --enable-xdnd
23
24 # The following forces the build process to use sed as the HTML-to-text
25 # converter.
26 CONFIGURE_ENV+=         LYNX_CMD=${WRKDIR}/nonexecutable
27 CONFIGURE_ENV+=         LINKS_CMD=${WRKDIR}/nonexecutable
28
29 # Work around an ICE on sparc64-1.6
30 CONFIGURE_ENV+=         F77=${FALSE:Q}
31
32 DEINSTALL_FILE=         ${WRKDIR}/DEINSTALL
33 INSTALL_FILE=           ${WRKDIR}/INSTALL
34 FILES_SUBST+=           LOCALBASE=${LOCALBASE:Q}
35 FILES_SUBST+=           X11BASE=${X11BASE:Q}
36 FILES_SUBST+=           CP=${CP:Q}
37 FILES_SUBST+=           CMP=${CMP:Q}
38 FILES_SUBST+=           ECHO=${ECHO:Q}
39 FILES_SUBST+=           GREP=${GREP:Q}
40 FILES_SUBST+=           LN=${LN:Q}
41 FILES_SUBST+=           MV=${MV:Q}
42 FILES_SUBST+=           RM=${RM:Q}
43 FILES_SUBST+=           RMDIR=${RMDIR:Q}
44 FILES_SUBST+=           TRUE=${TRUE:Q}
45
46 post-extract:
47         cd ${WRKSRC}/lib/config; ${MV} -f host.def LessTif.def
48
49 # Change references to {Core,Object,Shell}.3 to X{Core,Object,Shell}.3 to
50 # avoid manpage conflicts with other packages.
51 #
52 post-patch:
53         cd ${WRKSRC}/doc/lessdox/widgets;                               \
54         for name in Core Object Shell; do                               \
55                 ${MV} -f $${name}.3 X$${name}.3;                        \
56                 files=`${GREP} -l "[[:blank:]]$${name} (3)" *.3`;       \
57                 for file in $${files}; do                               \
58                         ${MV} -f $${file} $${file}.presubst;            \
59                         ${SED} -e "s|\([[:blank:]]\)$${name} (3)|\1X$${name} (3)|g" \
60                                 $${file}.presubst > $${file};           \
61                         ${RM} -f $${file}.presubst;                     \
62                 done;                                                   \
63                 ${MV} -f Makefile.in Makefile.in.presubst;              \
64                 ${SED} -e "s|\([[:space:]]\)$${name}.3|\1X$${name}.3|g" \
65                         Makefile.in.presubst > Makefile.in;             \
66                 ${RM} -f Makefile.in.presubst;                          \
67         done
68
69 .include "../../fonts/fontconfig/buildlink3.mk"
70 .include "../../x11/libXext/buildlink3.mk"
71 .include "../../x11/libXp/buildlink3.mk"
72 .include "../../x11/libXrender/buildlink3.mk"
73 .include "../../x11/libXt/buildlink3.mk"
74 .include "../../x11/xextproto/buildlink3.mk"
75 .include "../../mk/bsd.pkg.mk"