2003-04-01 07:35:38 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2003/04/01 12:35:38 avsm Exp $
|
2001-05-05 23:58:56 -04:00
|
|
|
|
|
|
|
COMMENT= "enhanced printer spooler"
|
2001-01-05 11:02:21 -05:00
|
|
|
|
2003-04-01 07:35:38 -05:00
|
|
|
DISTNAME= LPRng-3.8.20
|
2001-06-19 13:26:42 -04:00
|
|
|
CATEGORIES= sysutils print
|
2003-04-01 07:35:38 -05:00
|
|
|
MASTER_SITES= ftp://ftp.lprng.com/pub/LPRng/LPRng/ \
|
|
|
|
ftp://sunsite.ualberta.ca/pub/Mirror/LPRng/ \
|
|
|
|
ftp://ftp.mono.org/pub/LPRng/
|
2001-06-19 13:26:42 -04:00
|
|
|
EXTRACT_SUFX= .tgz
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2001-06-19 13:26:42 -04:00
|
|
|
MAINTAINER= Jeff Bachtel <jeff@cepheid.org>
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2001-01-05 11:02:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= No
|
2000-03-23 00:40:40 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2001-01-05 11:02:21 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= No
|
2000-03-23 00:40:40 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-04-01 07:35:38 -05:00
|
|
|
MODULES= gettext iconv
|
2001-06-19 13:26:42 -04:00
|
|
|
LIB_DEPENDS= gdbm.2::databases/gdbm
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS= --with-sbindir=${PREFIX}/sbin \
|
|
|
|
--with-filterdir=${PREFIX}/libexec/filters \
|
|
|
|
--with-lpd_conf_path=${SYSCONFDIR}/LPRng/lpd.conf \
|
|
|
|
--with-lpd_perms_path=${SYSCONFDIR}/LPRng/lpd.perms \
|
|
|
|
--with-printcap_path=${SYSCONFDIR}/printcap \
|
|
|
|
--with-cppopts=-I${LOCALBASE}/include \
|
2003-04-01 07:35:38 -05:00
|
|
|
--with-ldopts=-L${LOCALBASE}/lib \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
|
|
|
--with-libintl-prefix=${LOCALBASE}
|
2001-06-19 13:26:42 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS= DESTDIR=${WRKINST} POSTINSTALL=NO prefix=${TRUEPREFIX} \
|
|
|
|
FILTER_DIR=${TRUEPREFIX}/libexec/filters \
|
|
|
|
LPD_PERMS_PATH=${TRUEPREFIX}/etc/LPRng/lpd.perms \
|
|
|
|
LPD_CONF_PATH=${TRUEPREFIX}/etc/LPRng/lpd.conf \
|
|
|
|
PRINTCAP_PATH=${TRUEPREFIX}/etc/LPRng/printcap
|
|
|
|
|
2003-04-01 07:35:38 -05:00
|
|
|
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltconfig \
|
|
|
|
${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltmain_sh \
|
|
|
|
patch-*
|
|
|
|
|
|
|
|
HTMLFILES= LPRng-HOWTO.html
|
2001-06-19 13:26:42 -04:00
|
|
|
|
|
|
|
# we don't trust LPRng's (pre|post)install scripts
|
|
|
|
pre-fake:
|
|
|
|
mkdir -p ${WRKINST}/etc && mkdir -p ${WRKINST}/etc/LPRng; \
|
|
|
|
cp ${WRKSRC}/lpd.conf ${WRKSRC}/lpd.perms ${WRKINST}/etc/LPRng; \
|
2003-04-01 07:35:38 -05:00
|
|
|
cp ${WRKSRC}/printcap ${WRKINST}/etc/LPRng/printcap
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
post-install:
|
2001-03-22 17:06:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/LPRng
|
2001-06-19 13:26:42 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/LPRng
|
2000-06-09 18:37:38 -04:00
|
|
|
cd ${WRKSRC}/HOWTO && ${INSTALL_DATA} ${HTMLFILES} \
|
|
|
|
${PREFIX}/share/doc/LPRng
|
2001-06-19 13:26:42 -04:00
|
|
|
.for i in lpd.conf lpd.perms printcap
|
|
|
|
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/LPRng/$i ${PREFIX}/share/examples/LPRng
|
|
|
|
.endfor
|
1997-11-14 19:04:24 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|