mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
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
This commit is contained in:
parent
76f676a1de
commit
94e97f3122
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36884
@ -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>
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user