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)
35 lines
1,008 B
Makefile
35 lines
1,008 B
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libnoise
|
|
DISTVERSION= 1.0.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20sources/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}src-${DISTVERSION}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Generates three-dimensional coherent noise
|
|
|
|
USES= dos2unix gmake libtool:build zip
|
|
DOS2UNIX_FILES= ${WRKSRC}/src/Makefile
|
|
USE_LDCONFIG= yes
|
|
CXXFLAGS+= -O3 -fomit-frame-pointer
|
|
WRKSRC= ${WRKDIR}/noise
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
${WRKSRC}/src/Makefile
|
|
@${REINPLACE_CMD} -e 's|include lib:|include:|g' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib
|
|
(cd ${WRKSRC}/src && ${LOCALBASE}/bin/libtool --mode=install \
|
|
${INSTALL_LIB} libnoise.la ${STAGEDIR}${PREFIX}/lib)
|
|
(cd ${WRKSRC}/include && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/noise)
|
|
${RM} -f ${STAGEDIR}${PREFIX}/include/noise/Makefile
|
|
|
|
.include <bsd.port.mk>
|