INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.89 2006/03/14 01:14:35 jlam Exp $
|
|
|
|
DISTNAME= lesstif-0.94.4
|
|
PKGREVISION= 2
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lesstif/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.lesstif.org/
|
|
COMMENT= API compatible clone of the OSF/Motif toolkit
|
|
|
|
CONFLICTS+= openmotif-[0-9]*
|
|
|
|
USE_TOOLS+= gmake
|
|
USE_LIBTOOL= yes
|
|
USE_X11BASE= yes
|
|
GNU_CONFIGURE= yes
|
|
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
|
|
|
|
# Work around an ICE on sparc64-1.6
|
|
CONFIGURE_ENV+= F77=${FALSE:Q}
|
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
|
FILES_SUBST+= LOCALBASE=${LOCALBASE:Q}
|
|
FILES_SUBST+= X11BASE=${X11BASE:Q}
|
|
FILES_SUBST+= CP=${CP:Q}
|
|
FILES_SUBST+= CMP=${CMP:Q}
|
|
FILES_SUBST+= ECHO=${ECHO:Q}
|
|
FILES_SUBST+= GREP=${GREP:Q}
|
|
FILES_SUBST+= LN=${LN:Q}
|
|
FILES_SUBST+= MV=${MV:Q}
|
|
FILES_SUBST+= RM=${RM:Q}
|
|
FILES_SUBST+= RMDIR=${RMDIR:Q}
|
|
FILES_SUBST+= TRUE=${TRUE:Q}
|
|
|
|
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
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../x11/Xrender/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|