freebsd-ports/multimedia/libdv/Makefile

76 lines
2 KiB
Makefile
Raw Normal View History

# 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= 1.0.0
PORTREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= SF
MAINTAINER= bapt@FreeBSD.org
2003-02-23 20:58:35 +01:00
COMMENT= Quasar DV codec (libdv): software codec for DV video encoding format
LICENSE= LGPL21
2010-02-05 12:46:55 +01:00
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
popt.0:${PORTSDIR}/devel/popt
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-gtk
CONFIGURE_ENV= PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${LOCALBASE}/libdata/pkgconfig
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
USE_LDCONFIG= yes
MAN1= dubdv.1 dvconnect.1 encodedv.1
PORTDOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
2002-05-20 21:18:42 +02:00
README.dvconnect README.encoder TODO
OPTIONS+= SDL "Add SDL support" off
.include <bsd.port.pre.mk>
# XXX - work around compiler bug
# Optimizations -O{1,s,2,3} work
# However, lack of -O{1,s,2,3} or -O0 BREAK the build
# Therefore, make sure we have AT LEAST -O and avoid -O0
CFLAGS:= -O ${CFLAGS:N-O0}
.if defined(WITH_SDL)
USE_SDL= sdl
CONFIGURE_ARGS+= --enable-sdl
.endif
2002-05-20 21:18:42 +02:00
post-patch:
2002-07-03 21:15:17 +02:00
@${REINPLACE_CMD} -E \
-e 's|(pkgconfigdir =).+(/pkgconfig)|\1 ${PREFIX}/libdata\2|' \
2002-05-20 21:18:42 +02:00
${WRKSRC}/Makefile.in
2002-07-03 21:15:17 +02:00
@${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|' \
2003-01-16 19:32:08 +01:00
${WRKSRC}/libdv/dv.h \
2002-05-20 21:18:42 +02:00
${WRKSRC}/libdv/dv_types.h \
${WRKSRC}/libdv/headers.c \
2002-05-20 21:18:42 +02:00
${WRKSRC}/libdv/encode.c
2002-07-03 21:15:17 +02:00
@${REINPLACE_CMD} -E -e 's|^void swab.+$$||' ${WRKSRC}/libdv/encode.c
@${REINPLACE_CMD} -e 's|SDL/||' ${WRKSRC}/playdv/display.h
2002-07-03 21:15:17 +02:00
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/encodedv/dvavi.c \
2002-05-20 21:18:42 +02:00
${WRKSRC}/encodedv/dvconnect.c
# XXX - revise at every port update
# protect popt from prefix changes
@${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${LOCALBASE}/include \1|' \
${WRKSRC}/libdv.pc.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>