blob: 5da3749d965379950b98236e16adf6e7e7ddfee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.9 2005/10/31 11:25:14 tonio Exp $
#
DISTNAME= chef.l
PKGNAME= chef-19920415
CATEGORIES= converters
MASTER_SITES= http://www.evolutionzone.com/kulturezone/c-g.writing/
EXTRACT_SUFX= .txt
MAINTAINER= tech-pkg@NetBSD.org
#HOMEPAGE= none
COMMENT= Convert from English to (mock) Swedish - Bork Bork Bork!
PKG_INSTALLATION_TYPES= overwrite pkgviews
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
MAKE_ENV+= BINDIR=${PREFIX}/bin BINOWN=${BINOWN} BINGRP=${BINGRP}
INSTALLATION_DIRS= bin
do-extract:
# deal with the dos encoding of the file
${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKDIR}/chef.l.tmp
cd ${WRKSRC} && ${TR} '\015' '\n' < chef.l.tmp > chef.l
cd ${WRKSRC} && ${RM} chef.l.tmp
do-build:
cd ${WRKSRC} && ${LEX} chef.l
${LINK.c} -o ${WRKSRC}/chef ${WRKSRC}/lex.yy.c -ll
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/chef ${PREFIX}/bin/
.include "../../mk/bsd.pkg.mk"
|