blob: 16807fa41270f5c44a276b497fd1ee80c6e0027b (
plain) (
blame)
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
38
39
40
41
|
# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= biorythm
PORTVERSION= 1.1.4
CATEGORIES= games
MASTER_SITES= http://shh.thathost.com/pub-unix/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple biorhythm calculation program
LICENSE= ART10
LIB_DEPENDS= libshhmsg.so:devel/libshhmsg \
libshhopt.so:devel/libshhopt
PORTDOCS= ChangeLog README
PLIST_FILES= bin/${PORTNAME} man/man6/${PORTNAME}.6.gz
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/VERSION/s|[[:space:]]"$$|\\n"| ; \
/COMPILED_DATE/d' ${WRKSRC}/biorythm.c
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -I. -I${LOCALBASE}/include \
-DVERSION=\"${PORTVERSION}\" -D_ANSI_SOURCE *.c \
-o ${PORTNAME} -L${LOCALBASE}/lib -lshhmsg -lshhopt -lm
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ChangeLog README
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|