diff options
author | anders <anders@FreeBSD.org> | 2002-04-22 09:22:48 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2002-04-22 09:22:48 +0800 |
commit | 4f957221556cfd231381f0f27e387ccaf7e5cc9c (patch) | |
tree | 5ac88400272d29dc012c698968cfc2debcd62361 /audio | |
parent | d9d8d8e2b42ef2ba0cba9b2ddfb70b7ae88159f4 (diff) | |
download | freebsd-ports-gnome-4f957221556cfd231381f0f27e387ccaf7e5cc9c.tar.gz freebsd-ports-gnome-4f957221556cfd231381f0f27e387ccaf7e5cc9c.tar.zst freebsd-ports-gnome-4f957221556cfd231381f0f27e387ccaf7e5cc9c.zip |
Enable building of the GTK GUI.
Build it + define USE_GTK only if GUI is wanted/GTK is installed.
Silence by: maintainer && jim
PR: 35014
Diffstat (limited to 'audio')
-rw-r--r-- | audio/lame/Makefile | 23 | ||||
-rw-r--r-- | audio/lame/pkg-plist | 1 |
2 files changed, 22 insertions, 2 deletions
diff --git a/audio/lame/Makefile b/audio/lame/Makefile index c5c52129c27a..6a6afed33786 100644 --- a/audio/lame/Makefile +++ b/audio/lame/Makefile @@ -18,9 +18,28 @@ BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm GNU_CONFIGURE= yes INSTALLS_SHLIB= yes -USE_GTK= yes +WANT_GTK= yes CONFIGURE_ARGS= --enable-nasm +.include <bsd.port.pre.mk> + +.if (defined(HAVE_GTK) || defined(WITH_GTK)) && !defined(WITHOUT_GTK) +USE_GTK= yes +PLIST_SUB+= WITH_GTK='' +.else +PLIST_SUB+= WITH_GTK='@comment ' +.endif + MAN1= lame.1 -.include <bsd.port.mk> +post-build: +.if defined(HAVE_GTK) && !defined(WITHOUT_GTK) + (cd ${WRKSRC}/frontend && make mp3x) +.endif + +post-install: +.if defined(HAVE_GTK) && !defined(WITHOUT_GTK) + ${INSTALL_PROGRAM} ${WRKSRC}/frontend/mp3x ${PREFIX}/bin/ +.endif + +.include <bsd.port.post.mk> diff --git a/audio/lame/pkg-plist b/audio/lame/pkg-plist index f828c3f25139..a2bdffc2c602 100644 --- a/audio/lame/pkg-plist +++ b/audio/lame/pkg-plist @@ -1,4 +1,5 @@ bin/lame +%%WITH_GTK%%bin/mp3x include/lame/lame.h lib/libmp3lame.a lib/libmp3lame.la |