2013-06-06 23:56:18 +02:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2001-11-19 20:35:04 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libdv
|
2009-05-17 13:35:34 +02:00
|
|
|
PORTVERSION= 1.0.0
|
2013-09-23 17:42:03 +02:00
|
|
|
PORTREVISION= 4
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia
|
2009-05-17 13:35:34 +02:00
|
|
|
MASTER_SITES= SF
|
2001-11-19 20:35:04 +01:00
|
|
|
|
2013-12-16 18:26:49 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= Quasar DV codec (libdv): software codec for DV video encoding format
|
2001-11-19 20:35:04 +01:00
|
|
|
|
2011-03-20 23:30:17 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2013-09-23 08:13:32 +02:00
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
libpopt.so:${PORTSDIR}/devel/popt
|
2001-11-19 20:35:04 +01:00
|
|
|
|
2013-06-06 23:56:18 +02:00
|
|
|
USES= pkgconfig pathfix
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-05-17 13:35:34 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-gtk
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${LOCALBASE}/libdata/pkgconfig
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-11-19 20:35:04 +01:00
|
|
|
|
2013-10-19 01:23:56 +02:00
|
|
|
DOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
|
2002-05-20 21:18:42 +02:00
|
|
|
README.dvconnect README.encoder TODO
|
2001-11-21 07:06:46 +01:00
|
|
|
|
2013-06-06 23:56:18 +02:00
|
|
|
OPTIONS_DEFINE= SDL DOCS
|
2002-08-20 19:26:34 +02:00
|
|
|
|
2013-10-19 01:28:36 +02:00
|
|
|
SDL_USE= SDL=sdl
|
2013-10-19 01:23:56 +02:00
|
|
|
SDL_CONFIGURE_ENABLE= sdl
|
2001-11-19 20:35:04 +01:00
|
|
|
|
2002-05-20 21:18:42 +02:00
|
|
|
post-patch:
|
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 \
|
2002-09-04 22:44:23 +02:00
|
|
|
${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
|
2002-09-04 22:44:23 +02:00
|
|
|
@${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
|
2002-09-04 22:44:23 +02:00
|
|
|
# XXX - revise at every port update
|
|
|
|
# protect popt from prefix changes
|
2013-10-19 01:23:56 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${PREFIX}/include \1|' \
|
2002-09-04 22:44:23 +02:00
|
|
|
${WRKSRC}/libdv.pc.in
|
2001-11-19 20:35:04 +01:00
|
|
|
|
|
|
|
post-install:
|
2013-10-19 01:23:56 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdv.so.4
|
2001-11-19 20:35:04 +01:00
|
|
|
|
2013-06-06 23:56:18 +02:00
|
|
|
.include <bsd.port.mk>
|
2013-10-19 01:23:56 +02:00
|
|
|
|
|
|
|
# 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}
|