- rename shared lib and create a symbolic link

Submitted by:	osa
This commit is contained in:
Dirk Meyer 2003-12-11 04:39:56 +00:00
parent ed3508b899
commit 60b5076712
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95585
2 changed files with 6 additions and 5 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= metakit PORTNAME= metakit
PORTVERSION= 2.4.9.2 PORTVERSION= 2.4.9.2
PORTREVISION= 1
CATEGORIES= databases CATEGORIES= databases
MASTER_SITES= http://www.equi4.com/pub/mk/ MASTER_SITES= http://www.equi4.com/pub/mk/
DISTNAME= ${PORTNAME}-${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION}
@ -86,10 +87,8 @@ pre-patch:
.endif .endif
post-install: post-install:
.if defined(METAKIT_WITH_PYTHON) ${MV} ${PREFIX}/lib/libmk4.so ${PREFIX}/lib/libmk4.so.0
.endif @${LN} -sf libmk4.so.0 ${PREFIX}/lib/libmk4.so
post-install:
.if defined(METAKIT_WITH_PYTHON) .if defined(METAKIT_WITH_PYTHON)
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4py.a ${PREFIX}/lib @${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4py.a ${PREFIX}/lib
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4py.so ${PREFIX}/lib @${INSTALL_PROGRAM} ${WRKSRC}/.libs/libmk4py.so ${PREFIX}/lib

View file

@ -3,8 +3,10 @@ include/mk4.inl
include/mk4str.h include/mk4str.h
include/mk4str.inl include/mk4str.inl
lib/libmk4.a lib/libmk4.a
lib/libmk4.so
lib/libmk4.la lib/libmk4.la
lib/libmk4.so.0
@exec ln -s lib/libmk4.so.0 %D/lib/libmk4.so
@unexec rm -f %D/lib/libmk4.so
%%WITH_PYTHON%%lib/libmk4py.a %%WITH_PYTHON%%lib/libmk4py.a
%%WITH_PYTHON%%lib/libmk4py.so %%WITH_PYTHON%%lib/libmk4py.so
%%WITH_PYTHON%%lib/%%PYTHON_VERSION%%/site-packages/Mk4py.so %%WITH_PYTHON%%lib/%%PYTHON_VERSION%%/site-packages/Mk4py.so