2000-02-01 02:41:59 -05:00
|
|
|
# New ports collection Makefile for: cook
|
|
|
|
# Date created: 31 January 2000
|
|
|
|
# Whom: jasone
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 17:30:15 -04:00
|
|
|
PORTNAME= cook
|
2000-10-27 17:12:59 -04:00
|
|
|
PORTVERSION= 2.16
|
2000-11-06 21:26:18 -05:00
|
|
|
PORTREVISION= 1
|
2000-02-01 02:41:59 -05:00
|
|
|
CATEGORIES= devel
|
2000-10-27 17:12:59 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE} http://www.canb.auug.org.au/~millerp/cook/
|
2000-02-01 02:41:59 -05:00
|
|
|
MASTER_SITE_SUBDIR= devel/make
|
|
|
|
|
|
|
|
MAINTAINER= jasone@freebsd.org
|
|
|
|
|
2000-11-06 17:10:26 -05:00
|
|
|
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
2000-02-01 02:41:59 -05:00
|
|
|
|
|
|
|
USE_AUTOCONF= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
MAN1= c_incl.1 cook.1 cook_bom.1 cook_lic.1 cookfp.1 cooktime.1 find_libs.1 \
|
|
|
|
make2cook.1 roffpp.1
|
|
|
|
MANPREFIX = ${PREFIX}/share/cook
|
|
|
|
MANLANG = "" en
|
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
|
|
|
strip_bins := c_incl cook cook_bom cookfp cooktime find_libs make2cook roffpp
|
|
|
|
|
|
|
|
# cook's configure.in is in the etc subdirectory. Move it to the main
|
|
|
|
# directory so that USE_AUTOCONF works.
|
|
|
|
post-patch:
|
|
|
|
@${MV} ${WRKSRC}/etc/configure.in ${WRKSRC}/
|
|
|
|
|
|
|
|
# Make sure that the whole directory tree exists.
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/cook/en/man1
|
|
|
|
${MKDIR} ${PREFIX}/lib/cook/en/LC_MESSAGES
|
|
|
|
|
2000-02-22 00:35:50 -05:00
|
|
|
# cook installs extra copies of the manpages in a directory that MANLANG can't
|
|
|
|
# cope with, so shuffle things around a bit.
|
2000-02-01 02:41:59 -05:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/cook/en/man1
|
|
|
|
@${MKDIR} ${PREFIX}/share/cook/man/en/man1
|
|
|
|
.for manpage in ${MAN1}
|
|
|
|
@${MV} ${PREFIX}/share/cook/en/man1/${manpage} \
|
|
|
|
${PREFIX}/share/cook/man/en/man1/
|
|
|
|
.endfor
|
|
|
|
@${TOUCH} ${PREFIX}/share/cook/en/man1/.not_empty
|
|
|
|
@${MKDIR} ${PREFIX}/share/cook/man/man1
|
|
|
|
.for manpage in ${MAN1}
|
|
|
|
@${MV} ${PREFIX}/man/man1/${manpage} ${PREFIX}/share/cook/man/man1/
|
|
|
|
.endfor
|
|
|
|
.for bin in ${strip_bins}
|
|
|
|
@strip ${PREFIX}/bin/${bin}
|
|
|
|
.endfor
|
|
|
|
@echo
|
2000-02-22 00:35:50 -05:00
|
|
|
@echo "Add ${PREFIX}/share/cook/man to your MANPATH in order to" \
|
2000-02-01 02:41:59 -05:00
|
|
|
"access the manual"
|
|
|
|
@echo "pages included with this port."
|
|
|
|
@echo
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|