freebsd-ports/print/libpaper/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

44 lines
1.2 KiB
Makefile

# New ports collection makefile for: libpaper
# Date created: Do 16 Nov 2003 20:00:00 CET
# Whom: lofi@freebsd.org
#
# $FreeBSD$
#
PORTNAME= libpaper
PORTVERSION= 1.1.21
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR= pool/main/libp/libpaper
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= lofi@freebsd.org
COMMENT= A library providing routines for paper size management
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --build=${CONFIGURE_TARGET}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= paperconf.1
MAN3= defaultpapername.3 defaultpapersizefile.3 paperdone.3 paperfirst.3 \
paperinfo.3 paperinit.3 paperlast.3 papernext.3 paperprev.3 \
paperpsheight.3 paperpsname.3 paperpswidth.3 paperwithsize.3 \
systempapername.3 systempapersizefile.3
MAN5= papersize.5
MAN8= paperconfig.8
pre-configure:
@${TOUCH} ${WRKSRC}/config.sub
@${REINPLACE_CMD} -E -e 's|(#!).*/bin/bash|\1/bin/sh|g' \
-e 's|==|=|g' \
${WRKSRC}/src/paperconfig.in
post-configure:
@${REINPLACE_CMD} -e 's|$${prefix}|${PREFIX}|g' ${WRKSRC}/config.h \
${WRKSRC}/src/paperconfig
.include <bsd.port.mk>