freebsd-ports/audio/aumix/Makefile
Trevor Johnson a0d0aed67b Fix the GTK+ support. This also enables use of GTK+ 2.0.X.
According to the submitter, "if you have both glib12/gtk12 and
glib20/gtk20 installed, aumix is linked against both [...]"

With just gtk-1.2.x present, the configure script was failing.

I successfully tested this under the following circumstances:
- gtk-1.2.10_8
- WITHOUT_ALL set, gtk-1.2.10_8
- gtk-1.2.10_8 and gtk-2.0.7
- WITHOUT_ALL set, gtk-1.2.10_8 and gtk-2.0.7
- WITH_GTK2 set, gtk-1.2.10_8 and gtk-2.0.7

Submitted by:		Herbert J. Skuhra
Also reported by:	Morten Rodal and Steve O'Hara-Smith
2002-12-08 22:48:37 +00:00

56 lines
1.4 KiB
Makefile

# New ports collection makefile for: aumix
# Date created: 21 May 1999
# Whom: Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= aumix
PORTVERSION= 2.8
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://jpj.net/~trevor/aumix/ \
http://jpj.net/~trevor/aumix/old/
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= trevor@FreeBSD.org
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
USE_BZIP2= yes
USE_GNOMENG= yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --includedir="${LOCALBASE}/include" \
--enable-own-labels \
--libdir="${LOCALBASE}/lib"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAN1= aumix.1 xaumix.1
.include <bsd.port.pre.mk>
pre-extract:
.if !defined(WITH_GTK2) && !defined(WITHOUT_ALL)
@${ECHO_CMD}
@${ECHO_CMD} "****** To enable use of GTK+ 2.0, interrupt the ******"
@${ECHO_CMD} "****** build now, set WITH_GTK2, and start again. ******"
@${ECHO_CMD}
@sleep 3
.endif
.if (${HAVE_GNOME:Mgtk12}!="") && !defined(WITHOUT_ALL) && \
!defined(WITHOUT_GTK)&& !defined(WITH_GTK2)
USE_GNOME= gtk12
PKGNAMESUFFIX= -gtk
CONFIGURE_ARGS+=--without-gtk
.elif defined(WITH_GTK2)
PKGNAMESUFFIX= -gtk
LIB_DEPENDS+= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20
CONFIGURE_ARGS+=--without-gtk1
.else
CONFIGURE_ARGS+=--without-gtk --without-gtk1
.endif
.include <bsd.port.post.mk>