• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/LPRng/DISTRIBUTIONS/FreeBSD-4.ports.sysutils.LPRng/
1# New ports collection makefile for:	LPRng
2# Date created:		2 Apr 1997
3# Whom:			desmo@bandwidth.org
4#
5# $FreeBSD: ports/sysutils/LPRng/Makefile,v 1.26 2003/07/10 13:31:18 osa Exp $
6#
7
8PORTNAME=LPRng
9PORTVERSION=3.8.22
10CATEGORIES=	sysutils print
11MASTER_SITES=	ftp://ftp.lprng.com/pub/%SUBDIR%/ \
12		ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \
13		ftp://ftp.cs.umn.edu/pub/%SUBDIR%/ \
14		ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/%SUBDIR%/ \
15		ftp://ftp.uni-paderborn.de/pub/unix/printer/%SUBDIR%/
16MASTER_SITE_SUBDIR=	LPRng/LPRng
17EXTRACT_SUFX=	.tgz
18
19MAINTAINER=	papowell@astart.com
20COMMENT=	An Enhanced Printer Spooler
21
22GNU_CONFIGURE=	yes
23#USE_LIBTOOL=	yes
24INSTALLS_SHLIB=	yes
25
26CONFIGURE_ARGS=	\
27		--with-filterdir=${PREFIX}/libexec/filters \
28		--with-filter_path="${PREFIX}/bin:/bin:/usr/bin:${PREFIX}/sbin:/sbin:/usr/sbin" \
29		LDFLAGS="-L${LOCALBASE}/lib" \
30		CPPFLAGS="-I${LOCALBASE}/include" \
31		--with-ld_library_path="${PREFIX}/lib:/lib:/usr/lib:/${LOCALBASE}/lib"
32.if defined(PREFIX)
33  CONFIGURE_ARGS+=  --prefix="${PREFIX}"
34.endif
35.if defined(SYSCONFDIR)
36  CONFIGURE_ARGS+=  --sysconfdir="${SYSCONFDIR}"
37.endif
38
39MAN1=cancel.1 lp.1 lpbanner.1 lpf.1 lpq.1 lpr.1 lprm.1 lprng_certs.1 lprng_index_certs.1 lpstat.1 monitor.1 pclbanner.1 psbanner.1
40MAN5=lpd.conf.5 lpd.perms.5 printcap.5
41MAN8=checkpc.8 lpc.8 lpd.8
42
43pre-everything::
44	@${ECHO_MSG} "If you want to replace the default printing system with LPRng, use:"
45	@${ECHO_MSG} "  make PREFIX=/usr SYSCONFDIR=/etc clean all install"
46	@${ECHO_MSG} " OR"
47	@${ECHO_MSG} "  make CONFIGURE_SCRIPT=STANDARD_configuration clean all install"
48	@if [ "${PREFIX}" = "/usr" -a ! -d /usr/man ] ; then \
49		${ECHO_MSG} "The man pages will be installed in /usr/man." ; \
50		${ECHO_MSG} "You should make a symbolic link /usr/share/man from /usr/man"; \
51		${ECHO_MSG} "   ln -s /usr/share/man /usr/man"; \
52		${ECHO_MSG} "If you do not, you will retain the old FreeBSD man pages."; \
53		${ECHO_MSG} "See the hier(7) man page for details of the FreeBSD file system"; \
54		${ECHO_MSG} "layout.  Configure is not equipped to determine the location of"; \
55		${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \
56	fi
57
58post-install:
59.if !defined(NOPORTSDOCS)
60	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
61	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}/Reference
62	@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}/PrintingCookbook
63.for ext in html pdf ppt ps txt gif jpg png
64	if test -n "VERBOSE_INSTALL"; then set -x; fi; \
65	src=${WRKSRC}/DOCS; \
66	for i in `ls $${src} | ${GREP} "\.${ext}$$"`; \
67		do ${INSTALL_DATA} $${src}/$$i ${DOCSDIR}/Reference; done; \
68	src=${WRKSRC}/PrintingCookbook/HTML; \
69	for i in `ls $${src} | ${GREP} "\.${ext}$$"`; \
70		do ${INSTALL_DATA} $${src}/$$i ${DOCSDIR}/PrintingCookbook; done;
71.endfor
72	if test -n "VERBOSE_INSTALL"; then set -x; fi; \
73		${INSTALL_DATA} ${WRKSRC}/PrintingCookbook/PDF/*.pdf ${DOCSDIR}/PrintingCookbook; done
74.endif
75	@${SED} -e "s!DOCSDIR!${DOCSDIR}/!" ${PKGMESSAGE}
76
77.include <bsd.port.mk>
78