Only install gvidcap.1 when built with GTK2 support.

(It is the identical file, so use symlink.)
Bump PKGREVISION.

I will be splitting this up to add a new package: xvidcap-gtk2.
This commit is contained in:
reed 2005-01-10 21:12:28 +00:00
parent 802b8a93f5
commit d8a09b7c5e
4 changed files with 25 additions and 5 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.3 2004/10/03 00:18:40 tv Exp $
# $NetBSD: Makefile,v 1.4 2005/01/10 21:12:28 reed Exp $
#
DISTNAME= xvidcap-1.1.3
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xvidcap/}
@ -22,6 +22,12 @@ BUILD_DEFS+= XVIDCAP_GTK2_GUI
PLIST_SUBST+= GTK2_GUI=
CONFIGURE_ARGS+= --with-gtk2
. include "../../x11/gtk2/buildlink3.mk"
post-install:
${RM} -f ${PREFIX}/${PKGMANDIR}/man1/gvidcap.1 ; \
${LN} -s ${PREFIX}/${PKGMANDIR}/man1/xvidcap.1 \
${PREFIX}/${PKGMANDIR}/man1/gvidcap.1
.else
PLIST_SUBST+= GTK2_GUI='@comment '
.endif

View file

@ -1,7 +1,7 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/29 00:16:41 xtraeme Exp $
@comment $NetBSD: PLIST,v 1.2 2005/01/10 21:12:28 reed Exp $
${GTK2_GUI}bin/gvidcap
bin/xvidcap
man/man1/gvidcap.1
${GTK2_GUI}man/man1/gvidcap.1
man/man1/xvidcap.1
share/doc/xvidcap_${PKGVERSION}/AUTHORS
share/doc/xvidcap_${PKGVERSION}/ChangeLog

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2004/05/29 00:16:41 xtraeme Exp $
$NetBSD: distinfo,v 1.2 2005/01/10 21:12:28 reed Exp $
SHA1 (xvidcap-1.1.3.tar.gz) = e6d86a4184c8cc3e74738fb6e20d49c0d1640025
Size (xvidcap-1.1.3.tar.gz) = 1627036 bytes
@ -6,3 +6,4 @@ SHA1 (patch-aa) = 9196f59ec849a361821fd5cae800ec6aef2a1dfc
SHA1 (patch-ab) = 3e3835f57e204aa24a30b5940afc221d70cfc9f5
SHA1 (patch-ac) = 0de9d748e3808a210ec68d140eb1dfd5e18d9e4f
SHA1 (patch-ad) = ac40095849f721cfd8aa1e0143dff3ac9b705be7
SHA1 (patch-ae) = fc4fa298ed796225ce80ac780cebf46e46f3d21b

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2005/01/10 21:12:28 reed Exp $
--- src/Makefile.in.orig 2004-02-14 12:06:20.000000000 -0800
+++ src/Makefile.in
@@ -195,7 +195,7 @@ xvidcap_LDADD = ../Xw/libXw.a $(am__app
@WITHGTK2_TRUE@gvidcap_LDFLAGS = $(AM_LDFLAGS) `pkg-config --libs gtk+-2.0`
@WITHGTK2_TRUE@@WITHGT_TRUE@gvidcap_LDADD = ../gt/libgt.a
-man1_MANS = ../man/xvidcap.man ../man/gvidcap.man
+man1_MANS = ../man/xvidcap.man
EXTRA_DIST = mkresfile.sh
subdir = src