1998-11-16 16:47:10 +01:00
|
|
|
# New ports collection makefile for: gqmpeg
|
|
|
|
# Date Created: 28 Oct 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Vanilla Pooh Shu <vanilla@FreeBSD.org>
|
1998-11-16 16:47:10 +01:00
|
|
|
#
|
1999-08-25 06:36:31 +02:00
|
|
|
# $FreeBSD$
|
1998-11-16 16:47:10 +01:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= gqmpeg
|
2002-06-23 16:59:04 +02:00
|
|
|
PORTVERSION= 0.16.0
|
2001-10-22 08:11:30 +02:00
|
|
|
CATEGORIES+= audio
|
2001-01-21 22:04:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1998-11-16 16:47:10 +01:00
|
|
|
|
2001-10-22 08:11:30 +02:00
|
|
|
MAINTAINER?= lyngbol@wheel.dk
|
1998-11-16 16:47:10 +01:00
|
|
|
|
2001-05-21 04:01:22 +02:00
|
|
|
LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
|
2002-01-21 02:33:39 +01:00
|
|
|
.if defined(WITH_MPG321)
|
|
|
|
RUN_DEPENDS= mpg321:${PORTSDIR}/audio/mpg321
|
|
|
|
.else
|
1998-11-16 16:47:10 +01:00
|
|
|
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
2002-01-21 02:33:39 +01:00
|
|
|
.endif
|
1998-11-16 16:47:10 +01:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2001-05-21 04:01:22 +02:00
|
|
|
USE_GTK= yes
|
2000-12-24 05:11:46 +01:00
|
|
|
USE_LIBTOOL= yes
|
2001-11-11 14:22:37 +01:00
|
|
|
USE_AUTOCONF= yes
|
2001-08-31 14:41:25 +02:00
|
|
|
WANT_GNOME= yes
|
2000-12-24 05:11:46 +01:00
|
|
|
|
2001-11-11 14:22:37 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
USE_GNOME="${USE_GNOME}"
|
|
|
|
|
2000-12-24 05:11:46 +01:00
|
|
|
MAN1= gqmpeg.1
|
1998-11-16 16:47:10 +01:00
|
|
|
|
2001-08-31 14:41:25 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_GNOME)
|
|
|
|
USE_GNOME= yes
|
|
|
|
.endif
|
|
|
|
|
2002-01-21 02:33:39 +01:00
|
|
|
.if !defined(WITH_MPG321)
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want to use mpg321 instead of mpg123,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and execute \"make WITH_MPG321=yes\""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
2001-11-11 14:22:37 +01:00
|
|
|
post-patch:
|
|
|
|
@find ${WRKSRC} -name 'Makefile.in*' | xargs ${PERL} -pi.orig -e \
|
|
|
|
's|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
2002-01-21 02:33:39 +01:00
|
|
|
.if defined(WITH_MPG321)
|
|
|
|
@${PERL} -pi.orig -e \
|
|
|
|
's/^(#define MPG123_BINARY "mpg)123"/$${1}321"/' \
|
|
|
|
${WRKSRC}/src/io_mpg123.c
|
|
|
|
.endif
|
2001-11-11 14:22:37 +01:00
|
|
|
|
2001-08-31 14:41:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|