Fix building problems on aout system

This commit is contained in:
Scott Mace 1998-09-16 14:08:49 +00:00
parent fea283c192
commit 6e7a1bff7a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13177
2 changed files with 18 additions and 16 deletions

View file

@ -4,7 +4,7 @@
# Date created: 2 Feb 1997
# Whom: ache
#
# $Id: Makefile,v 1.3 1997/07/17 15:12:58 max Exp $
# $Id: Makefile,v 1.4 1998/09/14 22:33:23 smace Exp $
#
PKGNAME= rsaref-2.0
@ -25,20 +25,11 @@ pre-configure:
cp md2.h _md2.h && \
cp md5.h _md5.h
do-install:
cd ${WRKSRC} && \
${INSTALL_DATA} rsa.h _des.h _md2.h _md5.h rsaref.h global.h \
${PREFIX}/include
cd ${WRKSRC} && \
${INSTALL_DATA} librsaref.a librsaref.so.2 \
${PREFIX}/lib
(cd ${PREFIX}/lib; ln -sf librsaref.so.2 librsaref.so)
install -d -m 555 ${PREFIX}/share/doc/rsaref
cd ${WRKDIR}/doc && \
${INSTALL_DATA} info.txt rsaref.txt \
${PREFIX}/share/doc/rsaref
post-install:
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
install -d -m 555 ${PREFIX}/share/doc/rsaref
cd ${WRKDIR}/doc && ${INSTALL_DATA} info.txt rsaref.txt \
${PREFIX}/share/doc/rsaref
.include <bsd.port.mk>

View file

@ -8,7 +8,11 @@ LIB= ar
${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
RSAREFLIB=librsaref.a
.if ${PORTOBJFORMAT} == elf
SORSAREFLIB=librsaref.so.2
.else
SORSAREFLIB=librsaref.so.2.0
.endif
all: ${RSAREFLIB} ${SORSAREFLIB}
@ -21,10 +25,17 @@ $(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\
$(SORSAREFLIB) : desc.$(SO) digit.$(SO) md2c.$(SO) md5c.$(SO) nn.$(SO) prime.$(SO)\
rsa.$(SO) r_encode.$(SO) r_dh.$(SO) r_enhanc.$(SO) r_keygen.$(SO) r_random.$(SO)\
r_stdlib.$(SO)
.if defined(PORTOBJFORMAT) && ${PORTOBJFORMAT} == elf
.if ${PORTOBJFORMAT} == elf
${CC} -o $@ -shared -Wl,-soname,$@ $>
.else
ld -Bshareable -x -o $@ $>
.endif
install:
install -c -m 444 -o bin -g bin rsa.h _des.h _md2.h _md5.h rsaref.h global.h ${PREFIX}/include
.if ${PORTOBJFORMAT} == elf
install -c -m 644 -o bin -g bin librsaref.a librsaref.so.2 ${PREFIX}/lib
(cd ${PREFIX}/lib; ln -sf librsaref.so.2 librsaref.so)
.else
install -c -m 644 -o bin -g bin librsaref.a librsaref.so.2.0 ${PREFIX}/lib
.endif