aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-01-07 22:06:56 +0800
committerlioux <lioux@FreeBSD.org>2001-01-07 22:06:56 +0800
commit7d2a2d5c945500a8eb651008cb74e115aafa2275 (patch)
tree1ed37e2136e4dd53ab707ccff770803d928d53ad /audio
parentbd9af3d146ea8b3e5b67a3360d7195a64c7b46b7 (diff)
downloadfreebsd-ports-gnome-7d2a2d5c945500a8eb651008cb74e115aafa2275.tar.gz
freebsd-ports-gnome-7d2a2d5c945500a8eb651008cb74e115aafa2275.tar.zst
freebsd-ports-gnome-7d2a2d5c945500a8eb651008cb74e115aafa2275.zip
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')
-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 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