- Update to 1.0.0
- Pass maintainership to submitter PR: ports/133492 Submitted by: Bapt <baptiste.daroussin@gmail.com> Approved by: miwi (mentor implicit)
This commit is contained in:
parent
e4fa363efe
commit
726ed425e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234080
5 changed files with 12 additions and 40 deletions
|
@ -6,25 +6,18 @@
|
|||
#
|
||||
|
||||
PORTNAME= libdv
|
||||
PORTVERSION= 0.104
|
||||
PORTREVISION= 6
|
||||
PORTVERSION= 1.0.0
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
DISTNAME= libdv-${PORTVERSION:C/\.(.)$/\1/}
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= baptiste.daroussin@gmail.com
|
||||
COMMENT= Quasar DV codec (libdv): software codec for DV video encoding format
|
||||
|
||||
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
popt.0:${PORTSDIR}/devel/popt
|
||||
|
||||
USE_GNOME= gnometarget
|
||||
WANT_GNOME= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-gtk-prefix="${LOCALBASE}" \
|
||||
--x-includes="${LOCALBASE}/include" \
|
||||
--x-libraries="${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS+= --disable-gtk
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
||||
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${LOCALBASE}/libdata/pkgconfig
|
||||
|
@ -32,18 +25,12 @@ USE_LDCONFIG= yes
|
|||
|
||||
MAN1= dubdv.1 dvconnect.1 encodedv.1
|
||||
|
||||
PORTDOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
|
||||
PORTDOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
|
||||
README.dvconnect README.encoder TODO
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
OPTIONS+= SDL "Add SDL support" off
|
||||
|
||||
.if ${HAVE_GNOME:Mgtk12}!=""
|
||||
USE_GNOME+= gtk12
|
||||
MAN1+= playdv.1
|
||||
PLIST_FILES+= bin/playdv
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-gtk
|
||||
.endif
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# XXX - work around compiler bug
|
||||
# Optimizations -O{1,s,2,3} work
|
||||
|
@ -51,26 +38,15 @@ CONFIGURE_ARGS+=--disable-gtk
|
|||
# Therefore, make sure we have AT LEAST -O and avoid -O0
|
||||
CONFIGURE_ENV+= CFLAGS="-O ${CFLAGS:N-O0}"
|
||||
|
||||
.ifndef(WITHOUT_SDL)
|
||||
.if defined(WITH_SDL)
|
||||
USE_SDL= sdl
|
||||
CONFIGURE_ARGS+= --enable-sdl
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
.ifndef(WITHOUT_SDL)
|
||||
@${ECHO_MSG} '===>'
|
||||
@${ECHO_MSG} '===> Define WITHOUT_SDL to disable SDL support'
|
||||
@${ECHO_MSG} '===>'
|
||||
CONFIGURE_ARGS+= --enable-sdl
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|(pkgconfigdir =).+(/pkgconfig)|\1 ${PREFIX}/libdata\2|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -E -e 's|(-lXv)|\1 -lXext -L${LOCALBASE}/lib|; \
|
||||
/objformat=/s|=.*|=elf|; \
|
||||
s@(PKG_CONFIG --(cflags|libs) )"\$$REQUIRES"@\1 gtk@' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
@${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|' \
|
||||
${WRKSRC}/libdv/dv.h \
|
||||
${WRKSRC}/libdv/dv_types.h \
|
||||
|
@ -85,10 +61,6 @@ post-patch:
|
|||
@${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${LOCALBASE}/include \1|' \
|
||||
${WRKSRC}/libdv.pc.in
|
||||
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (libdv-0.104.tar.gz) = f6b08efce7472daa20685e6e8431f542
|
||||
SHA256 (libdv-0.104.tar.gz) = 8310e365e799dea9547fcaf84b21dae3bf8891a3befe7f0c6556025e6bc2c573
|
||||
SIZE (libdv-0.104.tar.gz) = 554691
|
||||
MD5 (libdv-1.0.0.tar.gz) = f895162161cfa4bb4a94c070a7caa6c7
|
||||
SHA256 (libdv-1.0.0.tar.gz) = a305734033a9c25541a59e8dd1c254409953269ea7c710c39e540bd8853389ba
|
||||
SIZE (libdv-1.0.0.tar.gz) = 574565
|
||||
|
|
Loading…
Reference in a new issue