2002-03-31 20:06:36 +02:00
|
|
|
# Ports collection makefile for: ifhp
|
|
|
|
# Date created: 10 Oct 2001
|
1999-11-01 05:07:46 +01:00
|
|
|
# Whom: papowell@astart.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-04-02 19:38:39 +02:00
|
|
|
PORTNAME= ifhp
|
|
|
|
PORTVERSION= 3.5.7
|
2003-07-10 15:23:03 +02:00
|
|
|
CATEGORIES= print
|
2002-03-31 20:06:36 +02:00
|
|
|
MASTER_SITES= ftp://ftp.lprng.com/pub/%SUBDIR%/ \
|
2002-04-02 19:38:39 +02:00
|
|
|
ftp://ftp.cise.ufl.edu/pub/mirrors/%SUBDIR%/ \
|
|
|
|
ftp://ftp.cs.umn.edu/pub/%SUBDIR%/ \
|
|
|
|
ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/%SUBDIR%/ \
|
|
|
|
ftp://ftp.uni-paderborn.de/pub/unix/printer/%SUBDIR%/
|
2003-07-10 15:23:03 +02:00
|
|
|
MASTER_SITE_SUBDIR= LPRng/ifhp
|
1999-11-01 05:07:46 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-07-10 15:23:03 +02:00
|
|
|
MAINTAINER= papowell@astart.com
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= IFHP - A highly configurable print filter for LPRng
|
2002-03-31 20:06:36 +02:00
|
|
|
|
2002-04-02 19:38:39 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
--with-ldopts="-L${LOCALBASE}/lib" \
|
|
|
|
--with-ccopts="-I${LOCALBASE}/include"
|
2002-03-31 20:06:36 +02:00
|
|
|
.if defined(PREFIX)
|
2004-01-28 06:44:55 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix="${PREFIX}"
|
2002-03-31 20:06:36 +02:00
|
|
|
.endif
|
|
|
|
.if defined(SYSCONFDIR)
|
2004-01-28 06:44:55 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir="${SYSCONFDIR}"
|
2002-03-31 20:06:36 +02:00
|
|
|
.endif
|
1999-11-01 05:07:46 +01:00
|
|
|
|
2003-07-10 15:23:03 +02:00
|
|
|
MAN8= ifhp.8 textps.8
|
1999-11-01 05:07:46 +01:00
|
|
|
|
2002-03-31 20:06:36 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "If you want to replace the default printing system with LPRng, use:"
|
|
|
|
@${ECHO_MSG} " make PREFIX=/usr SYSCONFDIR=/etc clean all install"
|
|
|
|
@if [ "${PREFIX}" = "/usr" -a ! -d /usr/man ] ; then \
|
|
|
|
${ECHO_MSG} "The man pages will be installed in /usr/man." ; \
|
|
|
|
${ECHO_MSG} "You should make a symbolic link /usr/share/man from /usr/man"; \
|
|
|
|
${ECHO_MSG} " ln -s /usr/share/man /usr/man"; \
|
|
|
|
${ECHO_MSG} "If you do not, you will retain the old FreeBSD man pages."; \
|
|
|
|
${ECHO_MSG} "See the hier(7) man page for details of the FreeBSD file system"; \
|
|
|
|
${ECHO_MSG} "layout. Configure is not equipped to determine the location of"; \
|
|
|
|
${ECHO_MSG} 'man pages and defaults to $${PREFIX}/man, which is incorrect for FreeBSD.'; \
|
|
|
|
fi
|
|
|
|
@${ECHO_MSG} "Configuring with '${CONFIGURE_ARGS}'"
|
1999-11-01 05:07:46 +01:00
|
|
|
|
|
|
|
post-install:
|
2003-07-10 15:23:03 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-03-31 20:06:36 +02:00
|
|
|
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
|
|
|
|
.for ext in html pdf ppt ps txt gif jpg png
|
2004-01-23 06:28:50 +01:00
|
|
|
@for i in `${LS} ${WRKSRC}/HOWTO |${GREP} "\.${ext}$$"`; \
|
2002-03-31 20:06:36 +02:00
|
|
|
do ${INSTALL_DATA} ${WRKSRC}/HOWTO/$$i ${DOCSDIR}; done
|
|
|
|
.endfor
|
1999-11-01 05:07:46 +01:00
|
|
|
.endif
|
2002-04-02 19:38:39 +02:00
|
|
|
@${SED} -e "s!DOCSDIR!${DOCSDIR}/!" ${PKGMESSAGE}
|
1999-11-01 05:07:46 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|