mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
88c67cd38c
- Patch libtool so it uses the same library version specification as on Darwin, Linux and other systems. Given the version current:revision:age a library will be given the extension .so.major.age.revision with major equal to current-age. Before libtool would use .so.current on FreeBSD. - Patch libtoolize to remove two cases of umask 0 that caused libltdl files to be copied world writable (--ltdl option) - Let USES=libtool patch this new version correctly - Adjust all ports with USES=libtool:build and bump PORTREVISION on their dependent ports if a library version changed PR: 194068 Exp-run by: antoine Approved by: portmgr (antoine)
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bglibs
|
|
PORTVERSION= 1.106
|
|
PORTREVISION= 6
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://untroubled.org/${PORTNAME}/archive/ \
|
|
http://untroubled.org/${PORTNAME}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= One stop library package by Bruce Guenter
|
|
|
|
LICENSE= LGPL21
|
|
|
|
USES= libtool:build perl5
|
|
USE_PERL5= run
|
|
BGLIBS_INC= ${PREFIX}/include/${PORTNAME}
|
|
BGLIBS_LIB= ${PREFIX}/lib/${PORTNAME}
|
|
USE_LDCONFIG= ${BGLIBS_LIB}
|
|
|
|
DOCS= NEWS README TODO doc/html/*
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} '/main/s/^void/int/' ${WRKSRC}/sys/try*.c
|
|
|
|
do-configure:
|
|
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
|
${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld
|
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}" > ${WRKSRC}/conf-home
|
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/bin" > ${WRKSRC}/conf-bin
|
|
${ECHO_CMD} "${STAGEDIR}${PREFIX}/man" > ${WRKSRC}/conf-man
|
|
${ECHO_CMD} "${STAGEDIR}${BGLIBS_INC}" > ${WRKSRC}/conf-include
|
|
${ECHO_CMD} "${STAGEDIR}${BGLIBS_LIB}" > ${WRKSRC}/conf-lib
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
selftest: build
|
|
cd ${WRKSRC} && ${SH} selftests.sh
|
|
|
|
.include <bsd.port.mk>
|