81 lines
2.2 KiB
Makefile
81 lines
2.2 KiB
Makefile
# 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.5
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
popt.0:${PORTSDIR}/devel/popt
|
|
|
|
USE_GNOMELIBS= yes
|
|
USE_GTK= yes
|
|
USE_XLIB= yes
|
|
XFREE86_VERSION= 4
|
|
GNU_CONFIGURE= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MAN1= encodedv.1 playdv.1
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
DOC_FILES= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
|
|
README.dvconnect README.encoder TODO
|
|
|
|
.ifndef(WITHOUT_SDL)
|
|
LIB_DEPENDS+= SDL-1.1.4:${PORTSDIR}/devel/sdl12
|
|
|
|
CONFIGURE_ARGS+= --enable-sdl
|
|
CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --with-x
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} '===>'
|
|
@${ECHO_MSG} '===> ATTENTION <==='
|
|
@${ECHO_MSG} '===> YOU NEED XFREE86 Version 4.0 <==='
|
|
@${ECHO_MSG} '===> or above to run this <==='
|
|
@${ECHO_MSG} '===> SINCE IT REQUIRES XV <==='
|
|
@${ECHO_MSG} '===>'
|
|
.ifndef(WITHOUT_SDL)
|
|
@${ECHO_MSG} '===> Define WITHOUT_SDL to disable SDL support'
|
|
.endif
|
|
@${ECHO_MSG} '===>'
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e 's|(pkgconfigdir =).+?(/pkgconfig)|\1 ${LOCALBASE}/libdata\2|' \
|
|
${WRKSRC}/Makefile.in
|
|
@${PERL} -pi -e 's|(-lXv)|\1 -lXext -L${X11BASE}/lib|; \
|
|
s@(PKG_CONFIG --(cflags|libs) )"\$$REQUIRES"@\1 gtk@' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
@${PERL} -pi -e 's|stdint.h|sys/types.h|' \
|
|
${WRKSRC}/libdv/dv_types.h \
|
|
${WRKSRC}/libdv/encode.c
|
|
@${PERL} -pi -e 's|void\s+swab.+||' ${WRKSRC}/libdv/encode.c
|
|
@${PERL} -pi -e 's|SDL/|SDL11/|' ${WRKSRC}/playdv/display.h
|
|
@${PERL} -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/encodedv/dvavi.c \
|
|
${WRKSRC}/encodedv/dvconnect.c
|
|
@${PERL} -pi -e 's|(^.+?<sys/mman.h>)|#include <sys/types.h>\n\1|' \
|
|
${WRKSRC}/encodedv/dvconnect.c
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
${WRKSRC}/encodedv/Makefile.in
|
|
|
|
post-install:
|
|
.ifndef(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for doc in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|