aboutsummaryrefslogtreecommitdiff
path: root/audio/lame
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-05 06:47:41 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-05 06:47:41 +0000
commit3707e5b7408ecadb0bda141dd82ec9bbca5d0267 (patch)
treef1d64a9e396a97d08c7dc5b7eed24efc11a3fa10 /audio/lame
parent99290b0d61db9bcb3c960f5507a8ccb0126a0cf9 (diff)
downloadports-3707e5b7408ecadb0bda141dd82ec9bbca5d0267.tar.gz
ports-3707e5b7408ecadb0bda141dd82ec9bbca5d0267.zip
Notes
Diffstat (limited to 'audio/lame')
-rw-r--r--audio/lame/Makefile26
-rw-r--r--audio/lame/files/patch-aa2
2 files changed, 10 insertions, 18 deletions
diff --git a/audio/lame/Makefile b/audio/lame/Makefile
index d057d7209b25..a3f3762a601e 100644
--- a/audio/lame/Makefile
+++ b/audio/lame/Makefile
@@ -16,35 +16,27 @@ PATCHFILES= lame${PORTVERSION}.patch.gz
MAINTAINER= yoshiaki@kt.rim.or.jp
-.if !defined(WITHOUT_X11)
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-.endif
-
PATCH_DIST_STRIP = -p1
WRKSRC= ${WRKDIR}/dist10/lsf/encoder/
-USE_GMAKE= YES
-MAKE_ENV= WITHOUT_X11=${WITHOUT_X11}
+USE_GMAKE= yes
+WANT_GTK= yes
ALL_TARGET= lame
RESTRICTED= Condition is not clear
-.if !defined(WITHOUT_X11)
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}"
-.endif
-
MAN1= lame.1
-do-install:
- @( cd ${WRKSRC}; ${INSTALL_PROGRAM} lame ${PREFIX}/bin )
- @( cd ${WRKSRC}; ${INSTALL_MAN} doc/man/lame.1 \
- ${PREFIX}/man/man1 )
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GTK)
+USE_GTK= yes
+.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/lame
- @${INSTALL_MAN} ${WRKSRC}/doc/html/*.html \
+ ${INSTALL_DATA} ${WRKSRC}/doc/html/*.html \
${WRKSRC}/doc/html/*.css ${PREFIX}/share/doc/lame
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/lame/files/patch-aa b/audio/lame/files/patch-aa
index 47cbc6de3f76..e04f0d348fed 100644
--- a/audio/lame/files/patch-aa
+++ b/audio/lame/files/patch-aa
@@ -17,7 +17,7 @@
# remove if you do not have GTK or do not want the GTK frame analyzer
- GTK = -DHAVEGTK `gtk12-config --cflags`
- GTKLIBS = `gtk12-config --libs`
-+ifndef WITHOUT_X11
++ifdef HAVE_GTK
+ GTK = -DHAVEGTK `$(GTK_CONFIG) --cflags`
+ GTKLIBS = `$(GTK_CONFIG) --libs`
+endif