diff options
author | lioux <lioux@FreeBSD.org> | 2002-08-21 00:42:35 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-08-21 00:42:35 +0800 |
commit | 05456eadce9e59dd4b3c1af285618094a2ac8588 (patch) | |
tree | 3859ab3f22d2a3c5acaed8099340a5d80ad8b3fb /devel/libtai | |
parent | 04424c7233d08d3d7ae922c34f9b7a4dbe2fc6e8 (diff) | |
download | freebsd-ports-gnome-05456eadce9e59dd4b3c1af285618094a2ac8588.tar.gz freebsd-ports-gnome-05456eadce9e59dd4b3c1af285618094a2ac8588.tar.zst freebsd-ports-gnome-05456eadce9e59dd4b3c1af285618094a2ac8588.zip |
o Install header files so that this library is actually usable
o Bump PORTREVISION
Prompted by: tobez
Diffstat (limited to 'devel/libtai')
-rw-r--r-- | devel/libtai/Makefile | 15 | ||||
-rw-r--r-- | devel/libtai/pkg-plist | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/devel/libtai/Makefile b/devel/libtai/Makefile index bd2489b3468d..392e94e8c60c 100644 --- a/devel/libtai/Makefile +++ b/devel/libtai/Makefile @@ -7,6 +7,7 @@ PORTNAME= libtai PORTVERSION= 0.60 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://cr.yp.to/libtai/ \ ftp://mirror.pipex.net/pub/qmail/ \ @@ -14,6 +15,8 @@ MASTER_SITES= http://cr.yp.to/libtai/ \ MAINTAINER= lioux@FreeBSD.org +USE_REINPLACE= yes + ALL_TARGET= it INSTALLS_SHLIB= yes MAKE_ENV= LIBVERSION="${LIBVERSION}" @@ -28,6 +31,7 @@ MAN3= caldate.3 caldate_mjd.3 caltime.3 caltime_tai.3 leapsecs.3 \ LIBVERSION= 1 LIBFILE= libtai PROGRAM_FILES= easter nowutc leapsecs yearcal +HEADER_FILES= caldate.h caltime.h leapsecs.h tai.h taia.h uint64.h do-configure: @${PERL} -pi -e "s!%%PREFIX%%!${PREFIX}!g" \ @@ -36,6 +40,13 @@ do-configure: @${ECHO_CMD} "${CC} -s" > ${WRKSRC}/conf-ld @${ECHO_CMD} -fPIC -DPIC > ${WRKSRC}/conf-ccso +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 + do-install: ${INSTALL} ${COPY} -o ${SHAREOWN} -g ${BINGRP} -m 644 \ ${WRKSRC}/leapsecs.dat ${PREFIX}/etc @@ -49,5 +60,9 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE}.so.${LIBVERSION} ${PREFIX}/lib ${LN} -sf ${PREFIX}/lib/${LIBFILE}.so.${LIBVERSION} \ ${PREFIX}/lib/${LIBFILE}.so + @${MKDIR} ${PREFIX}/include/${PORTNAME} +.for file in ${HEADER_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/${PORTNAME} +.endfor .include <bsd.port.mk> diff --git a/devel/libtai/pkg-plist b/devel/libtai/pkg-plist index bc88f04f94ee..c2be98763439 100644 --- a/devel/libtai/pkg-plist +++ b/devel/libtai/pkg-plist @@ -2,6 +2,12 @@ bin/easter bin/leapsecs bin/nowutc bin/yearcal +include/libtai/caldate.h +include/libtai/caltime.h +include/libtai/leapsecs.h +include/libtai/tai.h +include/libtai/taia.h +include/libtai/uint64.h lib/%%LIBFILE%%.a lib/%%LIBFILE%%.so lib/%%LIBFILE%%.so.%%LIBVERSION%% |