View | Details | Raw Unified | Return to bug 90924
Collapse All | Expand All

(-)devel/argtable/Makefile (-15 / +21 lines)
Lines 8-13 Link Here
8
8
9
PORTNAME=	argtable
9
PORTNAME=	argtable
10
PORTVERSION=	2.5
10
PORTVERSION=	2.5
11
PORTREVISION=	1
11
CATEGORIES=	devel
12
CATEGORIES=	devel
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
14
MASTER_SITE_SUBDIR=	${PORTNAME}
Lines 16-41 Link Here
16
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	An ANSI C library for parsing GNU style command line arguments
18
COMMENT=	An ANSI C library for parsing GNU style command line arguments
18
19
19
WRKSRC=		${WRKDIR}/${PORTNAME}2
20
21
USE_GETOPT_LONG=	yes
22
USE_GETTEXT=	yes
23
USE_GNOME=	gnometarget
20
USE_GNOME=	gnometarget
24
GNU_CONFIGURE=	yes
21
USE_GETOPT_LONG=	yes
25
CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
22
USE_REINPLACE=	yes
26
		LDFLAGS="-L${LOCALBASE}/lib" \
23
USE_AUTOTOOLS=	libtool:15
27
		docdir="${PREFIX}/share/doc/${PORTNAME}"
28
WRKSRC=		${WRKDIR}/${DISTNAME}
29
INSTALLS_SHLIB=	yes
24
INSTALLS_SHLIB=	yes
30
25
31
PORTDOCS=	*
26
MAN3=		argtable2.3
27
MLINKS=		argtable2.3 argtable.3
32
28
33
MAN3=		argtable.3
29
post-patch:
30
	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g ; \
31
		 s|: install-dist_exampleDATA|:|g' ${WRKSRC}/Makefile.in
34
32
35
post-install:
33
post-install:
36
	@${FIND} ${EXAMPLESDIR} ! -type d | \
34
	${INSTALL_MAN} ${WRKSRC}/doc/argtable2.3 ${MAN3PREFIX}/man/man3
37
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
35
.if !defined(NOPORTDOCS)
38
	@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
36
	@${MKDIR} ${DOCSDIR}
39
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
37
	${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${DOCSDIR}
38
	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
39
	${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
40
	${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${DOCSDIR}
41
	@${MKDIR} ${EXAMPLESDIR}
42
	${INSTALL_DATA} ${WRKSRC}/example/*.c ${EXAMPLESDIR}
43
	${INSTALL_DATA} ${WRKSRC}/example/*.h ${EXAMPLESDIR}
44
	${INSTALL_DATA} ${WRKSRC}/example/*.txt ${EXAMPLESDIR}
45
.endif
40
46
41
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)devel/argtable/files/patch-configure (-11 lines)
Lines 1-11 Link Here
1
--- configure.orig	Mon Dec 26 09:23:07 2005
2
+++ configure	Mon Dec 26 09:23:35 2005
3
@@ -20767,7 +20767,7 @@
4
 then
5
     docdir='${prefix}/share/doc/argtable2'
6
 fi
7
-exampledir='${docdir}/example'
8
+exampledir='${prefix}/share/examples/argtable'
9
 
10
 
11
                                                                                 ac_config_files="$ac_config_files Makefile argtable.spec example/Makefile src/Makefile doc/Makefile doc/argtable2.3 doc/argtable2.html tests/Makefile"
(-)devel/argtable/files/patch-doc::Makefile.in (-11 lines)
Lines 1-11 Link Here
1
--- doc/Makefile.in.orig	Mon Dec 26 09:30:50 2005
2
+++ doc/Makefile.in	Mon Dec 26 09:31:03 2005
3
@@ -173,7 +173,7 @@
4
 target_cpu = @target_cpu@
5
 target_os = @target_os@
6
 target_vendor = @target_vendor@
7
-dist_man_MANS = argtable2.3 argtable.3
8
+dist_man_MANS = argtable.3
9
 dist_doc_DATA = argtable2-advanced.html argtable2-advanced.pdf \
10
 	argtable2-advanced.ps argtable2-intro.html argtable2-intro.pdf \
11
 	argtable2-intro.ps argtable2.html argtable2.pdf argtable2.ps \
(-)devel/argtable/files/patch-ltmain.sh (-15 lines)
Lines 1-15 Link Here
1
--- ltmain.sh.orig	Mon Dec 26 09:27:12 2005
2
+++ ltmain.sh	Mon Dec 26 09:27:43 2005
3
@@ -5551,10 +5551,12 @@
4
 	fi
5
 
6
 	# Install the pseudo-library for information purposes.
7
+	if /usr/bin/false; then
8
 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9
 	instname="$dir/$name"i
10
 	$show "$install_prog $instname $destdir/$name"
11
 	$run eval "$install_prog $instname $destdir/$name" || exit $?
12
+	fi
13
 
14
 	# Maybe install the static library, too.
15
 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
(-)devel/argtable/pkg-plist (+27 lines)
Lines 2-4 Link Here
2
lib/libargtable2.a
2
lib/libargtable2.a
3
lib/libargtable2.so
3
lib/libargtable2.so
4
lib/libargtable2.so.1
4
lib/libargtable2.so.1
5
%%PORTDOCS%%%%DOCSDIR%%/arg_int.gif
6
%%PORTDOCS%%%%DOCSDIR%%/argtable2-advanced.html
7
%%PORTDOCS%%%%DOCSDIR%%/argtable2-advanced.pdf
8
%%PORTDOCS%%%%DOCSDIR%%/argtable2-advanced.ps
9
%%PORTDOCS%%%%DOCSDIR%%/argtable2-intro.html
10
%%PORTDOCS%%%%DOCSDIR%%/argtable2-intro.pdf
11
%%PORTDOCS%%%%DOCSDIR%%/argtable2-intro.ps
12
%%PORTDOCS%%%%DOCSDIR%%/argtable2.html
13
%%PORTDOCS%%%%DOCSDIR%%/argtable2.pdf
14
%%PORTDOCS%%%%DOCSDIR%%/argtable2.ps
15
%%PORTDOCS%%%%DOCSDIR%%/argxxx.gif
16
%%PORTDOCS%%%%EXAMPLESDIR%%/README.txt
17
%%PORTDOCS%%%%EXAMPLESDIR%%/argcustom.c
18
%%PORTDOCS%%%%EXAMPLESDIR%%/argxxx.c
19
%%PORTDOCS%%%%EXAMPLESDIR%%/argxxx.h
20
%%PORTDOCS%%%%EXAMPLESDIR%%/callbacks.c
21
%%PORTDOCS%%%%EXAMPLESDIR%%/echo.c
22
%%PORTDOCS%%%%EXAMPLESDIR%%/hasoptvalue.c
23
%%PORTDOCS%%%%EXAMPLESDIR%%/ls.c
24
%%PORTDOCS%%%%EXAMPLESDIR%%/multisyntax.c
25
%%PORTDOCS%%%%EXAMPLESDIR%%/mv.c
26
%%PORTDOCS%%%%EXAMPLESDIR%%/myprog.c
27
%%PORTDOCS%%%%EXAMPLESDIR%%/myprog_C89.c
28
%%PORTDOCS%%%%EXAMPLESDIR%%/rm.c
29
%%PORTDOCS%%%%EXAMPLESDIR%%/uname.c
30
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
31
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 90924