summaryrefslogblamecommitdiff
path: root/multimedia/libdv/Makefile
blob: c0a7ebe56384a1553f3239e953b621cd339dd16e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                          
                                             

                   
                   





                                                                         




                                                   
















                                                                     






                                                                   



                                                    


                      
# New ports collection makefile for:	libdv
# Date created:				Sun Nov 18 19:42:02 BRST 2001
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	libdv
PORTVERSION=	0.9
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	lioux@FreeBSD.org

BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
		popt.0:${PORTSDIR}/devel/popt

USE_GTK=	yes
USE_XLIB=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=  CFLAGS="${CFLAGS} -I${LOCALBASE}/include \
		-I${X11BASE}/include `${GTK_CONFIG} --cflags` \
		`${GDK_PIXBUF_CONFIG} --cflags`" \
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib \
		`${GTK_CONFIG} --libs` `${GDK_PIXBUF_CONFIG} --libs`"
INSTALLS_SHLIB=	yes

MAN1=	encodedv.1 playdv.1

GDK_PIXBUF_CONFIG?=${X11BASE}/bin/gdk-pixbuf-config
SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config

DOC_FILES=	ChangeLog README.dvconnect README.encoder

.ifndef(WITHOUT_SDL)
LIB_DEPENDS+=	SDL-1.1.3:${PORTSDIR}/devel/sdl12

CONFIGURE_ARGS+= --enable-sdl
CONFIGURE_ENV+=	SDL_CONFIG="${SDL_CONFIG}"
.endif

pre-everything::
	@${ECHO_MSG} '===>'
.ifndef(WITHOUT_SDL)
	@${ECHO_MSG} '===> Define WITHOUT_SDL to disable SDL support'
.endif
	@${ECHO_MSG} '===>'

post-configure:
	@find ${WRKSRC} -type f -name Makefile -exec \
		${PERL} -pi.orig -ne 's!-l(gdk|glib|gtk) !!g' {} \;

post-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>