mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
8e20ddc545
The comment said ``INSTALL_TARGET=install-strip isn't working'', that is, does not strip shared libraries as expected, while actually this is not a bug but intended behavior, per this quote from the INSTALL file: [...] Fortunately, the GNU autotools have built-in support for this functionality, all you need to do is to specify "make install-strip" instead of "make install". Note however that only executables are stripped, libraries are not touched [...]
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Marcel Prisi <marcel.prisi@virtua.ch>
|
|
|
|
PORTNAME= distcache
|
|
DISTVERSION= 1.5.1
|
|
CATEGORIES= security www
|
|
MASTER_SITES= SF/distcache/1.%20distcache-devel/1.5.1
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Distributed OpenSSL session caching tools
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= libtool ssl tar:bzip2
|
|
USE_RC_SUBR= dc_server
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared --with-ssl=${OPENSSLBASE}
|
|
INSTALL_TARGET= install-strip
|
|
|
|
SUB_LIST= NAME=dc_server
|
|
PORTDOCS= ANNOUNCE BUGS CHANGES FAQ README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
pre-configure: # yes, post-patch won't work in this case
|
|
@${GREP} -q 'define SSLeay_version' ${OPENSSLINC}/openssl/crypto.h \
|
|
&& ${REINPLACE_CMD} -e 's,SSLeay_version,OpenSSL_version,' \
|
|
${WRKSRC}/ssl/configure || :
|
|
|
|
post-install:
|
|
# Only executables are stripped with `install-strip', not the libraries
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
do-test:
|
|
@cd ${TEST_WRKSRC} && ${SH} devel/test.sh
|
|
|
|
.include <bsd.port.mk>
|