daad0f3d6c
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.
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2006/03/14 01:14:32 jlam Exp $
|
|
|
|
.include "Makefile.common"
|
|
|
|
DISTNAME= foomatic-filters-${FOOMATIC_FILTERS_VERSION}
|
|
PKGREVISION= 3
|
|
MASTER_SITES= http://www.linuxprinting.org/download/foomatic/
|
|
|
|
MAINTAINER= jlam@pkgsrc.org
|
|
COMMENT= Spooler-independent PostScript printing filter
|
|
|
|
CONFLICTS+= foomatic-gswrapper-[0-9]
|
|
|
|
USE_TOOLS+= gmake gs:run perl:run
|
|
INSTALL_TARGET= install-bin install-man
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --disable-file-converter-check
|
|
|
|
EVAL_PREFIX+= CUPS_PREFIX=cups
|
|
CUPS_FILTERDIR= ${CUPS_PREFIX:Q}/libexec/cups/filter
|
|
CONFIGURE_ENV+= CUPS_FILTERS=${CUPS_FILTERDIR}
|
|
FILES_SUBST+= CUPS_FILTERDIR=${CUPS_FILTERDIR}
|
|
|
|
TEXTTOPS_DEPENDS= {a2ps,enscript,mpage}-[0-9]*
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.foomatic
|
|
PKG_SUPPORTED_OPTIONS= cups
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mcups)
|
|
DEPENDS+= {cups>=1.0,${TEXTTOPS_DEPENDS}}:../../print/cups
|
|
.else
|
|
DEPENDS+= ${TEXTTOPS_DEPENDS}:../../print/mpage
|
|
.endif
|
|
|
|
DEINSTALL_TEMPLATE+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL
|
|
INSTALL_TEMPLATE+= ${.CURDIR}/../../print/foomatic-filters-cups/INSTALL
|
|
|
|
EGDIR= ${PREFIX}/share/examples/foomatic
|
|
CONFDIR= ${PKG_SYSCONFDIR}/foomatic
|
|
|
|
REQD_DIRS= ${EGDIR}
|
|
OWN_DIRS= ${CONFDIR}
|
|
CONF_FILES= ${EGDIR}/filter.conf ${CONFDIR}/filter.conf
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/filter.conf ${EGDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|