diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-01-07 14:06:56 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-01-07 14:06:56 +0000 |
commit | 94e97f31226463eda41f687dd0db90d7338c1ed6 (patch) | |
tree | 5b3a1d53ac306f3e79a875d22bd85210f3733e91 | |
parent | 76f676a1dea4b73e5969785b5bc5787969063372 (diff) | |
download | ports-94e97f31226463eda41f687dd0db90d7338c1ed6.tar.gz ports-94e97f31226463eda41f687dd0db90d7338c1ed6.zip |
Notes
-rw-r--r-- | audio/lame/Makefile | 25 | ||||
-rw-r--r-- | audio/lame/files/patch-aa | 26 | ||||
-rw-r--r-- | audio/lame/pkg-plist | 4 |
3 files changed, 25 insertions, 30 deletions
diff --git a/audio/lame/Makefile b/audio/lame/Makefile index 631a2267cea4..c4970ed078ef 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> diff --git a/audio/lame/files/patch-aa b/audio/lame/files/patch-aa deleted file mode 100644 index e04f0d348fed..000000000000 --- a/audio/lame/files/patch-aa +++ /dev/null @@ -1,26 +0,0 @@ ---- Makefile.orig Sat Jul 1 15:31:35 2000 -+++ Makefile Sat Jul 1 15:36:07 2000 -@@ -11,8 +11,8 @@ - - # defaults: - PGM = lame --CC = gcc --CC_OPTS = -O -+CC ?= gcc -+CC_OPTS = ${CFLAGS} - GTK = - GTKLIBS = - SNDLIB = -DLAMESNDFILE -@@ -136,8 +136,10 @@ - ########################################################################## - ifeq ($(UNAME),FreeBSD) - # remove if you do not have GTK or do not want the GTK frame analyzer -- GTK = -DHAVEGTK `gtk12-config --cflags` -- GTKLIBS = `gtk12-config --libs` -+ifdef HAVE_GTK -+ GTK = -DHAVEGTK `$(GTK_CONFIG) --cflags` -+ GTKLIBS = `$(GTK_CONFIG) --libs` -+endif - # Comment out next 2 lines if you want to remove VBR histogram capability - BRHIST_SWITCH = -DBRHIST - LIBTERMCAP = -lncurses diff --git a/audio/lame/pkg-plist b/audio/lame/pkg-plist index 247cb31793af..6e9e6e8fe35c 100644 --- a/audio/lame/pkg-plist +++ b/audio/lame/pkg-plist @@ -1,4 +1,8 @@ bin/lame +include/lame.h +lib/libmp3lame.a +lib/libmp3lame.so +lib/libmp3lame.so.%%LIB_VERSION%% share/doc/lame/contributors.html share/doc/lame/examples.html share/doc/lame/history.html |