openbsd-ports/sysutils/LPRng/Makefile

62 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.36 2008/01/04 17:48:37 espie Exp $
COMMENT= enhanced printer spooler
DISTNAME= LPRng-3.8.21
PKGNAME= ${DISTNAME}p2
CATEGORIES= sysutils print
2005-12-23 14:54:17 -05:00
SHARED_LIBS= lpr 0.0
MASTER_SITES= ftp://ftp.lprng.com/pub/LPRng/LPRng/ \
ftp://sunsite.ualberta.ca/pub/Mirror/LPRng/ \
ftp://ftp.mono.org/pub/LPRng/
EXTRACT_SUFX= .tgz
1997-11-14 19:04:24 -05:00
# GPL / Artistic
PERMIT_PACKAGE_CDROM= Yes
2000-03-23 00:40:40 -05:00
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
2000-03-23 00:40:40 -05:00
PERMIT_DISTFILES_FTP= Yes
2004-12-20 05:35:34 -05:00
WANTLIB= c crypto ssl util
2000-03-23 00:40:40 -05:00
2006-01-07 21:48:34 -05:00
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS= --with-sbindir=${PREFIX}/sbin \
--with-filterdir=${PREFIX}/libexec/filters \
--with-lpd_conf_path=${CONFDIR}/lpd.conf \
--with-lpd_perms_path=${CONFDIR}/lpd.perms \
--with-printcap_path=${SYSCONFDIR}/printcap \
--with-cppopts=-I${LOCALBASE}/include \
--with-ldopts=-L${LOCALBASE}/lib \
--disable-nls
2004-01-05 21:25:45 -05:00
CFLAGS+= -Dlog=mylog
FAKE_FLAGS= POSTINSTALL=NO prefix=${TRUEPREFIX} \
2006-07-17 18:07:25 -04:00
MAN=${TRUEPREFIX}/man \
FILTER_DIR=${TRUEPREFIX}/libexec/filters \
LPD_PERMS_PATH=${TRUEPREFIX}${CONFDIR}/lpd.perms \
LPD_CONF_PATH=${TRUEPREFIX}${CONFDIR}/lpd.conf \
PRINTCAP_PATH=${TRUEPREFIX}${CONFDIR}/printcap
CONFDIR= ${SYSCONFDIR}/LPRng
HTMLFILES= LPRng-HOWTO.html
SUBST_VARS= CONFDIR
# we don't trust LPRng's (pre|post)install scripts
pre-fake:
mkdir -p ${WRKINST}${CONFDIR}
cp ${WRKSRC}/lpd.conf ${WRKSRC}/lpd.perms ${WRKSRC}/printcap \
${WRKINST}${CONFDIR}
1997-11-14 19:04:24 -05:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/LPRng
${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
.for i in lpd.conf lpd.perms printcap
${INSTALL_DATA} ${WRKINST}${CONFDIR}/$i ${PREFIX}/share/examples/LPRng
.endfor
1997-11-14 19:04:24 -05:00
.include <bsd.port.mk>