summaryrefslogtreecommitdiffstats
path: root/audio/lame
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-01-07 14:06:56 +0000
committerlioux <lioux@FreeBSD.org>2001-01-07 14:06:56 +0000
commit7d2a2d5c945500a8eb651008cb74e115aafa2275 (patch)
tree1ed37e2136e4dd53ab707ccff770803d928d53ad /audio/lame
parentbd9af3d146ea8b3e5b67a3360d7195a64c7b46b7 (diff)
downloadFreeBSD-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')
-rw-r--r--audio/lame/Makefile25
-rw-r--r--audio/lame/files/patch-aa26
-rw-r--r--audio/lame/pkg-plist4
3 files changed, 25 insertions, 30 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>
diff --git a/audio/lame/files/patch-aa b/audio/lame/files/patch-aa
deleted file mode 100644
index e04f0d3..0000000
--- 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 247cb31..6e9e6e8 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
OpenPOWER on IntegriCloud