2000-07-07 14:02:31 +00:00
|
|
|
# New ports collection makefile for: libtai
|
|
|
|
# Date created: 15 June 2000
|
|
|
|
# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libtai
|
|
|
|
PORTVERSION= 0.60
|
2002-08-20 16:42:35 +00:00
|
|
|
PORTREVISION= 1
|
2000-07-07 14:02:31 +00:00
|
|
|
CATEGORIES= devel
|
2001-02-22 17:22:39 +00:00
|
|
|
MASTER_SITES= http://cr.yp.to/libtai/ \
|
2002-09-20 14:06:11 +00:00
|
|
|
ftp://ftp.sunsite.auc.dk/disk1/qmail/ \
|
|
|
|
ftp://ftp.task.gda.pl/mirror/mirror.qmail.org/koobera/pub/software/
|
2000-07-07 14:02:31 +00:00
|
|
|
|
2000-10-03 05:12:49 +00:00
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= A library for storing and manipulating dates and times in second/attosecond
|
2000-07-07 14:02:31 +00:00
|
|
|
|
2002-08-20 16:42:35 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-02-08 01:14:05 +00:00
|
|
|
USE_SIZE= yes
|
2002-08-20 16:42:35 +00:00
|
|
|
|
2000-07-07 14:02:31 +00:00
|
|
|
ALL_TARGET= it
|
2001-02-14 04:12:50 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-07-07 14:02:31 +00:00
|
|
|
MAKE_ENV= LIBVERSION="${LIBVERSION}"
|
|
|
|
|
|
|
|
PLIST_SUB= LIBVERSION=${LIBVERSION} \
|
|
|
|
LIBFILE=${LIBFILE}
|
|
|
|
|
|
|
|
MAN3= caldate.3 caldate_mjd.3 caltime.3 caltime_tai.3 leapsecs.3 \
|
|
|
|
tai.3 tai_now.3 tai_pack.3 taia.3 taia_now.3 taia_pack.3
|
|
|
|
|
|
|
|
# port information
|
|
|
|
LIBVERSION= 1
|
|
|
|
LIBFILE= libtai
|
|
|
|
PROGRAM_FILES= easter nowutc leapsecs yearcal
|
2002-08-20 16:42:35 +00:00
|
|
|
HEADER_FILES= caldate.h caltime.h leapsecs.h tai.h taia.h uint64.h
|
2000-07-07 14:02:31 +00:00
|
|
|
|
|
|
|
do-configure:
|
2002-11-04 03:05:48 +00:00
|
|
|
@${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" \
|
2000-07-07 14:02:31 +00:00
|
|
|
${WRKSRC}/leapsecs.3 ${WRKSRC}/leapsecs_read.c
|
2002-01-29 10:16:28 +00:00
|
|
|
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
|
|
|
@${ECHO_CMD} "${CC} -s" > ${WRKSRC}/conf-ld
|
|
|
|
@${ECHO_CMD} -fPIC -DPIC > ${WRKSRC}/conf-ccso
|
2000-07-07 14:02:31 +00:00
|
|
|
|
2002-08-20 16:42:35 +00:00
|
|
|
pre-install:
|
|
|
|
# correct header locations inside files
|
|
|
|
.for file in ${HEADER_FILES}
|
|
|
|
@${REINPLACE_CMD} -E -e 's|(#include[[:space:]]+)"([^"]+)"|\1<libtai/\2>|' \
|
|
|
|
${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
2000-07-07 14:02:31 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL} ${COPY} -o ${SHAREOWN} -g ${BINGRP} -m 644 \
|
|
|
|
${WRKSRC}/leapsecs.dat ${PREFIX}/etc
|
|
|
|
.for i in ${MAN3}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${i} ${PREFIX}/man/man3
|
|
|
|
.endfor
|
|
|
|
.for i in ${PROGRAM_FILES}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${LIBFILE}.a ${PREFIX}/lib
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE}.so.${LIBVERSION} ${PREFIX}/lib
|
|
|
|
${LN} -sf ${PREFIX}/lib/${LIBFILE}.so.${LIBVERSION} \
|
|
|
|
${PREFIX}/lib/${LIBFILE}.so
|
2002-08-20 16:42:35 +00:00
|
|
|
@${MKDIR} ${PREFIX}/include/${PORTNAME}
|
|
|
|
.for file in ${HEADER_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/${PORTNAME}
|
|
|
|
.endfor
|
2000-07-07 14:02:31 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|