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

(-)jigdo/Makefile (-12 / +21 lines)
Lines 16-22 Link Here
16
BUILD_DEPENDS=	libwww-config:${PORTSDIR}/www/libwww \
16
BUILD_DEPENDS=	libwww-config:${PORTSDIR}/www/libwww \
17
		${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
17
		${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
18
18
19
BROKEN=		Needs to be converted to use OPTIONS instead of home-grown configure script
19
#BROKEN=		Needs to be converted to use OPTIONS instead of home-grown configure script
20
20
21
MAN1=		jigdo-file.1 jigdo-lite.1 jigdo-mirror.1
21
MAN1=		jigdo-file.1 jigdo-lite.1 jigdo-mirror.1
22
22
Lines 26-34 Link Here
26
CONFIGURE_ARGS=	--without-libdb --disable-nls --without-gui
26
CONFIGURE_ARGS=	--without-libdb --disable-nls --without-gui
27
USE_GMAKE=	yes
27
USE_GMAKE=	yes
28
28
29
SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
29
OPTIONS=	GUI "Build the gtk2 gui" off
30
		TOUCH="${TOUCH}" \
30
OPTIONS+=	DB3 "Build with BDB3 support" on
31
		MKDIR="${MKDIR}" \
31
OPTIONS+=	NLS "Internationalization support" off
32
32
33
.include <bsd.port.pre.mk>
33
.include <bsd.port.pre.mk>
34
34
Lines 36-52 Link Here
36
NOT_FOR_ARCHS+=	alpha
36
NOT_FOR_ARCHS+=	alpha
37
.endif
37
.endif
38
38
39
pre-fetch:
39
.ifdef(WITH_GUI)
40
	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.jigdo
40
CONFIGURE_ARGS+=	--with-gui
41
41
LIB_DEPENDS+=		gtk-x11-2.0:\${PORTSDIR}/x11-toolkits/gtk20
42
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
42
MAN1+=			jigdo.1
43
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
43
PLIST_SUB+=		SUB_GUI=""
44
.else
45
PLIST_SUB+=		SUB_GUI="@comment "
46
.endif
47
.ifdef(WITH_DB3)
48
CONFIGURE_ARGS+=	--with-libdb=-ldb3
49
CONFIGURE_ENV+=		CPPFLAGS=-I\${LOCALBASE}/include/db3 \
50
			LIBS=-L\${LOCALBASE}/lib \
51
			LDFLAGS=-ldb3
52
USE_BDB=		3
53
.endif
54
.ifdef(WITH_NLS)
55
CONFIGURE_ARGS+=	--enable-nls=${LOCALBASE}/include
44
.endif
56
.endif
45
57
46
post-install:
58
post-install:
47
	@${STRIP_CMD} ${PREFIX}/bin/jigdo-file
59
	@${STRIP_CMD} ${PREFIX}/bin/jigdo-file
48
49
post-clean:
50
	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
51
60
52
.include <bsd.port.post.mk>
61
.include <bsd.port.post.mk>
(-)jigdo/pkg-plist (-11 / +11 lines)
Lines 2-15 Link Here
2
bin/jigdo-lite
2
bin/jigdo-lite
3
bin/jigdo-mirror
3
bin/jigdo-mirror
4
%%SUB_GUI%%bin/jigdo
4
%%SUB_GUI%%bin/jigdo
5
share/jigdo/debian-mirrors.jigdo
5
%%DATADIR%%/debian-mirrors.jigdo
6
%%SUB_GUI%%share/jigdo/COPYING
6
%%SUB_GUI%%%%DATADIR%%/COPYING
7
%%SUB_GUI%%share/jigdo/pixmaps/close.png
7
%%SUB_GUI%%%%DATADIR%%/pixmaps/close.png
8
%%SUB_GUI%%share/jigdo/pixmaps/jigdo-logo.png
8
%%SUB_GUI%%%%DATADIR%%/pixmaps/jigdo-logo.png
9
%%SUB_GUI%%share/jigdo/pixmaps/pause.png
9
%%SUB_GUI%%%%DATADIR%%/pixmaps/pause.png
10
%%SUB_GUI%%share/jigdo/pixmaps/progress-green.png
10
%%SUB_GUI%%%%DATADIR%%/pixmaps/progress-green.png
11
%%SUB_GUI%%share/jigdo/pixmaps/restart.png
11
%%SUB_GUI%%%%DATADIR%%/pixmaps/restart.png
12
%%SUB_GUI%%share/jigdo/pixmaps/start.png
12
%%SUB_GUI%%%%DATADIR%%/pixmaps/start.png
13
%%SUB_GUI%%share/jigdo/pixmaps/stop.png
13
%%SUB_GUI%%%%DATADIR%%/pixmaps/stop.png
14
%%SUB_GUI%%@dirrm share/jigdo/pixmaps
14
%%SUB_GUI%%@dirrm %%DATADIR%%/pixmaps
15
@dirrm share/jigdo
15
@dirrm %%DATADIR%%
(-)jigdo/scripts/configure.jigdo (-73 lines)
Lines 1-73 Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/net-p2p/jigdo/scripts/configure.jigdo,v 1.3 2004/09/27 21:10:21 thierry Exp $
3
4
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
5
	exit
6
fi
7
8
tempfile=`mktemp -t checklist`
9
10
if [ "${BATCH}" = "yes" ]; then
11
	set \"DB3\"
12
else
13
	dialog --title "Jigsaw Download configuration options" \
14
	--clear --checklist "\n\
15
Please select desired options:" -1 -1 16 \
16
GUI		"Graphical User Interface (experimental)" OFF \
17
DB3		"Berkeley DB3 (used for jigdo-file's cache)" ON \
18
NLS		"Native Language Support (no language files yet)" OFF \
19
2> $tempfile
20
21
	retval=$?
22
23
	if [ -s $tempfile ]; then
24
		set `cat $tempfile`
25
	fi
26
	rm -f $tempfile
27
28
	case $retval in
29
		0)	if [ -z "$*" ]; then
30
				echo "Nothing selected"
31
			fi
32
			;;
33
		1)	echo "Cancel pressed."
34
			exit 1
35
			;;
36
	esac
37
fi
38
39
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
40
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
41
42
echo "PREFIX=	${PREFIX}"
43
44
SUB_GUI="@comment "
45
46
while [ "$1" ]; do
47
	case $1 in
48
		\"GUI\")
49
			echo "CONFIGURE_ARGS+= --with-gui"
50
			echo "LIB_DEPENDS+= gtk-x11-2.0:\${PORTSDIR}/x11-toolkits/gtk20"
51
			echo "MAN1+= jigdo.1"
52
			SUB_GUI=""
53
			;;
54
		\"DB3\")
55
			echo "CONFIGURE_ARGS+= --with-libdb=-ldb3"
56
			echo "CONFIGURE_ENV+= \
57
			  CPPFLAGS=\"-I\${LOCALBASE}/include/db3\" \
58
			  LIBS=\"-L\${LOCALBASE}/lib\" LDFLAGS+=\"-ldb3\""
59
			echo "LIB_DEPENDS= db3:\${PORTSDIR}/databases/db3"
60
			;;
61
		\"NLS\")
62
			echo "CONFIGURE_ARGS+= --enable-nls=${LOCALBASE}/include"
63
			;;
64
		*)
65
			echo "Invalid option(s): $*" > /dev/stderr
66
			rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
67
			exit 1
68
			;;
69
	esac
70
	shift
71
done
72
73
echo "PLIST_SUB+=	SUB_GUI=\"${SUB_GUI}\""

Return to bug 92810