adf9ffd3bb
PR: 35445, 35446 Submitted by: TATEISHI Katsuyuki <katsu@iec.hiroshima-u.ac.jp>, maintainer Approved by: maintainers
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# New ports collection makefile for: gqmpeg
|
|
# Date Created: 28 Oct 1998
|
|
# Whom: Vanilla Pooh Shu <vanilla@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gqmpeg
|
|
PORTVERSION= 0.13.0
|
|
CATEGORIES+= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER?= lyngbol@wheel.dk
|
|
|
|
LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
|
|
.if defined(WITH_MPG321)
|
|
RUN_DEPENDS= mpg321:${PORTSDIR}/audio/mpg321
|
|
.else
|
|
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
|
|
.endif
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_GTK= yes
|
|
USE_LIBTOOL= yes
|
|
USE_AUTOCONF= yes
|
|
WANT_GNOME= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
USE_GNOME="${USE_GNOME}"
|
|
|
|
MAN1= gqmpeg.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(HAVE_GNOME)
|
|
USE_GNOME= yes
|
|
.endif
|
|
|
|
.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
|
|
|
|
post-patch:
|
|
@find ${WRKSRC} -name 'Makefile.in*' | xargs ${PERL} -pi.orig -e \
|
|
's|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
|
.if defined(WITH_MPG321)
|
|
@${PERL} -pi.orig -e \
|
|
's/^(#define MPG123_BINARY "mpg)123"/$${1}321"/' \
|
|
${WRKSRC}/src/io_mpg123.c
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|