1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Submitted by: Joe Jih-Shien Lu <JoeLu@JoeLu.m8.ntu.edu.tw>

Make libtabe to enable shared mode.
This commit is contained in:
Foxfair Hu 1999-09-04 16:34:32 +00:00
parent ae82d418ff
commit b83413c027
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21236
2 changed files with 19 additions and 2 deletions

View File

@ -18,15 +18,26 @@ RUN_DEPENDS= ${PREFIX}/lib/libdb2.a:${PORTSDIR}/databases/db
WRKSRC= ${WRKDIR}/libtabe WRKSRC= ${WRKDIR}/libtabe
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \ CONFIGURE_ARGS= --prefix=${PREFIX} \
--includedir=${PREFIX}/include/tabe \ --includedir=${PREFIX}/include/tabe \
--with-dbinc=${PREFIX}/include/db2 \ --with-dbinc=${PREFIX}/include/db2 \
--with-dblib=${PREFIX}/lib --with-dblib=${PREFIX}/lib \
--enable-shared
.include <bsd.port.pre.mk>
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/tabe ${MKDIR} ${PREFIX}/share/doc/tabe
${CP} ${WRKSRC}/doc/libtabe.sgml ${PREFIX}/share/doc/tabe ${CP} ${WRKSRC}/doc/libtabe.sgml ${PREFIX}/share/doc/tabe
.endif .endif
.if ${PORTOBJFORMAT} == "elf"
${RM} ${PREFIX}/lib/libtabe.so ${PREFIX}/lib/libtabe.so.0
${MV} ${PREFIX}/lib/libtabe.so.0.1 ${PREFIX}/lib/libtabe.so.0
${LN} -s libtabe.so.0 ${PREFIX}/lib/libtabe.so
.else
${RM} ${PREFIX}/lib/libtabe.so.0
.endif
.include <bsd.port.mk> .include <bsd.port.post.mk>

View File

@ -5,7 +5,13 @@ bin/tsiyindump
include/tabe/bims.h include/tabe/bims.h
include/tabe/tabe.h include/tabe/tabe.h
lib/libbims.a lib/libbims.a
lib/libbims.so
lib/libbims.so.0.1
lib/libtabe.a lib/libtabe.a
lib/libtabe.so
lib/libtabe.so.0.1
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
share/doc/tabe/libtabe.sgml share/doc/tabe/libtabe.sgml
share/tabe/tsiyin/tsi.db share/tabe/tsiyin/tsi.db
share/tabe/tsiyin/yin.db share/tabe/tsiyin/yin.db