diff options
author | lioux <lioux@FreeBSD.org> | 2001-01-07 14:06:56 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-01-07 14:06:56 +0000 |
commit | 7d2a2d5c945500a8eb651008cb74e115aafa2275 (patch) | |
tree | 1ed37e2136e4dd53ab707ccff770803d928d53ad /audio/lame/Makefile | |
parent | bd9af3d146ea8b3e5b67a3360d7195a64c7b46b7 (diff) | |
download | FreeBSD-ports-7d2a2d5c945500a8eb651008cb74e115aafa2275.zip FreeBSD-ports-7d2a2d5c945500a8eb651008cb74e115aafa2275.tar.gz |
1) Add shared library build support. A Good Thing(TM)
2) Install both shared and static library. Numbering .1 according
to handbook rules for newly added libraries. Also, install header
file.
3) PORTREVISION bump.
4) Add provisions for easier update of library version:
- internal Makefile variable
- patch template
- PLIST_SUB
5) patch-aa superseeded by new patch template
Approved by: maintainer
Diffstat (limited to 'audio/lame/Makefile')
-rw-r--r-- | audio/lame/Makefile | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/audio/lame/Makefile b/audio/lame/Makefile index 631a226..c4970ed 100644 --- a/audio/lame/Makefile +++ b/audio/lame/Makefile @@ -7,15 +7,21 @@ PORTNAME= lame PORTVERSION= 3.70 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://lame.sourceforge.net/download/beta/ DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= yoshiaki@kt.rim.or.jp +EXTRA_PATCHES= ${WRKDIR}/patch-lib_version USE_GMAKE= yes WANT_GTK= yes ALL_TARGET= lame +INSTALLS_SHLIB= yes +PLIST_SUB= LIB_VERSION="${LIB_VERSION}" + +LIB_VERSION= 1 MAN1= lame.1 @@ -25,13 +31,24 @@ MAN1= lame.1 USE_GTK= yes .endif +pre-patch: + @${SED} "s!%%LIB_VERSION%%!${LIB_VERSION}!g" \ + ${FILESDIR}/template-extra-patch-lib_version \ + > ${WRKDIR}/patch-lib_version + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/lame ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/man/lame.1 ${PREFIX}/man/man1 + @${INSTALL_DATA} ${WRKSRC}/libmp3lame.a ${PREFIX}/lib + @${INSTALL_DATA} ${WRKSRC}/libmp3lame.so.${LIB_VERSION} ${PREFIX}/lib + @${INSTALL_DATA} ${WRKSRC}/lame.h ${PREFIX}/include + @${INSTALL_PROGRAM} ${WRKSRC}/lame ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/doc/man/lame.1 ${PREFIX}/man/man1 .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/lame - ${INSTALL_DATA} ${WRKSRC}/doc/html/*.html \ - ${WRKSRC}/doc/html/*.css ${PREFIX}/share/doc/lame + @${INSTALL_DATA} ${WRKSRC}/doc/html/*.html \ + ${WRKSRC}/doc/html/*.css ${PREFIX}/share/doc/lame .endif +post-install: + @${LN} -sf libmp3lame.so.${LIB_VERSION} ${PREFIX}/lib/libmp3lame.so + .include <bsd.port.post.mk> |